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

Commit

Permalink
fix(windows): Write to all possible cases of PATH variables (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
laggingreflex authored and zkat committed May 16, 2018
1 parent d030653 commit e4ecc54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ function lifecycle_ (pkg, stage, wd, opts, env, cb) {

if (env[PATH]) pathArr.push(env[PATH])
env[PATH] = pathArr.join(process.platform === 'win32' ? ';' : ':')
if (process.platform === 'win32') {
env.path = env.PATH = env.Path = env[PATH]
}

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

Expand Down

0 comments on commit e4ecc54

Please sign in to comment.