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:
Paul Gschwendtner 2021-12-15 16:16:29 +01:00 committed by Dylan Hunn
parent c3a5568143
commit d73c7162df
2 changed files with 4 additions and 0 deletions

View file

@ -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",

View file

@ -4,6 +4,7 @@ package(default_visibility = ["//visibility:public"])
exports_files([
"tsconfig.json",
"postinstall-patches.js",
"jasmine-seed-generator.js",
])