Skip to content
Snippets Groups Projects
Unverified Commit 71b1b58c authored by Ian Walter's avatar Ian Walter Committed by GitHub
Browse files

feat(pnpm): Adding --recursive flag to pnpm install (#6850)


Closes #2015: pnpm recursive support

Co-authored-by: default avatarMichael Kriese <michael.kriese@visualon.de>
parent 133ef0f1
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
exports[`generateLockFile catches errors 1`] = ` exports[`generateLockFile catches errors 1`] = `
Array [ Array [
Object { Object {
"cmd": "pnpm install --lockfile-only --ignore-scripts --ignore-pnpmfile", "cmd": "pnpm install --recursive --lockfile-only --ignore-scripts --ignore-pnpmfile",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -25,7 +25,7 @@ Array [ ...@@ -25,7 +25,7 @@ Array [
exports[`generateLockFile finds pnpm globally 1`] = ` exports[`generateLockFile finds pnpm globally 1`] = `
Array [ Array [
Object { Object {
"cmd": "pnpm install --lockfile-only --ignore-scripts --ignore-pnpmfile", "cmd": "pnpm install --recursive --lockfile-only --ignore-scripts --ignore-pnpmfile",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -47,7 +47,7 @@ Array [ ...@@ -47,7 +47,7 @@ Array [
exports[`generateLockFile generates lock files 1`] = ` exports[`generateLockFile generates lock files 1`] = `
Array [ Array [
Object { Object {
"cmd": "pnpm install --lockfile-only --ignore-scripts --ignore-pnpmfile", "cmd": "pnpm install --recursive --lockfile-only --ignore-scripts --ignore-pnpmfile",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
...@@ -69,7 +69,7 @@ Array [ ...@@ -69,7 +69,7 @@ Array [
exports[`generateLockFile performs lock file maintenance 1`] = ` exports[`generateLockFile performs lock file maintenance 1`] = `
Array [ Array [
Object { Object {
"cmd": "pnpm install --lockfile-only --ignore-scripts --ignore-pnpmfile", "cmd": "pnpm install --recursive --lockfile-only --ignore-scripts --ignore-pnpmfile",
"options": Object { "options": Object {
"cwd": "some-dir", "cwd": "some-dir",
"encoding": "utf-8", "encoding": "utf-8",
......
...@@ -54,7 +54,7 @@ export async function generateLockFile( ...@@ -54,7 +54,7 @@ export async function generateLockFile(
execOptions.docker.volumes = [[homeNpmrc, '/home/ubuntu/.npmrc']]; execOptions.docker.volumes = [[homeNpmrc, '/home/ubuntu/.npmrc']];
} }
cmd = 'pnpm'; cmd = 'pnpm';
let args = 'install --lockfile-only'; let args = 'install --recursive --lockfile-only';
if (global.trustLevel !== 'high' || config.ignoreScripts) { if (global.trustLevel !== 'high' || config.ignoreScripts) {
args += ' --ignore-scripts'; args += ' --ignore-scripts';
args += ' --ignore-pnpmfile'; args += ' --ignore-pnpmfile';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment