feat(trace): auto-detect and copy optionalDependencies#35
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change extends the package tracing logic in Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
==========================================
- Coverage 76.67% 73.11% -3.57%
==========================================
Files 5 5
Lines 373 398 +25
Branches 116 123 +7
==========================================
+ Hits 286 291 +5
- Misses 60 74 +14
- Partials 27 33 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Platform-specific native bindings (e.g. lightningcss-linux-x64-gnu) are listed as optionalDependencies but not traced by @vercel/nft since they are loaded dynamically. After collecting traced packages, scan each package's optionalDependencies and full-copy any that exist on disk. Uses exsolve for proper module resolution instead of assuming sibling node_modules layout.
Summary
optionalDependenciesand resolves them viaexsolve@vercel/nft, full-copies all its files into the outputFixed packages
Test plan
pnpm vitest run test/— 30/30)Summary by CodeRabbit
Release Notes