Skip to content
Snippets Groups Projects
Unverified Commit 07d3afcd authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

feat(npm): call lerna directly instead of via npx (#6434)

BREAKING CHANGE: If installing renovate from npm, and also using lerna, then you now must install lerna prior to running renovate.
parent 3166e2b3
Branches
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ Array [ ...@@ -20,7 +20,7 @@ Array [
}, },
}, },
Object { Object {
"cmd": "npx lerna@latest bootstrap --no-ci -- --no-audit --package-lock-only", "cmd": "lerna bootstrap --no-ci -- --no-audit --package-lock-only",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -59,7 +59,7 @@ Array [ ...@@ -59,7 +59,7 @@ Array [
}, },
}, },
Object { Object {
"cmd": "npx lerna@latest bootstrap --no-ci -- --ignore-scripts --no-audit --package-lock-only", "cmd": "lerna bootstrap --no-ci -- --ignore-scripts --no-audit --package-lock-only",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -98,7 +98,7 @@ Array [ ...@@ -98,7 +98,7 @@ Array [
}, },
}, },
Object { Object {
"cmd": "npx lerna@2.0.0 bootstrap --no-ci -- --ignore-scripts --no-audit --package-lock-only", "cmd": "lerna bootstrap --no-ci -- --ignore-scripts --no-audit --package-lock-only",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -137,7 +137,7 @@ Array [ ...@@ -137,7 +137,7 @@ Array [
}, },
}, },
Object { Object {
"cmd": "npx lerna@2.0.0 bootstrap --no-ci -- --ignore-scripts --ignore-engines --ignore-platform", "cmd": "lerna bootstrap --no-ci -- --ignore-scripts --ignore-engines --ignore-platform",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -176,7 +176,7 @@ Array [ ...@@ -176,7 +176,7 @@ Array [
}, },
}, },
Object { Object {
"cmd": "npx lerna@latest bootstrap --no-ci -- --ignore-scripts --no-audit --package-lock-only", "cmd": "lerna bootstrap --no-ci -- --ignore-scripts --no-audit --package-lock-only",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -215,7 +215,7 @@ Array [ ...@@ -215,7 +215,7 @@ Array [
}, },
}, },
Object { Object {
"cmd": "npx lerna@2.0.0 bootstrap --no-ci -- --ignore-scripts --no-audit", "cmd": "lerna bootstrap --no-ci -- --ignore-scripts --no-audit",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
......
...@@ -92,9 +92,8 @@ export async function generateLockFiles( ...@@ -92,9 +92,8 @@ export async function generateLockFiles(
lernaVersion = 'latest'; lernaVersion = 'latest';
} }
logger.debug('Using lerna version ' + lernaVersion); logger.debug('Using lerna version ' + lernaVersion);
cmd.push( preCommands.push(`npm i -g lerna@${quote(lernaVersion)}`);
`npx lerna@${quote(lernaVersion)} bootstrap --no-ci -- ${cmdOptions}` cmd.push(`lerna bootstrap --no-ci -- ${cmdOptions}`);
);
await exec(cmd, execOptions); await exec(cmd, execOptions);
} catch (err) /* istanbul ignore next */ { } catch (err) /* istanbul ignore next */ {
logger.debug( logger.debug(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment