forked from angular/dev-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.bzl
27 lines (24 loc) · 1.25 KB
/
package.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
stampSubstitutions = {
# The variables are special statuses generated within the Bazel workspace
# status command stamping script.
"{SCM_HEAD_SHA}": "{BUILD_SCM_COMMIT_SHA}",
}
noStampSubstitutions = dict(stampSubstitutions, **{})
basePackageSubstitutions = {
" \"prepare\": \"husky install\",\n": "",
"@dev-infra//bazel/": "@npm//@angular/dev-infra-private/bazel/",
"rlocation \"dev-infra/": "rlocation \"npm/@angular/dev-infra-private/",
"//bazel/": "@npm//@angular/dev-infra-private/bazel/",
"//bazel:": "@npm//@angular/dev-infra-private/bazel:",
"//ng-dev/": "@npm//@angular/dev-infra-private/ng-dev/",
"//ng-dev:": "@npm//@angular/dev-infra-private/ng-dev:",
"//tslint-rules/": "@npm//@angular/dev-infra-private/tslint-rules/",
"//tslint-rules:": "@npm//@angular/dev-infra-private/tslint-rules:",
"//shared-scripts/": "@npm//@angular/dev-infra-private/shared-scripts/",
"//shared-scripts:": "@npm//@angular/dev-infra-private/shared-scripts:",
"//:tsconfig.json": "@npm//@angular/dev-infra-private:tsconfig.json",
}
NPM_PACKAGE_SUBSTITUTIONS = select({
"//tools:stamp": dict(basePackageSubstitutions, **stampSubstitutions),
"//conditions:default": dict(basePackageSubstitutions, **noStampSubstitutions),
})