mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
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>