@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.
- package/cli/global/create.js +1 -1
- package/cli/global/install.js +2 -2
- package/package.json +1 -1
package/cli/global/create.js
CHANGED
|
@@ -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(
|
|
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
|
package/cli/global/install.js
CHANGED
|
@@ -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(
|
|
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(
|
|
90
|
+
const dockerPull = spawn(`docker ${args.join(' ')}`, { shell: true });
|
|
91
91
|
let stderrOutput = '';
|
|
92
92
|
|
|
93
93
|
dockerPull.stdout.on('data', () => { });
|