Skip to content

Commit

Permalink
fix(bazel): Exclude common/upgrade* in metadata.tsconfig.json
Browse files Browse the repository at this point in the history
It has a dependency on @angular/upgrade which is not part of the
dependencies in package.json, so postinstall would fail.
  • Loading branch information
kyliau committed Apr 26, 2019
1 parent a03a923 commit 8695b34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration/bazel-schematics/test.sh
Expand Up @@ -9,7 +9,7 @@ function installLocalPackages() {
readonly pwd=$(pwd)
readonly packages=(
animations common compiler core forms platform-browser
platform-browser-dynamic router bazel compiler-cli language-service upgrade
platform-browser-dynamic router bazel compiler-cli language-service
)
local local_packages=()
for package in "${packages[@]}"; do
Expand Down
1 change: 1 addition & 0 deletions integration/bazel/angular-metadata.tsconfig.json
Expand Up @@ -23,6 +23,7 @@
"node_modules/@angular/core/schematics/**",
"node_modules/@angular/compiler-cli/**",
"node_modules/@angular/**/testing/**",
"node_modules/@angular/common/upgrade*",
"node_modules/@angular/router/upgrade*"
]
}
3 changes: 1 addition & 2 deletions integration/bazel/src/package.json
Expand Up @@ -10,7 +10,6 @@
"@angular/platform-browser": "packages-dist:platform-browser",
"@angular/platform-browser-dynamic": "packages-dist:platform-browser-dynamic",
"@angular/router": "packages-dist:router",
"@angular/upgrade": "packages-dist:upgrade",
"reflect-metadata": "0.1.12",
"rxjs": "6.4.0",
"tslib": "1.9.3",
Expand All @@ -31,4 +30,4 @@
"postinstall": "ngc -p ./angular-metadata.tsconfig.json",
"//": "TODO(gregmagolan): figure out how to keep dependencies here up to date with the root package.json"
}
}
}
Expand Up @@ -20,6 +20,7 @@
"node_modules/@angular/core/schematics/**",
"node_modules/@angular/compiler-cli/**",
"node_modules/@angular/**/testing/**",
"node_modules/@angular/common/upgrade*",
"node_modules/@angular/router/upgrade*"
]
}

0 comments on commit 8695b34

Please sign in to comment.