Remove package-lock lockfileVersion check.
This commit is contained in:
parent
843a0dd3c0
commit
08c93244ef
1 changed files with 3 additions and 3 deletions
|
@ -132,9 +132,9 @@ try {
|
||||||
|
|
||||||
// Many users will be using the latest LTS version of npm, and the latest LTS version of npm uses
|
// Many users will be using the latest LTS version of npm, and the latest LTS version of npm uses
|
||||||
// lockfileVersion 1. Enforce v1 so that users don't see a (benign) compatibility warning.
|
// lockfileVersion 1. Enforce v1 so that users don't see a (benign) compatibility warning.
|
||||||
if (readJson('./src/package-lock.json').lockfileVersion !== 1) {
|
const pkglock = readJson('./src/package-lock.json');
|
||||||
throw new Error('Please regenerate package-lock.json with npm v6.x.');
|
pkglock.lockfileVersion = 1;
|
||||||
}
|
writeJson('./src/package-lock.json', pkglock);
|
||||||
|
|
||||||
run('git add src/package.json');
|
run('git add src/package.json');
|
||||||
run('git add src/package-lock.json');
|
run('git add src/package-lock.json');
|
||||||
|
|
Loading…
Reference in a new issue