Parameterize configDirPath and move config.load in ctor

This commit is contained in:
Antonio Scandurra
2015-10-14 12:41:00 +02:00
parent d9af8686ed
commit b25d3e944b
8 changed files with 35 additions and 21 deletions

View File

@@ -37,7 +37,7 @@ class PackageManager
@emitter = new Emitter
@activationHookEmitter = new Emitter
@packageDirPaths = []
unless safeMode
if configDirPath? and not safeMode
if @devMode
@packageDirPaths.push(path.join(configDirPath, "dev", "packages"))
@packageDirPaths.push(path.join(configDirPath, "packages"))