Rename the env to ELECTRON_HIDE_INTERNAL_MODULES

This commit is contained in:
Cheng Zhao 2015-11-12 21:37:44 +08:00
parent eac2e7cc61
commit c649c4cf4f
3 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init')
globalPaths = Module.globalPaths
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')
if process.platform is 'win32'

View file

@ -9,7 +9,7 @@ process.atomBinding = (name) ->
catch e
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.
Module.globalPaths.push path.resolve(__dirname, '..', 'api', 'lib')

View file

@ -17,7 +17,7 @@ require path.resolve(__dirname, '..', '..', 'common', 'lib', 'init')
globalPaths = Module.globalPaths
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')
# The global variable will be used by ipc for event dispatching