Remove package-lock lockfileVersion check.

This commit is contained in:
SamTV12345 2023-06-20 16:44:40 +02:00
parent 843a0dd3c0
commit 08c93244ef
No known key found for this signature in database
GPG key ID: E63EEC7466038043

View file

@ -132,9 +132,9 @@ try {
// 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.
if (readJson('./src/package-lock.json').lockfileVersion !== 1) {
throw new Error('Please regenerate package-lock.json with npm v6.x.');
}
const pkglock = readJson('./src/package-lock.json');
pkglock.lockfileVersion = 1;
writeJson('./src/package-lock.json', pkglock);
run('git add src/package.json');
run('git add src/package-lock.json');