Skip to content

Commit

Permalink
Replace --prefix with cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-yeager committed Sep 12, 2024
1 parent 965234c commit 538f19c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/lib/dependencyManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ async function getProjectPackageJsonLocations() {

async function packagesNeedInstalled(directory) {
const exec = util.promisify(execAsync);
const { stdout } = await exec(
`npm install --ignore-scripts --dry-run --verbose --prefix=${directory}`
);
const { stdout } = await exec(`npm install --ignore-scripts --dry-run`, {
cwd: directory,
});
return !stdout?.includes('up to date in');
}

Expand Down

0 comments on commit 538f19c

Please sign in to comment.