fix(bazel): Exclude common/upgrade* in metadata.tsconfig.json (#30133)
It has a dependency on @angular/upgrade which is not part of the dependencies in package.json, so postinstall would fail. PR Close #30133
This commit is contained in:
parent
b9f0720c95
commit
1f4c380f58
|
@ -9,7 +9,7 @@ function installLocalPackages() {
|
||||||
readonly pwd=$(pwd)
|
readonly pwd=$(pwd)
|
||||||
readonly packages=(
|
readonly packages=(
|
||||||
animations common compiler core forms platform-browser
|
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=()
|
local local_packages=()
|
||||||
for package in "${packages[@]}"; do
|
for package in "${packages[@]}"; do
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
"node_modules/@angular/core/schematics/**",
|
"node_modules/@angular/core/schematics/**",
|
||||||
"node_modules/@angular/compiler-cli/**",
|
"node_modules/@angular/compiler-cli/**",
|
||||||
"node_modules/@angular/**/testing/**",
|
"node_modules/@angular/**/testing/**",
|
||||||
|
"node_modules/@angular/common/upgrade*",
|
||||||
"node_modules/@angular/router/upgrade*"
|
"node_modules/@angular/router/upgrade*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
"@angular/platform-browser": "packages-dist:platform-browser",
|
"@angular/platform-browser": "packages-dist:platform-browser",
|
||||||
"@angular/platform-browser-dynamic": "packages-dist:platform-browser-dynamic",
|
"@angular/platform-browser-dynamic": "packages-dist:platform-browser-dynamic",
|
||||||
"@angular/router": "packages-dist:router",
|
"@angular/router": "packages-dist:router",
|
||||||
"@angular/upgrade": "packages-dist:upgrade",
|
|
||||||
"reflect-metadata": "0.1.12",
|
"reflect-metadata": "0.1.12",
|
||||||
"rxjs": "6.4.0",
|
"rxjs": "6.4.0",
|
||||||
"tslib": "1.9.3",
|
"tslib": "1.9.3",
|
||||||
|
@ -31,4 +30,4 @@
|
||||||
"postinstall": "ngc -p ./angular-metadata.tsconfig.json",
|
"postinstall": "ngc -p ./angular-metadata.tsconfig.json",
|
||||||
"//": "TODO(gregmagolan): figure out how to keep dependencies here up to date with the root package.json"
|
"//": "TODO(gregmagolan): figure out how to keep dependencies here up to date with the root package.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
"node_modules/@angular/core/schematics/**",
|
"node_modules/@angular/core/schematics/**",
|
||||||
"node_modules/@angular/compiler-cli/**",
|
"node_modules/@angular/compiler-cli/**",
|
||||||
"node_modules/@angular/**/testing/**",
|
"node_modules/@angular/**/testing/**",
|
||||||
|
"node_modules/@angular/common/upgrade*",
|
||||||
"node_modules/@angular/router/upgrade*"
|
"node_modules/@angular/router/upgrade*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue