Use ELECTRON_RUN_AS_NODE Variable Key

- https://github.com/atom/electron/pull/3594
This commit is contained in:
Joe Fitzgerald
2016-01-19 17:41:27 -08:00
parent 1be4453c53
commit 3a14fa2a2e

View File

@@ -46,7 +46,7 @@ class BufferedNodeProcess extends BufferedProcess
options ?= {}
options.env ?= Object.create(process.env)
options.env['ATOM_SHELL_INTERNAL_RUN_AS_NODE'] = 1
options.env['ELECTRON_RUN_AS_NODE'] = 1
args = args?.slice() ? []
args.unshift(command)