mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-02-01 22:48:03 +00:00
Use shrinkwrap for package locking (#8298)
This commit is contained in:
committed by
GitHub
parent
c15774ce68
commit
21826010ef
@@ -10,7 +10,7 @@ import { fileURLToPath } from 'node:url';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
const root = join(__dirname, '..');
|
||||
const lockfilePath = join(root, 'package-lock.json');
|
||||
const lockfilePath = join(root, 'npm-shrinkwrap.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 package-lock.json are missing the "resolved" or "integrity" field:',
|
||||
'\nError: The following dependencies in npm-shrinkwrap.json are missing the "resolved" or "integrity" field:',
|
||||
);
|
||||
invalidPackages.forEach((pkg) => console.error(`- ${pkg}`));
|
||||
process.exitCode = 1;
|
||||
|
||||
Reference in New Issue
Block a user