build: update rules_nodejs and clean up bazel warnings (#30370)

Preserve compatibility with rollup_bundle rule.
Add missing npm dependencies, which are now enforced by the strict_deps plugin in tsc_wrapped

PR Close #30370
This commit is contained in:
Alex Eagle
2019-05-09 14:51:51 -07:00
committed by Alex Rickabaugh
parent 3fecab64b1
commit 06efc340b6
30 changed files with 123 additions and 62 deletions

View File

@ -8,5 +8,6 @@ ts_library(
deps = [
"//packages/core/schematics/migrations/injectable-pipe",
"@npm//tslint",
"@npm//typescript",
],
)

View File

@ -13,6 +13,7 @@ ts_library(
"//packages/compiler",
"//packages/compiler-cli",
"//packages/core/schematics/utils",
"@npm//@angular-devkit/core",
"@npm//@angular-devkit/schematics",
"@npm//@types/node",
"@npm//rxjs",

View File

@ -9,5 +9,6 @@ ts_library(
"//packages/core/schematics/migrations/static-queries",
"//packages/core/schematics/utils",
"@npm//tslint",
"@npm//typescript",
],
)

View File

@ -12,6 +12,7 @@ ts_library(
deps = [
"//packages/compiler",
"//packages/core/schematics/utils",
"@npm//@angular-devkit/core",
"@npm//@angular-devkit/schematics",
"@npm//@types/node",
"@npm//typescript",

View File

@ -10,5 +10,6 @@ ts_library(
"//packages/core/schematics/utils",
"//packages/core/schematics/utils/tslint",
"@npm//tslint",
"@npm//typescript",
],
)

View File

@ -17,6 +17,7 @@ ts_library(
"//packages/core/schematics/migrations/template-var-assignment",
"//packages/core/schematics/migrations/template-var-assignment/google3",
"//packages/core/schematics/utils",
"@npm//@angular-devkit/core",
"@npm//@angular-devkit/schematics",
"@npm//@types/shelljs",
"@npm//tslint",

View File

@ -9,5 +9,8 @@ ts_library(
"//packages/compiler",
"@npm//@angular-devkit/core",
"@npm//@angular-devkit/schematics",
"@npm//@schematics/angular",
"@npm//@types/node",
"@npm//typescript",
],
)

View File

@ -7,4 +7,5 @@ ts_library(
visibility = [
"//packages/core/schematics/migrations/template-var-assignment/google3:__pkg__",
],
deps = ["@npm//typescript"],
)

View File

@ -24,6 +24,7 @@ ts_library(
"//packages/platform-browser/testing",
"//packages/platform-server",
"//packages/private/testing",
"@npm//rxjs",
"@npm//zone.js",
],
)

View File

@ -1522,7 +1522,7 @@ function declareTests(config?: {useJit: boolean}) {
expect(getDOM().nodeName(c.renderNode).toUpperCase()).toEqual('INPUT');
expect(getDOM().nodeName(c.componentRenderElement).toUpperCase()).toEqual('DIV');
expect((<Injector>c.injector).get).toBeTruthy();
expect(c.context).toBe(fixture.componentInstance);
expect(c.context).toEqual(fixture.componentInstance);
expect(c.references['local']).toBeDefined();
}
});
@ -1567,7 +1567,7 @@ function declareTests(config?: {useJit: boolean}) {
expect(getDOM().nodeName(c.renderNode).toUpperCase()).toEqual('SPAN');
expect(getDOM().nodeName(c.componentRenderElement).toUpperCase()).toEqual('DIV');
expect((<Injector>c.injector).get).toBeTruthy();
expect(c.context).toBe(fixture.componentInstance);
expect(c.context).toEqual(fixture.componentInstance);
expect(c.references['local']).toBeDefined();
}));
});

View File

@ -10,6 +10,7 @@ ts_library(
"//packages:types",
"//packages/core",
"//packages/core/src/di/interface",
"@npm//reflect-metadata",
],
)