mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04: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:
committed by
Geoffrey Booth
parent
e6f6aa8c85
commit
d23919c430
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user