Skip to content

Commit 023e2d1

Browse files
committedJul 7, 2023
Merge branch 'main' of https://github.com/Triple-Whale/nodemon into Triple-Whale-main
* 'main' of https://github.com/Triple-Whale/nodemon: allow user set PATH
2 parents 725569b + d585386 commit 023e2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/monitor/run.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function run(options) {
6464

6565
const spawnOptions = {
6666
env: Object.assign({}, process.env, options.execOptions.env, {
67-
PATH: binPath + path.delimiter + process.env.PATH,
67+
PATH: binPath + path.delimiter + options.execOptions.env?.PATH || process.env.PATH,
6868
}),
6969
stdio: stdio,
7070
};

0 commit comments

Comments
 (0)
Please sign in to comment.