mirror of
https://github.com/netbirdio/docs.git
synced 2026-08-24 16:51:26 +02:00
build: track package-lock.json for reproducible installs (#838)
Stop gitignoring the lockfile and commit a freshly regenerated one so CI and Docker builds install a pinned dependency tree instead of re-resolving `^` ranges on every run. Fresh resolution matches the versions already building (no version changes). Document the convention in CLAUDE.md. Enables `npm ci` as a follow-up.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -21,7 +21,6 @@ yarn-error.log*
|
||||
|
||||
.idea
|
||||
|
||||
package-lock.json
|
||||
/.next/
|
||||
/yarn.lock
|
||||
/generator/openapi/
|
||||
|
||||
@@ -8,6 +8,8 @@ Documentation website for [NetBird](https://netbird.io), an open-source WireGuar
|
||||
|
||||
There is no test suite in this project. Validate changes with `npm run build`.
|
||||
|
||||
`package-lock.json` is committed, so installs are pinned. When you change dependencies in `package.json`, regenerate the lockfile (`npm install`) and commit it in the same change — otherwise local, CI, and Docker builds resolve different trees.
|
||||
|
||||
## Common Commands
|
||||
|
||||
```bash
|
||||
|
||||
10641
package-lock.json
generated
Normal file
10641
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user