mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
Simply NODE_PATH to only include exports
This commit is contained in:
parent
88ccafa164
commit
d754c473fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user