mirror of
https://github.com/warkanum/monorepo-dep-checker.git
synced 2026-10-31 06:08:57 +00:00
Fix workspace peer-dep, strict-mode, and workspace-range bugs
- checkMissingDependencies: stop flagging workspace-protocol peer dependencies as missing from the main app; the redundant OR clause bypassed the workspace exclusion filter. - updateDependencies: strict mode now leaves pinned (non-range) versions untouched instead of force-updating them, matching the documented behavior. - getSemverVersion: strip leftover range operators (^, ~, etc.) from workspace:-prefixed versions so workspace:^x.y.z and workspace:~x.y.z resolve correctly instead of being treated as invalid. - Remove unreachable duplicate JSON-building branch in displayResults. - bin/dep-check.js: exit with a non-zero status on unhandled errors instead of silently exiting 0. - index.ts: replace the fragile file-URL string slicing used to detect direct execution with a proper pathToFileURL comparison. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQedTpSTfxtbYUYo3gdT7v
This commit is contained in:
3 files changed
+26
-71
No files matched your search
+4
-1
@@ -12,4 +12,7 @@ const require = createRequire(import.meta.url);
|
||||
// Convert the file path to a proper file:// URL
|
||||
const modulePath = pathToFileURL(join(__dirname, '../dist/index.js')).href;
|
||||
const { default: run } = await import(modulePath);
|
||||
run().catch(console.error);
|
||||
run().catch((error) => {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in new issue
Block a user