mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Only put spec on NODE_PATH when running specs
This commit is contained in:
@@ -49,12 +49,12 @@ class AtomWindow
|
||||
'vendor'
|
||||
'static'
|
||||
'node_modules'
|
||||
'spec'
|
||||
''
|
||||
]
|
||||
paths.push('spec') if @isSpec
|
||||
|
||||
paths = paths.map (relativeOrAbsolutePath) ->
|
||||
path.resolve resourcePath, relativeOrAbsolutePath
|
||||
paths.push(resourcePath)
|
||||
|
||||
process.env['NODE_PATH'] = paths.join path.delimiter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user