Rollback shrinkwrap (#8926)

This commit is contained in:
Tommaso Sciortino
2025-09-19 11:22:01 -07:00
committed by GitHub
parent 7681c595b5
commit d0da1f5fc9
12 changed files with 12 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ import { fileURLToPath } from 'node:url';
const __dirname = dirname(fileURLToPath(import.meta.url));
const root = join(__dirname, '..');
const lockfilePath = join(root, 'npm-shrinkwrap.json');
const lockfilePath = join(root, 'package-lock.json');
function readJsonFile(filePath) {
try {
@@ -64,7 +64,7 @@ for (const [location, details] of Object.entries(packages)) {
if (invalidPackages.length > 0) {
console.error(
'\nError: The following dependencies in npm-shrinkwrap.json are missing the "resolved" or "integrity" field:',
'\nError: The following dependencies in package-lock.json are missing the "resolved" or "integrity" field:',
);
invalidPackages.forEach((pkg) => console.error(`- ${pkg}`));
process.exitCode = 1;

View File

@@ -46,7 +46,6 @@ copyFiles('core', {
copyFiles('cli', {
'README.md': 'README.md',
LICENSE: 'LICENSE',
'npm-shrinkwrap.json': 'npm-shrinkwrap.json',
});
console.log('Successfully prepared all packages.');

View File

@@ -75,7 +75,7 @@ if (cliPackageJson.config?.sandboxImageUri) {
writeJson(cliPackageJsonPath, cliPackageJson);
}
// 6. Run `npm install` to update npm-shrinkwrap.json.
// 6. Run `npm install` to update package-lock.json.
run('npm install');
console.log(`Successfully bumped versions to v${newVersion}.`);