sprint-es 0.0.105 → 0.0.106
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/cjs/cli.cjs +1 -4
- package/dist/esm/cli.js +1 -4
- package/package.json +1 -1
package/dist/cjs/cli.cjs
CHANGED
|
@@ -171,10 +171,7 @@ function runCommand(cmd, envVars) {
|
|
|
171
171
|
});
|
|
172
172
|
child.on("exit", (code) => {
|
|
173
173
|
if (code === 0 || code === null) resolve2();
|
|
174
|
-
else {
|
|
175
|
-
console.error(`Command failed with exit code ${code}`);
|
|
176
|
-
process.exit(code);
|
|
177
|
-
}
|
|
174
|
+
else reject(new Error(`Command failed with exit code ${code}`));
|
|
178
175
|
});
|
|
179
176
|
});
|
|
180
177
|
}
|
package/dist/esm/cli.js
CHANGED
|
@@ -152,10 +152,7 @@ function runCommand(cmd, envVars) {
|
|
|
152
152
|
});
|
|
153
153
|
child.on("exit", (code) => {
|
|
154
154
|
if (code === 0 || code === null) resolve2();
|
|
155
|
-
else {
|
|
156
|
-
console.error(`Command failed with exit code ${code}`);
|
|
157
|
-
process.exit(code);
|
|
158
|
-
}
|
|
155
|
+
else reject(new Error(`Command failed with exit code ${code}`));
|
|
159
156
|
});
|
|
160
157
|
});
|
|
161
158
|
}
|