@cerema/cadriciel 1.7.1 → 1.7.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.
@@ -19,7 +19,7 @@ module.exports = (args) => {
19
19
  // We use npm install to handle downloading and unpacking
20
20
  // We install to a distinct prefix to avoid polluting global or current project
21
21
  // --no-save ensures it doesn't try to write to a package.json
22
- const result = spawnSync('npm', ['install', PACKAGE_NAME + '@latest', '--force', '--no-save', '--prefix', CACHE_DIR], {
22
+ const result = spawnSync(`npm install ${PACKAGE_NAME}@latest --force --no-save --prefix "${CACHE_DIR}"`, {
23
23
  stdio: 'pipe',
24
24
  encoding: 'utf-8',
25
25
  shell: true
@@ -7,7 +7,7 @@ module.exports = (args) => {
7
7
  const { spawn } = require('child_process');
8
8
 
9
9
  const checkIfCommandExists = (command, callback) => {
10
- const proc = spawn('which', [command], { shell: true });
10
+ const proc = spawn(`which ${command}`, { shell: true });
11
11
 
12
12
  let found = false;
13
13
  proc.stdout.on('data', (data) => {
@@ -87,7 +87,7 @@ module.exports = (args) => {
87
87
  }
88
88
  args.push(imageEntry.image);
89
89
 
90
- const dockerPull = spawn('docker', args, { shell: true });
90
+ const dockerPull = spawn(`docker ${args.join(' ')}`, { shell: true });
91
91
  let stderrOutput = '';
92
92
 
93
93
  dockerPull.stdout.on('data', () => { });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cerema/cadriciel",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "npm": ">=8.0.0",