We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c5627f commit a188b1dCopy full SHA for a188b1d
src/cli-ts-node-esm.ts
@@ -3,8 +3,8 @@ import { spawnSync } from "child_process"
3
4
if ((process.env["NODE_OPTIONS"] || "").includes("--loader ts-node"))
5
require("./cli")
6
-else
7
- spawnSync(process.argv[0], process.argv.slice(1), {
+else {
+ const childProcess = spawnSync(process.argv[0], process.argv.slice(1), {
8
stdio: "inherit",
9
env: {
10
...process.env,
@@ -18,3 +18,6 @@ else
18
},
19
windowsHide: true,
20
})
21
+
22
+ process.exit(childProcess.status || 0)
23
+}
0 commit comments