fix: support windows by using path.delimiter

This commit is contained in:
Stijn Herreman
2022-02-23 17:36:11 +01:00
committed by Remy Sharp
parent 9d1afd7694
commit e26aaa97d9

View File

@@ -64,7 +64,7 @@ function run(options) {
const spawnOptions = {
env: Object.assign({}, process.env, options.execOptions.env, {
PATH: binPath + ':' + process.env.PATH,
PATH: binPath + path.delimiter + process.env.PATH,
}),
stdio: stdio,
};