Convert old bundle names until specs are updated

This commit is contained in:
Kevin Sawicki
2013-10-22 11:54:19 -07:00
parent b2dae8be6c
commit 40ab5938f2

View File

@@ -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?