mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08: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:
committed by
Dylan Hunn
parent
c3a5568143
commit
d73c7162df
@@ -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",
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user