Skip to content

Commit package-lock.json and build with npm ci - #27

Merged
ihsoyCT merged 1 commit into
masterfrom
fix/ci-lockfile
Oct 30, 2026
Merged

ihsoyCT merged 1 commit into
masterfrom
fix/ci-lockfile

Conversation

@ihsoyCT

@ihsoyCT ihsoyCT commented Oct 30, 2026

Copy link
Copy Markdown
Owner

CI has been failing on every fresh install since webpack 5.112.0 (2026-10-15): it moved lib/Cache.js to lib/cache/Cache.js, and html-bundler-webpack-plugin (pulled in by pug-plugin, latest release still affected) requires webpack/lib/Cache. Because package-lock.json was gitignored, CI always installed the newest versions. Pinning webpack alone is not enough: minimizer-webpack-plugin 5.13 then breaks the CSS minify step.

This commits the lockfile the last green build used (webpack 5.111.1) and switches both workflows (PR build and the GitHub Pages deploy) to npm ci. Verified in a clean checkout: npm ci && npm run build:prod succeeds and dist/index.js is byte-identical to the committed one.

Needs to be merged before #26, otherwise its build (and the Pages deploy on master) fails.

🤖 Generated with Claude Code

package-lock.json was gitignored, so every CI run installed the newest
dependencies. webpack 5.112.0 (2026-10-15) moved lib/Cache.js to
lib/cache/Cache.js, and html-bundler-webpack-plugin (via pug-plugin,
latest 4.23.2) still requires 'webpack/lib/Cache', so every build has
failed since: "Cannot find module 'webpack/lib/Cache'". Pinning webpack
alone is not enough, minimizer-webpack-plugin 5.13 breaks the CSS
minify step of webpack 5.111.

The committed lockfile is the one the last green build (2026-09-27)
was made with (webpack 5.111.1). With npm ci a clean checkout builds
again and produces a dist/index.js identical to the committed one.
Dependencies now only change when the lockfile is updated on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ihsoyCT
ihsoyCT merged commit c238472 into master Oct 30, 2026
3 checks passed
ihsoyCT pushed a commit that referenced this pull request Oct 30, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant