fix: add @clack/prompts transitive deps to fix npx installation (#136)
* fix: add @clack/prompts transitive deps to fix npx installation When installed via `npx`, npm's flat node_modules cache fails to hoist ESM-only transitive dependencies from @clack/prompts → @clack/core. This causes: Cannot find package 'fast-wrap-ansi/index.js' imported from @clack/core/dist/index.mjs Adding fast-wrap-ansi, fast-string-width, and sisteransi as direct dependencies ensures they are resolved correctly in all installation contexts (npx, global, local). Reproduces on Node 24 + npm 11 with `npx @colbymchenry/codegraph@0.7.3`. * chore: bump @clack/prompts to 1.3.0 with matching transitive pins @clack/prompts@1.3.0 shipped with major bumps to its transitive deps (fast-wrap-ansi 0.1 → 0.2, fast-string-width 1 → 3). Promoting them at the older pins would have caused npm to install both sets side by side, defeating the dedup goal of this fix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: mfrancime <mfrancime@users.noreply.github.com> Co-authored-by: Colby McHenry <me@colbymchenry.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
mfrancime
Colby McHenry
parent
8eed24327c
commit
38d155618f
+4
-1
@@ -32,10 +32,13 @@
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@clack/prompts": "^1.2.0",
|
||||
"@clack/prompts": "^1.3.0",
|
||||
"commander": "^14.0.2",
|
||||
"fast-string-width": "^3.0.2",
|
||||
"fast-wrap-ansi": "^0.2.0",
|
||||
"node-sqlite3-wasm": "^0.8.30",
|
||||
"picomatch": "^4.0.3",
|
||||
"sisteransi": "^1.0.5",
|
||||
"tree-sitter-wasms": "^0.1.11",
|
||||
"web-tree-sitter": "^0.25.3"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user