@platformatic/basic 2.56.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 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.56.0",
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.56.0",
28
- "@platformatic/metrics": "2.56.0",
29
- "@platformatic/utils": "2.56.0",
30
- "@platformatic/telemetry": "2.56.0",
31
- "@platformatic/itc": "2.56.0"
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.56.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/basic/2.57.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Stackable",
5
5
  "type": "object",