From 96b76dc3f13e250b7cc425c9c92ead2bdc8be236 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 4 Apr 2019 10:18:28 +0100 Subject: [PATCH] fix(core): add missing migration to npm package (#29705) While running `ng update @angular/core --next`, the following error would be displayed: ``` Cannot find module '....\node_modules\@angular\core\schematics\migrations\template-var-assignment\index' ``` This happened because the Schematics migration was referenced, but not included. This commit fixes that bug by including the migration in the Bazel npm package dependencies. PR Close #29705 --- packages/core/schematics/BUILD.bazel | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/schematics/BUILD.bazel b/packages/core/schematics/BUILD.bazel index 9bb25621fa9..34ef576da14 100644 --- a/packages/core/schematics/BUILD.bazel +++ b/packages/core/schematics/BUILD.bazel @@ -9,5 +9,8 @@ npm_package( name = "npm_package", srcs = ["migrations.json"], visibility = ["//packages/core:__pkg__"], - deps = ["//packages/core/schematics/migrations/static-queries"], + deps = [ + "//packages/core/schematics/migrations/static-queries", + "//packages/core/schematics/migrations/template-var-assignment", + ], )