浏览代码

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>
tags/v1.20.0-rc0
silverwind 1年前
父节点
当前提交
7eede7f8de
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 114 次插入7363 次删除
  1. 1
    0
      .npmrc
  2. 113
    7363
      package-lock.json

+ 1
- 0
.npmrc 查看文件

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

+ 113
- 7363
package-lock.json
文件差异内容过多而无法显示
查看文件


正在加载...
取消
保存