Skip to content

Commit

Permalink
fix(js): change verdaccio childProcess kill order
Browse files Browse the repository at this point in the history
  • Loading branch information
alancpazetto authored and xiongemi committed Oct 10, 2024
1 parent db10812 commit c7a3814
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/js/src/executors/verdaccio/verdaccio.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ export async function verdaccioExecutor(
options.location === 'none' ? [] : [setupNpm(options), setupYarn(options)];

const processExitListener = (signal?: number | NodeJS.Signals) => {
if (childProcess) {
childProcess.kill(signal);
}
for (const fn of cleanupFunctions) {
fn();
}
if (childProcess) {
childProcess.kill(signal);
}
};
process.on('exit', processExitListener);
process.on('SIGTERM', processExitListener);
Expand Down

0 comments on commit c7a3814

Please sign in to comment.