codeburn/app/scripts
ozymandiashh 0f5a33450c
Some checks are pending
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
fix(app): stage the CLI closure without anchoring on the checkout's absolute path (#1473)
npm redacts UUID-shaped path segments to `***` in `npm ls --parseable`, so matching each line against the checkout's absolute <root>/node_modules/ prefix found nothing on any path containing a UUID and packaging aborted with the misleading "is the root npm installed?".
The top-level package name is now read by segment position: after the N-th /node_modules segment, N counted off the real root path, which the redaction renames around but cannot move.
Closure verified identical: 160 packages, same names and versions, same 55M, staged from a UUID worktree and from a UUID-free checkout of main.
Reproduced before and after: main aborts from the UUID path, the branch stages 160 packages from that same path.
A non-zero `npm ls` exit still yields its stdout, so an extraneous package in node_modules does not abort staging.
A missing npm_execpath now fails with its own message instead of degrading into the empty-closure one.
Review patch on the branch: the two hand-rolled path scanners collapse to one split('/node_modules/'), and the npm attribution is corrected from 12 to 11 and later, reproduced on npm 11.19.0.
Fixes #1466.
2026-09-18 04:59:38 -07:00
..
after-pack.cjs feat(app): bundle the CLI inside the packaged app 2026-07-16 09:27:46 -07:00
buildStamp.test.ts fix(app): clean build stamp, splash without hash, About checks for updates 2026-07-17 14:30:00 -07:00
buildStamp.ts fix(app): clean build stamp, splash without hash, About checks for updates 2026-07-17 14:30:00 -07:00
snap-grants.test.ts snap: narrow session-log grants to what the parsers read and drop the Copilot credential root 2026-09-01 09:56:03 -07:00
stage-cli-packages.d.mts fix(app): stage the CLI closure without anchoring on the checkout's absolute path (#1473) 2026-09-18 04:59:38 -07:00
stage-cli-packages.mjs fix(app): stage the CLI closure without anchoring on the checkout's absolute path (#1473) 2026-09-18 04:59:38 -07:00
stage-cli-packages.test.ts fix(app): stage the CLI closure without anchoring on the checkout's absolute path (#1473) 2026-09-18 04:59:38 -07:00
stage-cli.mjs fix(app): stage the CLI closure without anchoring on the checkout's absolute path (#1473) 2026-09-18 04:59:38 -07:00
stage-menubar.mjs fix(app): stage the MSI a local Tauri build actually writes 2026-09-02 14:40:41 -07:00
tray-settings-xproc-worker.ts fix(windows): close three holes in the cross-process preference lock 2026-09-03 10:28:05 -07:00
verify-windows-installer.mjs fix(release): verify all desktop assets 2026-08-13 20:01:00 +05:30
verify-windows-installer.test.ts fix(release): verify all desktop assets 2026-08-13 20:01:00 +05:30
windows-installer-paths.d.mts fix(release): harden Windows installer verification 2026-08-13 19:47:31 +05:30
windows-installer-paths.mjs fix(release): harden Windows installer verification 2026-08-13 19:47:31 +05:30