Skip to content

Commit

Permalink
fix(core): add missing migration to npm package (#29705)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
filipesilva authored and jasonaden committed Apr 4, 2019
1 parent afd2417 commit 96b76dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/schematics/BUILD.bazel
Expand Up @@ -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",
],
)

0 comments on commit 96b76dc

Please sign in to comment.