Skip to content

Commit

Permalink
Upgrade to npm lockfile v3 and explicitely set it (#23561)
Browse files Browse the repository at this point in the history
`npm@8` which comes with node 16 will by default write lockfile v2
`npm@9` which comes with recent versions of node 18 and above will write
lockfile v3

To avoid incorrect lockfile v2 generation on npm v8, force npm to write
lockfile v3, so no matter which npm version the user has installed, the
same lockfile format will be generated.

References:
-
https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json#lockfileversion
- https://nodejs.org/en/download/releases

Co-authored-by: delvh <leon@kske.dev>
  • Loading branch information
silverwind and delvh authored Mar 18, 2023
1 parent d42015e commit 7eede7f
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 7,363 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ fund=false
update-notifier=false
package-lock=true
save-exact=true
lockfile-version=3
Loading

0 comments on commit 7eede7f

Please sign in to comment.