build: reference zone.js from source directly instead of npm. (#33046)
Close #32482 PR Close #33046
This commit is contained in:
@ -38,10 +38,17 @@ nodejs_test(
|
||||
"@npm//rxjs",
|
||||
"@npm//tslib",
|
||||
"@npm//jasmine/bin:jasmine",
|
||||
"@npm//zone.js",
|
||||
"@npm//xhr2",
|
||||
"@npm//@types/node",
|
||||
"@npm//@types/jasmine",
|
||||
# we need to reference zone.d.ts typing file from zone.js build target
|
||||
# instead of npm because angular repo will not depends on npm zone.js
|
||||
# any longer.
|
||||
"//packages/zone.js/lib:zone_d_ts",
|
||||
# we need to reference zone.js npm_package build target
|
||||
# instead of npm because angular repo will not depends on npm zone.js
|
||||
# any longer, so we need to build a zone.js npm release first.
|
||||
"//packages/zone.js:npm_package",
|
||||
"//packages/animations:npm_package",
|
||||
"//packages/common:npm_package",
|
||||
"//packages/compiler:npm_package",
|
||||
|
@ -6,12 +6,10 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
// import zone.js from npm here because integration test will load zone.js
|
||||
// from built npm_package instead of source
|
||||
import 'zone.js/dist/zone-node';
|
||||
import 'zone.js/dist/zone-testing';
|
||||
// Only needed to satisfy the check in core/src/util/decorators.ts
|
||||
// TODO(alexeagle): maybe remove that check?
|
||||
require('reflect-metadata');
|
||||
|
||||
require('zone.js/dist/zone-node.js');
|
||||
require('zone.js/dist/long-stack-trace-zone.js');
|
||||
require('zone.js/dist/sync-test.js');
|
||||
require('zone.js/dist/proxy.js');
|
||||
require('zone.js/dist/jasmine-patch.js');
|
||||
|
@ -56,7 +56,7 @@ const requiredNodeModules = {
|
||||
'source-map': resolveNpmTreeArtifact('npm/node_modules/source-map'),
|
||||
'source-map-support': resolveNpmTreeArtifact('npm/node_modules/source-map-support'),
|
||||
'typescript': resolveNpmTreeArtifact('npm/node_modules/typescript'),
|
||||
'zone.js': resolveNpmTreeArtifact('npm/node_modules/zone.js'),
|
||||
'zone.js': resolveNpmTreeArtifact('angular/packages/zone.js/npm_package'),
|
||||
};
|
||||
|
||||
/** Sets up the temporary test directory and returns the path to the directory. */
|
||||
|
Reference in New Issue
Block a user