@@ -38,6 +38,7 @@ module.exports = function makeNodeTree(projects, destinationPath) {
3838
3939 let externalTypings = [
4040 '@angular/typings/hammerjs/hammerjs.d.ts' ,
41+ '@angular/typings/jasmine/jasmine.d.ts' ,
4142 '@angular/typings/node/node.d.ts' ,
4243 '@angular/manual_typings/globals.d.ts' ,
4344 '@angular/typings/es6-collections/es6-collections.d.ts' ,
@@ -58,42 +59,42 @@ module.exports = function makeNodeTree(projects, destinationPath) {
5859 include : [
5960 '@angular/manual_typings/**' ,
6061 '@angular/typings/**' ,
61-
6262 '@angular/test/**' ,
63- 'benchpress/**' ,
64- '**/e2e_test/**' ,
6563 '@angular/examples/**/*_spec.ts' ,
66-
6764 '@angular/src/testing/**' ,
6865 '@angular/testing.ts' ,
6966 '@angular/testing_internal.ts' ,
7067 '@angular/src/upgrade/**' ,
7168 '@angular/upgrade.ts' ,
7269 '@angular/platform/testing/**' ,
70+
71+ 'benchpress/**' ,
72+ '**/e2e_test/**' ,
7373 ] ,
7474 exclude : [
75+ '@angular/core/test/typings.d.ts' ,
7576 // the following code and tests are not compatible with CJS/node environment
76- '@angular/test/animate/**' ,
77- '@angular/test/ core/zone/**' ,
78- '@angular/test/ testing/fake_async_spec.ts' ,
79- '@angular/test/ testing/testing_public_browser_spec.ts' ,
80- '@angular/test/ platform/xhr_impl_spec.ts' ,
81- '@angular/test/ platform/browser/**/*.ts' ,
82- '@angular/test/ common/forms/**' ,
77+ '@angular/platform-browser/ test/animate/**' ,
78+ '@angular/core/test /zone/**' ,
79+ '@angular/testing/test /fake_async_spec.ts' ,
80+ '@angular/testing/test /testing_public_browser_spec.ts' ,
81+ '@angular/platform/test /xhr_impl_spec.ts' ,
82+ '@angular/platform/test /browser/**/*.ts' ,
83+ '@angular/common/test /forms/**' ,
8384 '@angular/manual_typings/**' ,
8485 '@angular/typings/**' ,
8586
8687 // we call browser's bootstrap
87- '@angular/test/ router/route_config/route_config_spec.ts' ,
88- '@angular/test/ router/integration/bootstrap_spec.ts' ,
88+ '@angular/router/test /route_config/route_config_spec.ts' ,
89+ '@angular/router/test /integration/bootstrap_spec.ts' ,
8990
9091 // we check the public api by importing angular2/angular2
91- '@angular/test/ symbol_inspector/**/*.ts' ,
92+ '@angular/symbol_inspector/test /**/*.ts' ,
9293 '@angular/test/public_api_spec.ts' ,
9394
94- '@angular/test/ web_workers/worker/renderer_integration_spec.ts' ,
95+ '@angular/web_workers/test /worker/renderer_integration_spec.ts' ,
9596
96- '@angular/test/ upgrade/**/*.ts' ,
97+ '@angular/upgrade/test /**/*.ts' ,
9798 'angular1_router/**' ,
9899 'payload_tests/**'
99100 ]
@@ -226,12 +227,18 @@ function compileTree(tree, genInternalTypings, rootFilePaths: string[] = []) {
226227 "declaration" : true ,
227228 "stripInternal" : true ,
228229 "module" : "commonjs" ,
229- "moduleResolution" : "classic " ,
230+ "moduleResolution" : "node " ,
230231 "noEmitOnError" : true ,
231232 "rootDir" : "." ,
232233 "inlineSourceMap" : true ,
233234 "inlineSources" : true ,
234- "target" : "es5"
235+ "target" : "es5" ,
236+ // "traceResolution": true,
237+ "baseUrl" : "." ,
238+ "paths" : {
239+ "rxjs/*" : [ "./rxjs/*" ] ,
240+ "@angular/*" : [ "./@angular/*" ]
241+ }
235242 } ) ;
236243}
237244
0 commit comments