fix: resolve workspace:* protocol to enable npm install#62
Conversation
The workspace:* dependency on @selftune/telemetry-contract breaks npm install because npm doesn't understand the workspace protocol. Using file: instead works with both bun and npm since the package is already bundled in the tarball via the files array. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…1773675884536 # Conflicts: # bun.lock
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughPackage version bumped from 0.2.5 to 0.2.6. Dependency resolution for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment |
…lure The merge created a duplicate @selftune/telemetry-contract entry in bun.lock (both workspace: and file: variants), which caused bun to fail module resolution in CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
Replace the
workspace:*dependency protocol withfile:to fix npm install failures. The workspace protocol is a bun/pnpm monorepo feature that npm doesn't understand, causingEUNSUPPORTEDPROTOCOLerrors on everynpm install -g selftune.Since the telemetry-contract package is already bundled in the tarball via the files array, using the
file:protocol allows both bun and npm to resolve it correctly. This is a one-line fix with no import changes needed.Verification
Files Changed
package.json: workspace:* → file:packages/telemetry-contractbun.lock: regenerated to reflect new resolution