Files
bun.sh/test/cli
Claude Bot 5e6a40c46f Update publishConfig.directory to match pnpm's behavior
After reviewing pnpm's implementation, updated to match their behavior:
- Reads initial package.json from project root to get publishConfig.directory
- Re-reads package.json from the subdirectory specified in publishConfig.directory
- Uses the subdirectory's package.json for packing (name, version, files field, etc.)
- The subdirectory MUST contain its own package.json

This matches pnpm's implementation where build scripts typically:
1. Compile/transpile code into a dist/ directory
2. Copy package.json (possibly modified) to dist/
3. Run bun publish to publish from dist/

Updated all tests to include package.json in the subdirectories.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-14 05:44:32 +00:00
..
2025-05-24 13:36:51 -07:00
2025-10-11 08:23:25 -07:00