mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add PackageManager::getPackageDirPaths
This commit is contained in:
@@ -40,6 +40,12 @@ class PackageManager
|
||||
getApmPath: ->
|
||||
@apmPath ?= require.resolve('atom-package-manager/bin/apm')
|
||||
|
||||
# Public: Get the paths being used to look for packages.
|
||||
#
|
||||
# Returns an Array of String directory paths.
|
||||
getPackageDirPaths: ->
|
||||
_.clone(@packageDirPaths)
|
||||
|
||||
getPackageState: (name) ->
|
||||
@packageStates[name]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user