Add ~/.atom/dev/packages to package load path in dev mode

This commit is contained in:
Kevin Sawicki & Nathan Sobo
2013-08-14 17:41:32 -07:00
committed by Kevin Sawicki
parent 42a34c01c9
commit 24e0d8fc03

View File

@@ -13,6 +13,8 @@ bundledThemesDirPath = path.join(resourcePath, "themes")
userThemesDirPath = path.join(configDirPath, "themes")
userPackagesDirPath = path.join(configDirPath, "packages")
userStoragePath = path.join(configDirPath, ".storage")
packageDirPaths = [userPackagesDirPath]
packageDirPaths.unshift(path.join(configDirPath, "dev", "packages")) if atom.getLoadSettings().devMode
# Public: Handles all of Atom's configuration details.
#
@@ -24,7 +26,7 @@ class Config
themeDirPaths: [userThemesDirPath, bundledThemesDirPath]
bundledPackageDirPaths: [nodeModulesDirPath]
nodeModulesDirPath: nodeModulesDirPath
packageDirPaths: [userPackagesDirPath]
packageDirPaths: packageDirPaths
userPackagesDirPath: userPackagesDirPath
userStoragePath: userStoragePath
lessSearchPaths: [path.join(resourcePath, 'static'), path.join(resourcePath, 'vendor')]