Skip to content

Commit 25e32fa

Browse files
committed
Run npm audit fix instead of npm i for update script
1 parent 2a4dbf2 commit 25e32fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.scripts/update.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const updateDependency = (projectPath, version) => {
3131

3232
// Detect lock file and run appropriate command
3333
if (existsSync(join(projectPath, "package-lock.json"))) {
34-
console.log(`Running npm install in ${projectPath}`);
35-
execSync("npm install", { cwd: projectPath, stdio: "inherit" });
34+
console.log(`Running "npm audit fix" in ${projectPath}`);
35+
execSync("npm audit fix", { cwd: projectPath, stdio: "inherit" });
3636
} else if (existsSync(join(projectPath, "bun.lockb"))) {
37-
console.log(`Running bun install in ${projectPath}`);
37+
console.log(`Running "bun install" in ${projectPath}`);
3838
execSync("bun install", { cwd: projectPath, stdio: "inherit" });
3939
} else {
4040
console.log(`No lock file detected in ${projectPath}`);

0 commit comments

Comments
 (0)