Enable repo-local core packages in the 'packages' folder

This commit is contained in:
David Wilson 2018-07-13 14:32:07 -07:00
parent cdd6fc52d2
commit 77960f1d42
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,9 @@ class AtomProtocolHandler {
if (!safeMode) { if (!safeMode) {
this.loadPaths.push(path.join(process.env.ATOM_HOME, 'dev', 'packages')) this.loadPaths.push(path.join(process.env.ATOM_HOME, 'dev', 'packages'))
if (process.env.ATOM_DEV_RESOURCE_PATH) {
this.loadPaths.push(path.join(process.env.ATOM_DEV_RESOURCE_PATH, 'packages'))
}
} }
this.loadPaths.push(path.join(process.env.ATOM_HOME, 'packages')) this.loadPaths.push(path.join(process.env.ATOM_HOME, 'packages'))

View File

@ -61,6 +61,9 @@ module.exports = class PackageManager {
if (params.configDirPath != null && !params.safeMode) { if (params.configDirPath != null && !params.safeMode) {
if (this.devMode) { if (this.devMode) {
this.packageDirPaths.push(path.join(params.configDirPath, 'dev', 'packages')) this.packageDirPaths.push(path.join(params.configDirPath, 'dev', 'packages'))
if (process.env.ATOM_DEV_RESOURCE_PATH) {
this.packageDirPaths.push(path.join(process.env.ATOM_DEV_RESOURCE_PATH, 'packages'))
}
} }
this.packageDirPaths.push(path.join(params.configDirPath, 'packages')) this.packageDirPaths.push(path.join(params.configDirPath, 'packages'))
} }