You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(*<ahref="https://bazel.build/docs/build-ref.html#labels">Label</a>*): Provides info about the build context, such as stamping.
1066
-
1067
-
By default it reads from the bazel command line, such as the `--stamp` argument.
1068
-
Use this to override values for this target, such as enabling or disabling stamping.
1069
-
You can use the `node_context_data` rule in `@build_bazel_rules_nodejs//internal/node:context.bzl`
1070
-
to create a NodeContextInfo. The dependencies of this attribute must provide: NodeContextInfo
1071
-
1072
-
1073
-
Defaults to `@build_bazel_rules_nodejs//internal:node_context_data`
1074
-
1075
1063
<h4id="pkg_npm-package_name">package_name</h4>
1076
1064
1077
1065
(*String*): The package name that the linker will link this npm package as.
@@ -1096,6 +1084,23 @@ Defaults to `""`
1096
1084
1097
1085
Defaults to `[]`
1098
1086
1087
+
<h4id="pkg_npm-stamp">stamp</h4>
1088
+
1089
+
(*<ahref="https://bazel.build/docs/build-ref.html#labels">Label</a>*): Whether to encode build information into the output. Possible values:
1090
+
- `@rules_nodejs//nodejs/stamp:always`:
1091
+
Always stamp the build information into the output, even in [--nostamp][stamp] builds.
1092
+
This setting should be avoided, since it potentially causes cache misses remote caching for
1093
+
any downstream actions that depend on it.
1094
+
- `@rules_nodejs//nodejs/stamp:never`:
1095
+
Always replace build information by constant values. This gives good build result caching.
1096
+
- `@rules_nodejs//nodejs/stamp:use_stamp_flag`:
1097
+
Embedding of build information is controlled by the [--[no]stamp][stamp] flag.
1098
+
Stamped binaries are not rebuilt unless their dependencies change.
1099
+
[stamp]: https://docs.bazel.build/versions/main/user-manual.html#flag--stamp The dependencies of this attribute must provide: StampSettingInfo
1100
+
1101
+
1102
+
Defaults to `@rules_nodejs//nodejs/stamp:use_stamp_flag`
1103
+
1099
1104
<h4id="pkg_npm-substitutions">substitutions</h4>
1100
1105
1101
1106
(*<ahref="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a>*): Key-value pairs which are replaced in all the files while building the package.
0 commit comments