first-base 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -263,6 +263,14 @@ function spawn(cmd, argsOrOptions, passedOptions) {
|
|
|
263
263
|
if (code != null) {
|
|
264
264
|
runContext.result.code = code;
|
|
265
265
|
}
|
|
266
|
+
debugLog("NOTE: 'exit' event doesn't resolve completion. Waiting for 'close' event.");
|
|
267
|
+
});
|
|
268
|
+
debugLog("using 'on' method to listen for child close event");
|
|
269
|
+
child.on("close", (code) => {
|
|
270
|
+
debugLog("'close' event", { code });
|
|
271
|
+
if (code != null) {
|
|
272
|
+
runContext.result.code = code;
|
|
273
|
+
}
|
|
266
274
|
finish("exited");
|
|
267
275
|
});
|
|
268
276
|
}
|