mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-21 07:58:04 +03: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:
parent
c1eb1a69db
commit
a3ee15e584
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user