Rename the env to ELECTRON_HIDE_INTERNAL_MODULES
This commit is contained in:
parent
eac2e7cc61
commit
c649c4cf4f
3 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init')
|
||||||
globalPaths = Module.globalPaths
|
globalPaths = Module.globalPaths
|
||||||
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
|
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
|
||||||
|
|
||||||
unless process.env.ELECTRON_DISABLE_OLD_STYLE_MODULES
|
unless process.env.ELECTRON_HIDE_INTERNAL_MODULES
|
||||||
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
||||||
|
|
||||||
if process.platform is 'win32'
|
if process.platform is 'win32'
|
||||||
|
|
|
@ -9,7 +9,7 @@ process.atomBinding = (name) ->
|
||||||
catch e
|
catch e
|
||||||
process.binding "atom_common_#{name}" if /No such module/.test e.message
|
process.binding "atom_common_#{name}" if /No such module/.test e.message
|
||||||
|
|
||||||
unless process.env.ELECTRON_DISABLE_OLD_STYLE_MODULES
|
unless process.env.ELECTRON_HIDE_INTERNAL_MODULES
|
||||||
# Add common/api/lib to module search paths.
|
# Add common/api/lib to module search paths.
|
||||||
Module.globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
Module.globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init')
|
||||||
globalPaths = Module.globalPaths
|
globalPaths = Module.globalPaths
|
||||||
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
|
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib', 'exports')
|
||||||
|
|
||||||
unless process.env.ELECTRON_DISABLE_OLD_STYLE_MODULES
|
unless process.env.ELECTRON_HIDE_INTERNAL_MODULES
|
||||||
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')
|
||||||
|
|
||||||
# The global variable will be used by ipc for event dispatching
|
# The global variable will be used by ipc for event dispatching
|
||||||
|
|
Loading…
Reference in a new issue