@absolutejs/absolute 0.13.4 → 0.13.5
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/cli/index.js +4 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var dev = async (serverEntry) => {
|
|
|
39
39
|
stderr: "inherit"
|
|
40
40
|
});
|
|
41
41
|
let cleaning = false;
|
|
42
|
-
const cleanup = async (
|
|
42
|
+
const cleanup = async (exitCode = 0) => {
|
|
43
43
|
if (cleaning)
|
|
44
44
|
return;
|
|
45
45
|
cleaning = true;
|
|
@@ -51,12 +51,12 @@ var dev = async (serverEntry) => {
|
|
|
51
51
|
await server.exited;
|
|
52
52
|
if (scripts)
|
|
53
53
|
await stopDatabase(scripts);
|
|
54
|
-
process.exit(
|
|
54
|
+
process.exit(exitCode);
|
|
55
55
|
};
|
|
56
56
|
process.on("SIGINT", () => cleanup(0));
|
|
57
57
|
process.on("SIGTERM", () => cleanup(0));
|
|
58
|
-
|
|
59
|
-
await cleanup(
|
|
58
|
+
await server.exited;
|
|
59
|
+
await cleanup(0);
|
|
60
60
|
};
|
|
61
61
|
var command = process.argv[2];
|
|
62
62
|
if (command === "dev") {
|
package/package.json
CHANGED