Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit e4ecc54

Browse files
laggingreflexzkat
authored andcommitted
fix(windows): Write to all possible cases of PATH variables (#17)
1 parent d030653 commit e4ecc54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ function lifecycle_ (pkg, stage, wd, opts, env, cb) {
122122

123123
if (env[PATH]) pathArr.push(env[PATH])
124124
env[PATH] = pathArr.join(process.platform === 'win32' ? ';' : ':')
125+
if (process.platform === 'win32') {
126+
env.path = env.PATH = env.Path = env[PATH]
127+
}
125128

126129
var packageLifecycle = pkg.scripts && pkg.scripts.hasOwnProperty(stage)
127130

0 commit comments

Comments
 (0)