@salesforce/cli-plugins-testkit 2.5.1 → 2.5.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/lib/execCmd.js +4 -1
- package/package.json +1 -1
package/lib/execCmd.js
CHANGED
|
@@ -212,7 +212,10 @@ async function execInteractiveCmd(command, answers, options = {}) {
|
|
|
212
212
|
return new Promise((resolve, reject) => {
|
|
213
213
|
const bin = buildCmd('').trim();
|
|
214
214
|
const startTime = process.hrtime();
|
|
215
|
-
const
|
|
215
|
+
const opts = process.platform === 'win32'
|
|
216
|
+
? { shell: true, cwd: process.cwd(), ...options }
|
|
217
|
+
: { cwd: process.cwd(), ...options };
|
|
218
|
+
const child = (0, child_process_1.spawn)(bin, command.split(' '), opts);
|
|
216
219
|
child.stdin.setDefaultEncoding('utf-8');
|
|
217
220
|
const seen = new Set();
|
|
218
221
|
const output = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/cli-plugins-testkit",
|
|
3
3
|
"description": "Provides test utilities to assist Salesforce CLI plug-in authors with writing non-unit tests (NUT).",
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.2",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "lib/index.js",
|