Skip to content

Commit d73c716

Browse files
devversiondylhunn
authored andcommitted
build: add postinstall script as runfile for yarn_install repository rule (angular#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 angular#44490
1 parent c3a5568 commit d73c716

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

WORKSPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ load("//integration:npm_package_archives.bzl", "npm_package_archives")
4040

4141
yarn_install(
4242
name = "npm",
43+
# Note that we add the postinstall script here so that the dependencies are re-installed
44+
# when the postinstall patches are modified.
45+
data = ["//tools:postinstall-patches.js"],
4346
manual_build_file_contents = npm_package_archives(),
4447
package_json = "//:package.json",
4548
yarn_lock = "//:yarn.lock",

tools/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package(default_visibility = ["//visibility:public"])
44

55
exports_files([
66
"tsconfig.json",
7+
"postinstall-patches.js",
78
"jasmine-seed-generator.js",
89
])
910

0 commit comments

Comments
 (0)