@dotenvx/dotenvx 0.7.2 → 0.7.3
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/package.json +1 -1
- package/src/cli/helpers.js +5 -1
package/package.json
CHANGED
package/src/cli/helpers.js
CHANGED
|
@@ -30,10 +30,14 @@ const executeCommand = async function (subCommand, env) {
|
|
|
30
30
|
let subprocess
|
|
31
31
|
const sigintHandler = () => {
|
|
32
32
|
logger.debug('received SIGINT')
|
|
33
|
+
logger.debug('checking subprocess')
|
|
34
|
+
logger.debug(subprocess)
|
|
33
35
|
|
|
34
36
|
if (subprocess) {
|
|
35
37
|
logger.debug('sending SIGINT to subprocess')
|
|
36
38
|
subprocess.kill('SIGINT') // Send SIGINT to the subprocess
|
|
39
|
+
} else {
|
|
40
|
+
logger.debug('no subprocess to send SIGINT to')
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -42,7 +46,7 @@ const executeCommand = async function (subCommand, env) {
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
try {
|
|
45
|
-
|
|
49
|
+
subprocess = execa(subCommand[0], subCommand.slice(1), {
|
|
46
50
|
stdio: 'inherit',
|
|
47
51
|
env: { ...process.env, ...env }
|
|
48
52
|
})
|