mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
Preserve environment when calling coffee from test (#5191)
This change spawns `coffee` with a new path, but without removing all other environment variables. This is useful for preserving environment needed by Node, for example, `LD_LIBRARY_PATH` on Unix. In particular, fix #5179.
This commit is contained in:
parent
e6f6aa8c85
commit
d23919c430
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ coffeeCommand = if isWindows() then 'node coffee' else 'coffee'
|
|||
spawnOptions =
|
||||
cwd: coffeeBinFolder
|
||||
encoding: 'utf8'
|
||||
env:
|
||||
env: Object.assign {}, process.env,
|
||||
PATH: coffeeBinFolder + (if isWindows() then ';' else ':') + process.env.PATH
|
||||
shell: isWindows()
|
||||
|
||||
|
|
Loading…
Reference in a new issue