Update requires paths
This commit is contained in:
parent
f109591d03
commit
006c77a00f
6 changed files with 11 additions and 12 deletions
|
@ -11,19 +11,19 @@ var slice = [].slice;
|
|||
process.argv.splice(1, 1);
|
||||
|
||||
// Clear search paths.
|
||||
require(path.resolve(__dirname, '..', '..', 'common', 'lib', 'reset-search-paths'));
|
||||
require(path.resolve(__dirname, '..', 'common', 'reset-search-paths'));
|
||||
|
||||
// Import common settings.
|
||||
require(path.resolve(__dirname, '..', '..', 'common', 'lib', 'init'));
|
||||
require(path.resolve(__dirname, '..', 'common', 'init'));
|
||||
|
||||
var globalPaths = Module.globalPaths;
|
||||
|
||||
if (!process.env.ELECTRON_HIDE_INTERNAL_MODULES) {
|
||||
globalPaths.push(path.resolve(__dirname, '..', 'api', 'lib'));
|
||||
globalPaths.push(path.resolve(__dirname, 'api'));
|
||||
}
|
||||
|
||||
// Expose public APIs.
|
||||
globalPaths.push(path.resolve(__dirname, '..', 'api', 'lib', 'exports'));
|
||||
globalPaths.push(path.resolve(__dirname, 'api', 'exports'));
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
// Redirect node's console to use our own implementations, since node can not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue