@sap-ux/nodejs-utils 0.0.1 → 0.0.2
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/commandRunner.js +2 -1
- package/package.json +1 -1
package/dist/commandRunner.js
CHANGED
|
@@ -17,7 +17,8 @@ class CommandRunner {
|
|
|
17
17
|
run(cmd, args = []) {
|
|
18
18
|
return new Promise((resolve, reject) => {
|
|
19
19
|
const stack = [];
|
|
20
|
-
const
|
|
20
|
+
const spawnOpts = process.platform === 'win32' ? { shell: true } : {};
|
|
21
|
+
const spawnedCmd = (0, child_process_1.spawn)(cmd, args, spawnOpts);
|
|
21
22
|
spawnedCmd.stdout.setEncoding('utf8');
|
|
22
23
|
let response;
|
|
23
24
|
spawnedCmd.stdout.on('data', (data) => {
|