@compas/stdlib
Advanced tools
Comparing version 0.7.0 to 0.7.1
{ | ||
"name": "@compas/stdlib", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "All kinds of utility functions", | ||
@@ -23,3 +23,3 @@ "exports": { | ||
"dependencies": { | ||
"@types/node": "20.5.1", | ||
"@types/node": "20.5.7", | ||
"dotenv": "16.3.1", | ||
@@ -26,0 +26,0 @@ "lodash.merge": "4.6.2", |
@@ -66,4 +66,18 @@ import { exec as cpExec, spawn as cpSpawn } from "node:child_process"; | ||
sp.once("error", reject); | ||
const exitHandler = (signal) => { | ||
sp.kill(signal); | ||
}; | ||
process.once("exit", exitHandler); | ||
sp.once("error", (...args) => { | ||
process.removeListener("exit", exitHandler); | ||
// eslint-disable-next-line prefer-promise-reject-errors | ||
return reject(...args); | ||
}); | ||
sp.once("exit", (code) => { | ||
process.removeListener("exit", exitHandler); | ||
resolve({ exitCode: code ?? 0 }); | ||
@@ -70,0 +84,0 @@ }); |
67247
28
2270
+ Added@types/node@20.5.7(transitive)
- Removed@types/node@20.5.1(transitive)
Updated@types/node@20.5.7