@ossy/cli 0.16.5 → 0.16.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/cli",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ossy-se/packages.git"
@@ -17,7 +17,7 @@
17
17
  "license": "MIT",
18
18
  "bin": "./src/index.js",
19
19
  "dependencies": {
20
- "@ossy/app": "^0.15.5",
20
+ "@ossy/app": "^0.15.6",
21
21
  "arg": "^5.0.2",
22
22
  "glob": "^10.3.10"
23
23
  },
@@ -29,5 +29,5 @@
29
29
  "/src",
30
30
  "README.md"
31
31
  ],
32
- "gitHead": "60384d10d4ae86cfe0bbbace31726d600e8febcd"
32
+ "gitHead": "cab8e25c6ee8c0d43aec120dee8421b231e1613a"
33
33
  }
@@ -16,7 +16,10 @@ function runNpxDeploymentTools (deploymentArgs) {
16
16
  const args = ['--yes', DEPLOYMENT_TOOLS, 'deployment', ...deploymentArgs]
17
17
  logInfo({ message: `[@ossy/cli] publish: npx ${DEPLOYMENT_TOOLS} deployment ${deploymentArgs[0]} …` })
18
18
  return new Promise((resolvePromise, reject) => {
19
- const child = spawn('npx', args, { stdio: 'inherit', shell: true })
19
+ // Do not use shell: true Node joins argv unsafely for sh -c (breaks scoped
20
+ // package names like @ossy/deployment-tools) and triggers DEP0190 on recent Node.
21
+ const npx = process.platform === 'win32' ? 'npx.cmd' : 'npx'
22
+ const child = spawn(npx, args, { stdio: 'inherit' })
20
23
  child.on('error', reject)
21
24
  child.on('close', (code) => {
22
25
  if (code === 0) resolvePromise()