Repository navigation
Keep pnpm links intact when running Deno - #1262
Conversation
Keep Deno's npm cache separate from pnpm's node_modules so Deno 2.9 cannot remove workspace links before packing. Declare the development dependencies previously supplied by Deno's root links, and load the Fresh Vite config natively through an explicit npm entry point. Add an isolated regression task that uses the root setting and checks link preservation, prepack execution, and workspace version rewriting. Check the cache setting in CI without installing fixture dependencies. Codex implemented and tested the changes; Claude Code reviewed the plan and the implementation. Fixes fedify-dev#1259 Changelog: none Assisted-by: Codex:gpt-6.1-sol Assisted-by: Claude Code:claude-fable-5-1
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe change sets Deno’s ChangesWorkspace tooling
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The change sets Deno's nodeModulesDir to none to keep pnpm links intact, adds a regression test for it, and declares the workspace dev dependencies. No concrete merge-blocking risk was found. 🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation Issue Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 1 files. (7 skipped: 7 unsupported.)
✨ Finishing Touches🧪 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✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
Deno 2.9 can replace pnpm's workspace links, leaving
pnpm packunable to resolveworkspace:dependencies. SettingnodeModulesDirto"none"in deno.json keeps Deno's npm cache separate from pnpm's installation. Development dependencies are declared explicitly because Deno no longer supplies the links. Fresh loads its Vite config natively so its build continues to work.An isolated regression test checks that Deno preserves pnpm's links and that
pnpm packstill runsprepackand resolves workspace versions. CI also checks thatnodeModulesDirremains"none".Tested packing on Deno 2.7.7/2.9.7, affected package suites on Deno/Node.js/Bun, Fresh/docs builds, and Workers tests. The full Deno suite still reports a docloader timer leak; the parallel Node.js run stalled, though the isolated vocabulary suite passed.
Fixes #1259.