Upgrade to npm lockfile v3 and explicitely set it (#23561)

`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>
This commit is contained in:
silverwind
2023-03-18 19:38:10 +01:00
repo.diff.committed_by GitHub
repo.diff.parent d42015e6eb
repo.diff.commit 7eede7f8de
repo.diff.stats_desc%!(EXTRA int=2, int=114, int=7363)

1
.npmrc
repo.diff.view_file

@@ -3,3 +3,4 @@ fund=false
update-notifier=false
package-lock=true
save-exact=true
lockfile-version=3

7476
package-lock.json repo.diff.generated

repo.diff.file_suppressed repo.diff.load