Repository navigation
aube add drops optional and hasInstallScript from npm package-lock.json entries
#1774
The fixture depends only on npm 10.8.2 then rejects the aube-written lockfile: npm 11.19.0 NPM_BIN=/path/to/real/npm ./repro.shI found this while adding two dev dependencies to an npm project with Node 20 coworkers. There, aube also reordered fields in 163 existing entries and dropped |
Replies: 2 comments
|
Thanks for the detailed repro. Confirmed two causes in the npm writer: Fix is in #1775, covered by a unit test of a parse/write round trip. I haven't run your repro repo or npm against it. Not addressed yet: the field reordering in existing entries and the dropped AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable. |
|
Retested with
NPM_BIN=/path/to/real/npm ./repro.shIt now exits 0. Fix shipped in aube 2.8.1 via #1775. Marking your reply as the answer. I split the remaining parts you mentioned (field reordering in existing entries and the dropped |
Thanks for the detailed repro. Confirmed two causes in the npm writer:
optionalwas only computed for packages reachable from a rootoptionalDependenciesentry, so packages behind an optional edge of a regular dependency (esbuild's@esbuild/*) lost the flag, andhasInstallScriptwas never read or written. The writer now marks packages reached only through optional edges asoptional(ordevOptional), andhasInstallScriptround-trips.Fix is in #1775, covered by a unit test of a parse/write round trip. I haven't run your repro repo or npm against it. Not addressed yet: the field reordering in existing entries and the dropped
funding.type, which account for much of the extra diff you saw.AI…