Skip to content

Commit

Permalink
Prefer npx over yarn for running lerna commands
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Apr 7, 2021
1 parent 16d0b6c commit 165a837
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ const getIndependentNextReleases = async (
) => {
const packages = await getLernaPackages();
const [, changedPackagesResult = ""] = await on(
execPromise("yarn", ["lerna", "changed", "-a"])
execPromise("npx", ["lerna", "changed", "-a"])
);
const changedPackages = changedPackagesResult
.split("\n")
Expand Down Expand Up @@ -688,7 +688,7 @@ export default class NPMPlugin implements IPlugin {
// made, so no release will be made.
if (isIndependent) {
try {
await execPromise("yarn", ["lerna", "updated", "-a"]);
await execPromise("npx", ["lerna", "updated", "-a"]);
} catch (error) {
auto.logger.log.warn(
"Lerna detected no changes in project. Aborting release since nothing would be published."
Expand Down Expand Up @@ -836,7 +836,7 @@ export default class NPMPlugin implements IPlugin {
}

const [, changedPackagesResult = ""] = await on(
execPromise("yarn", ["lerna", "changed"])
execPromise("npx", ["lerna", "changed"])
);
const changedPackages = changedPackagesResult.split("\n");

Expand Down

0 comments on commit 165a837

Please sign in to comment.