summaryrefslogtreecommitdiffstats
path: root/.npmrc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-03-18 19:38:10 +0100
committerGitHub <noreply@github.com>2023-03-18 19:38:10 +0100
commit7eede7f8de299a8e657937d237f9d62e44bdd79b (patch)
tree6d00355a379584d1b767ceb93991c459f66ed744 /.npmrc
parentd42015e6eb382058ad915a7a5a5789424bb53014 (diff)
downloadgitea-7eede7f8de299a8e657937d237f9d62e44bdd79b.tar.gz
gitea-7eede7f8de299a8e657937d237f9d62e44bdd79b.zip
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>
Diffstat (limited to '.npmrc')
-rw-r--r--.npmrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.npmrc b/.npmrc
index 8dcb4185bd..d9207e7f82 100644
--- a/.npmrc
+++ b/.npmrc
@@ -3,3 +3,4 @@ fund=false
update-notifier=false
package-lock=true
save-exact=true
+lockfile-version=3