@angular/tsc-wrapped
Advanced tools
Comparing version 4.1.0-beta.0 to 4.1.0-beta.1
{ | ||
"name": "@angular/tsc-wrapped", | ||
"version": "4.1.0-beta.0", | ||
"version": "4.1.0-beta.1", | ||
"description": "Wraps the tsc CLI, allowing extensions.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/angular/angular/tree/master/tools/tsc-wrapped", |
@@ -436,5 +436,7 @@ "use strict"; | ||
// path.normalize() preserves leading '../' but not './'. This adds it back. | ||
return "." + path.sep + normalPath; | ||
normalPath = "." + path.sep + normalPath; | ||
} | ||
return normalPath; | ||
// Replace windows path delimiters with forward-slashes. Otherwise the paths are not | ||
// TypeScript compatible when building the bundle. | ||
return normalPath.replace(/\\/g, '/'); | ||
} | ||
@@ -441,0 +443,0 @@ return importName; |
@@ -61,2 +61,11 @@ /** | ||
}); | ||
it('should not output windows paths in metadata', function () { | ||
var host = new MockStringBundlerHost('/', { | ||
'index.ts': "\n export * from './exports/test';\n ", | ||
'exports': { 'test.ts': "export class TestExport {}" } | ||
}); | ||
var bundler = new bundler_1.MetadataBundler('/index', undefined, host); | ||
var result = bundler.getMetadataBundle(); | ||
expect(result.metadata.origins).toEqual({ 'TestExport': './exports/test' }); | ||
}); | ||
it('should convert re-exported to the export', function () { | ||
@@ -63,0 +72,0 @@ var host = new MockStringBundlerHost('/', { |
@@ -55,3 +55,5 @@ "use strict"; | ||
function open(directory, fileName) { | ||
var names = fileName.split('/'); | ||
// Path might be normalized by the current node environment. But it could also happen that this | ||
// path directly comes from the compiler in POSIX format. Support both separators for development. | ||
var names = fileName.split(/[\\/]/); | ||
var current = directory; | ||
@@ -58,0 +60,0 @@ if (names.length && names[0] === '') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
614419
4877