Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Triple-Whale/nodemon into T…
Browse files Browse the repository at this point in the history
…riple-Whale-main

* 'main' of https://github.com/Triple-Whale/nodemon:
  allow user set PATH
  • Loading branch information
remy committed Jul 7, 2023
2 parents 725569b + d585386 commit 023e2d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function run(options) {

const spawnOptions = {
env: Object.assign({}, process.env, options.execOptions.env, {
PATH: binPath + path.delimiter + process.env.PATH,
PATH: binPath + path.delimiter + options.execOptions.env?.PATH || process.env.PATH,
}),
stdio: stdio,
};
Expand Down

0 comments on commit 023e2d1

Please sign in to comment.