mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build: add postinstall script as runfile for yarn_install repository rule (#44490)
Adds the postinstall script as runfile for the `yarn_install` repository rule, so that the dependencies are re-fetched when the script changes. PR Close #44490
This commit is contained in:
parent
c3a5568143
commit
d73c7162df
2 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,9 @@ load("//integration:npm_package_archives.bzl", "npm_package_archives")
|
|||
|
||||
yarn_install(
|
||||
name = "npm",
|
||||
# Note that we add the postinstall script here so that the dependencies are re-installed
|
||||
# when the postinstall patches are modified.
|
||||
data = ["//tools:postinstall-patches.js"],
|
||||
manual_build_file_contents = npm_package_archives(),
|
||||
package_json = "//:package.json",
|
||||
yarn_lock = "//:yarn.lock",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ package(default_visibility = ["//visibility:public"])
|
|||
|
||||
exports_files([
|
||||
"tsconfig.json",
|
||||
"postinstall-patches.js",
|
||||
"jasmine-seed-generator.js",
|
||||
])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue