Simply NODE_PATH to only include exports

This commit is contained in:
Kevin Sawicki 2013-09-19 11:23:01 -07:00
parent 88ccafa164
commit d754c473fc

View File

@ -44,15 +44,7 @@ class AtomWindow
@openPath(pathToOpen, initialLine)
setupNodePath: (resourcePath) ->
paths = [
'exports'
'node_modules'
]
paths = paths.map (relativePath) -> path.resolve(resourcePath, relativePath)
paths.push(resourcePath)
process.env['NODE_PATH'] = paths.join path.delimiter
process.env['NODE_PATH'] = path.resolve(resourcePath, 'exports')
getInitialPath: ->
@browserWindow.loadSettings.initialPath