mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Convert old bundle names until specs are updated
This commit is contained in:
@@ -94,6 +94,10 @@ class PackageManager
|
||||
packagePath = path.join(@resourcePath, 'node_modules', name)
|
||||
return packagePath if @isInternalPackage(packagePath)
|
||||
|
||||
#TODO Remove once all package specs have been updated
|
||||
if match = /(.+)-tmbundle$/.exec(name)
|
||||
@resolvePackagePath("language-#{match[1]}")
|
||||
|
||||
isInternalPackage: (packagePath) ->
|
||||
{engines} = Package.loadMetadata(packagePath, true)
|
||||
engines?.atom?
|
||||
|
||||
Reference in New Issue
Block a user