Repository navigation
Description
What happened
[email protected] publishes the repository's full npm-shrinkwrap.json (#71), which also lists every development dependency. When the package is installed as a regular dependency, npm installs those development entries under node_modules/codex-unlock/node_modules as extraneous packages.
npm install [email protected] -> added 3 packages
npm install [email protected] -> added 105 packages (typescript, eslint, ajv, ... marked extraneous)
npm install -g [email protected] -> added 3 packages
Global installs are unaffected, which is why the package smoke test (it installs with --omit=dev) and the global install check did not catch it.
What you expected
Installing codex-unlock as a dependency installs only codex-unlock, fs-ext-extra-prebuilt, and nan, with the runtime tree still pinned for npm consumers.
Environment
codex-unlock0.4.1 (541542f), npm 10.9.2 and 11.x, macOS 27.0 arm64
Source evidence
- The published shrinkwrap is the repository lockfile, including development entries: https://github.com/abruption/codex-unlock/blob/541542f263276e32f666df000680c2e437d69e6a/npm-shrinkwrap.json
- It is in the package allowlist:
Line 43 in 541542f
"LICENSE", - Package smoke installs with
--omit=dev:codex-unlock/scripts/package-smoke.mjs
Line 115 in 541542f
"--omit=dev",
Acceptance criteria
- The published
npm-shrinkwrap.jsoncontains only the runtime tree (nodev/devOptionalentries and no rootdevDependencies). - A regular dependency install of the packed artifact installs exactly
codex-unlock,fs-ext-extra-prebuilt, andnan, and package smoke asserts it. - Runtime pins for npm consumers are unchanged (
fs-ext-extra-prebuilt2.2.14 and the lockednan).
Scope and limitations
- No runtime behavior change; the extra packages are not loaded. The impact is install size, additional supply-chain surface, and
npm auditnoise for dependency consumers (for example users ofcodex-unlock/types).
Checked
- Regression from fix: pin native runtime dependencies for consumer installs #71 / security: pin the native fs-ext-extra-prebuilt dependency for consumer installs #69; no existing issue covers it.
Activity