@angular/compiler-cli
Advanced tools
Comparing version 2.1.0-beta.0 to 2.1.0-rc.0
{ | ||
"name": "@angular/compiler-cli", | ||
"version": "2.1.0-beta.0", | ||
"version": "2.1.0-rc.0", | ||
"description": "Angular - the compiler CLI for Node.js", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"reflect-metadata": "^0.1.2", | ||
"parse5": "1.3.2", | ||
"parse5": "^2.2.1", | ||
"minimist": "^1.2.0" | ||
@@ -20,5 +20,5 @@ }, | ||
"typescript": "^2.0.2", | ||
"@angular/compiler": "2.1.0-beta.0", | ||
"@angular/platform-server": "2.1.0-beta.0", | ||
"@angular/core": "2.1.0-beta.0" | ||
"@angular/compiler": "2.1.0-rc.0", | ||
"@angular/platform-server": "2.1.0-rc.0", | ||
"@angular/core": "2.1.0-rc.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "repository": { |
@@ -28,3 +28,3 @@ /** | ||
codegen(): Promise<any>; | ||
static create(options: AngularCompilerOptions, cliOptions: NgcCliOptions, program: ts.Program, compilerHost: ts.CompilerHost, reflectorHostContext?: ReflectorHostContext, resourceLoader?: compiler.ResourceLoader): CodeGenerator; | ||
static create(options: AngularCompilerOptions, cliOptions: NgcCliOptions, program: ts.Program, compilerHost: ts.CompilerHost, reflectorHostContext?: ReflectorHostContext, resourceLoader?: compiler.ResourceLoader, reflectorHost?: ReflectorHost): CodeGenerator; | ||
} |
@@ -118,3 +118,3 @@ /** | ||
}; | ||
CodeGenerator.create = function (options, cliOptions, program, compilerHost, reflectorHostContext, resourceLoader) { | ||
CodeGenerator.create = function (options, cliOptions, program, compilerHost, reflectorHostContext, resourceLoader, reflectorHost) { | ||
resourceLoader = resourceLoader || { | ||
@@ -139,6 +139,8 @@ get: function (s) { | ||
var urlResolver = compiler.createOfflineCompileUrlResolver(); | ||
var usePathMapping = !!options.rootDirs && options.rootDirs.length > 0; | ||
var reflectorHost = usePathMapping ? | ||
new path_mapped_reflector_host_1.PathMappedReflectorHost(program, compilerHost, options, reflectorHostContext) : | ||
new reflector_host_1.ReflectorHost(program, compilerHost, options, reflectorHostContext); | ||
if (!reflectorHost) { | ||
var usePathMapping = !!options.rootDirs && options.rootDirs.length > 0; | ||
reflectorHost = usePathMapping ? | ||
new path_mapped_reflector_host_1.PathMappedReflectorHost(program, compilerHost, options, reflectorHostContext) : | ||
new reflector_host_1.ReflectorHost(program, compilerHost, options, reflectorHostContext); | ||
} | ||
var staticReflector = new static_reflector_1.StaticReflector(reflectorHost); | ||
@@ -145,0 +147,0 @@ static_reflection_capabilities_1.StaticAndDynamicReflectionCapabilities.install(staticReflector); |
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
157010
1857
7
+ Added@angular/common@2.1.0-rc.0(transitive)
+ Added@angular/compiler@2.1.0-rc.0(transitive)
+ Added@angular/core@2.1.0-rc.0(transitive)
+ Added@angular/platform-browser@2.1.0-rc.0(transitive)
+ Added@angular/platform-server@2.1.0-rc.0(transitive)
+ Addedparse5@2.2.3(transitive)
- Removed@angular/common@2.1.0-beta.0(transitive)
- Removed@angular/compiler@2.1.0-beta.0(transitive)
- Removed@angular/core@2.1.0-beta.0(transitive)
- Removed@angular/platform-browser@2.1.0-beta.0(transitive)
- Removed@angular/platform-server@2.1.0-beta.0(transitive)
- Removedparse5@1.3.2(transitive)
Updatedparse5@^2.2.1