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:
Kevin Sawicki 2013-10-01 09:07:39 -07:00
parent c1eb1a69db
commit a3ee15e584

View File

@ -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