mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Path normalization
This commit is contained in:
@@ -32,10 +32,10 @@ class PackageTranspilationRegistry {
|
||||
console.log(">>>>> REMOVING: " + packagePath)
|
||||
delete this.configByPackagePath[packagePath]
|
||||
const packagePathWithSep = packagePath.endsWith(path.sep) ?
|
||||
packagePath : packagePath + path.sep;
|
||||
path.join(packagePath) : path.join(packagePath) + path.sep;
|
||||
Object.keys(this.specByFilePath).forEach(filePath => {
|
||||
console.log('checking if ' + filePath + ' starts with ' + packagePathWithSep)
|
||||
if (filePath.startsWith(packagePathWithSep)) {
|
||||
if (path.join(filePath).startsWith(packagePathWithSep)) {
|
||||
console.log(' >> REMOVING ' + filePath)
|
||||
delete this.specByFilePath[filePath]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user