Skip to content

Commit bd4b415

Browse files
committed
Explicitly exit.
1 parent a22ef90 commit bd4b415

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

scripts/node/lint-lockfile.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,5 +274,7 @@ run()
274274
} else {
275275
logger.info("✅ Lockfile is in sync.");
276276
}
277+
278+
process.exit(0);
277279
})
278280
.catch((error) => reportAndExit(error, logger));

scripts/node/lint-runtime.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,6 @@ async function main() {
110110
main()
111111
.then(() => {
112112
logger.info("✅ Node.js and npm versions are in sync.");
113+
process.exit(0);
113114
})
114115
.catch((error) => reportAndExit(error, logger));

scripts/node/setup-corepack.mjs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,12 @@ async function main() {
102102
subcommand = "use";
103103
}
104104

105-
await $`corepack ${subcommand} ${packageManager}`({ cwd });
106-
107-
logger.info("Corepack installed npm successfully");
105+
return $`corepack ${subcommand} ${packageManager}`({ cwd });
108106
}
109107

110-
main().catch((error) => reportAndExit(error, logger));
108+
main()
109+
.then(() => {
110+
logger.info("Corepack setup completed successfully");
111+
process.exit(0);
112+
})
113+
.catch((error) => reportAndExit(error, logger));

0 commit comments

Comments
 (0)