mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Enable repo-local core packages in the 'packages' folder
This commit is contained in:
parent
cdd6fc52d2
commit
77960f1d42
@ -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'))
|
||||||
|
@ -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'))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user