Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4d620f

Browse files
committed
refactor: update update-deps action
1 parent d38107e commit d4d620f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

actions/unjs/update-deps.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ export default defineAction({
2828
}
2929
});
3030
const pm = await utils.detectPackageManager();
31-
for (const lockfileName of [pm?.lockFile].flat().filter(Boolean)) {
32-
// await utils.remove(lockfileName)
33-
console.log(`Removing ${lockfileName}`);
31+
for (const lockfileName of [pm?.lockFile]
32+
.flat()
33+
.filter(Boolean) as string[]) {
34+
await utils.remove(lockfileName);
3435
}
36+
await utils.runPackageManagerCommand("install");
3537
await utils.runPackageManagerCommand("outdated", { ignoreErrors: true });
3638
},
3739
});

0 commit comments

Comments
 (0)