@platformatic/basic 2.55.0 → 2.57.0
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/base.js +2 -1
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/base.js
CHANGED
|
@@ -302,12 +302,13 @@ export class BaseStackable {
|
|
|
302
302
|
|
|
303
303
|
async spawn (command) {
|
|
304
304
|
const [executable, ...args] = parseCommandString(command)
|
|
305
|
+
const hasChainedCommands = command.includes('&&') || command.includes('||') || command.includes(';')
|
|
305
306
|
|
|
306
307
|
/* c8 ignore next 3 */
|
|
307
308
|
const subprocess =
|
|
308
309
|
platform() === 'win32'
|
|
309
310
|
? spawn(command, { cwd: this.root, shell: true, windowsVerbatimArguments: true })
|
|
310
|
-
: spawn(executable, args, { cwd: this.root })
|
|
311
|
+
: spawn(executable, args, { cwd: this.root, shell: hasChainedCommands })
|
|
311
312
|
|
|
312
313
|
subprocess.stdout.setEncoding('utf8')
|
|
313
314
|
subprocess.stderr.setEncoding('utf8')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.57.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"split2": "^4.2.0",
|
|
25
25
|
"undici": "^7.0.0",
|
|
26
26
|
"ws": "^8.18.0",
|
|
27
|
-
"@platformatic/config": "2.
|
|
28
|
-
"@platformatic/itc": "2.
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/
|
|
31
|
-
"@platformatic/
|
|
27
|
+
"@platformatic/config": "2.57.0",
|
|
28
|
+
"@platformatic/itc": "2.57.0",
|
|
29
|
+
"@platformatic/metrics": "2.57.0",
|
|
30
|
+
"@platformatic/utils": "2.57.0",
|
|
31
|
+
"@platformatic/telemetry": "2.57.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"borp": "^0.19.0",
|
package/schema.json
CHANGED