mirror of
https://github.com/atom/atom.git
synced 2026-01-22 05:17:57 -05:00
Still set NODE_PATH since tasks may need it.
This commit is contained in:
@@ -149,7 +149,10 @@ class Atom extends Model
|
||||
configDirPath = @getConfigDirPath()
|
||||
|
||||
# Add 'src/exports' to module search path.
|
||||
require('module').globalPaths.push(path.resolve(resourcePath, 'exports'))
|
||||
exportsPath = path.resolve(resourcePath, 'exports')
|
||||
require('module').globalPaths.push(exportsPath)
|
||||
# Still set NODE_PATH since tasks may need it.
|
||||
process.env.NODE_PATH = exportsPath
|
||||
|
||||
@config = new Config({configDirPath, resourcePath})
|
||||
@keymap = new Keymap({configDirPath, resourcePath})
|
||||
|
||||
Reference in New Issue
Block a user