mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Load non-dev packages in dev mode too, found by @as-cii
This commit is contained in:
@@ -58,7 +58,10 @@ module.exports = class PackageManager {
|
||||
this.devMode = params.devMode
|
||||
this.resourcePath = params.resourcePath
|
||||
if (params.configDirPath != null && !params.safeMode) {
|
||||
this.packageDirPaths.push(path.join(params.configDirPath, this.devMode ? 'dev' : '', 'packages'))
|
||||
if (this.devMode) {
|
||||
this.packageDirPaths.push(path.join(params.configDirPath, 'dev', 'packages'))
|
||||
}
|
||||
this.packageDirPaths.push(path.join(params.configDirPath, 'packages'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user