mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Remove node_modules from NODE_PATH
Packages now specify their dependencies in package.json so they should no longer rely on the availability of modules in the main node_modules folder.
This commit is contained in:
@@ -41,9 +41,7 @@ class AtomWindow
|
||||
@openPath(pathToOpen, initialLine)
|
||||
|
||||
setupNodePath: (resourcePath) ->
|
||||
paths = ['exports', 'node_modules']
|
||||
paths = paths.map (relativePath) -> path.resolve(resourcePath, relativePath)
|
||||
process.env['NODE_PATH'] = paths.join path.delimiter
|
||||
process.env['NODE_PATH'] = path.resolve(resourcePath, 'exports')
|
||||
|
||||
getInitialPath: ->
|
||||
@browserWindow.loadSettings.initialPath
|
||||
|
||||
Reference in New Issue
Block a user