Skip to content

Commit

Permalink
Use process.execPath instead of resolving node from $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Oct 7, 2022
1 parent 57759a8 commit 3792657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default class LernaChangelogGeneratorPlugin extends Plugin {
}

async _execLernaChangelog(from) {
let changelog = await this.exec(`node ${LERNA_PATH} --next-version=${UNRELEASED} --from=${from}`, {
let changelog = await this.exec(`${process.execPath} ${LERNA_PATH} --next-version=${UNRELEASED} --from=${from}`, {
options: { write: false },
});

Expand Down

0 comments on commit 3792657

Please sign in to comment.