Reverse load path order

Packages may be linked into ~/.atom/packages or ~/.atom/dev/packages
so the resource should be loaded from there when available.
This commit is contained in:
Kevin Sawicki
2013-12-17 15:04:15 -08:00
parent a566bd469d
commit cdce91157f

View File

@@ -11,9 +11,9 @@ module.exports =
class AtomProtocolHandler
constructor: (@resourcePath) ->
@loadPaths = [
path.join(@resourcePath, 'node_modules')
path.join(app.getHomeDir(), '.atom', 'packages')
path.join(app.getHomeDir(), '.atom', 'dev', 'packages')
path.join(app.getHomeDir(), '.atom', 'packages')
path.join(@resourcePath, 'node_modules')
]
@registerAtomProtocol()