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
Copy file name to clipboardExpand all lines: MODULE.bazel
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,9 @@ npm.npm_translate_lock(
200
200
# which runs the `build` package.json script: https://github.com/kubernetes-client/javascript/blob/fc681991e61c6808dd26012a2331f83671a11218/package.json#L28.
201
201
# Here we run run build so we just run `tsc` instead of `npm run build` which ends up just running `tsc`.
202
202
"@kubernetes/client-node": ["build"],
203
+
# esbuild's install.js runs maybeOptimizePackage() which hard-links the native Go binary over bin/esbuild,
204
+
# replacing the JS launcher that js_binary needs to invoke via node. Disabling the hook preserves the JS launcher.
205
+
"esbuild": [],
203
206
# 'install' hook fails as it assumes the following path to `node-pre-gyp`: ./node_modules/.bin/node-pre-gyp
"transitive_closure": attr.string_list_dict(doc="Mapping of package store entry labels to a list of names to reference that package as"),
1256
+
"apparent_name": attr.string(doc="The apparent (non-canonical) name of this repository rule; used to derive the canonical name prefix for sibling repos."),
1257
+
"exec_platform_repo": attr.string(doc="Apparent name of the exec-platform detection repo; used for select() conditions in _links_defs.bzl."),
1210
1258
},
1211
1259
)
1212
1260
@@ -1256,7 +1304,8 @@ def npm_import(
1256
1304
generate_package_json_bzl,
1257
1305
extract_full_archive,
1258
1306
exclude_package_contents,
1259
-
exclude_package_contents_presets):
1307
+
exclude_package_contents_presets,
1308
+
exec_platform_repo=None):
1260
1309
# By convention, the `{name}` repository contains the actual npm
1261
1310
# package sources downloaded from the registry and extracted
1262
1311
npm_import_rule(
@@ -1291,8 +1340,10 @@ def npm_import(
1291
1340
1292
1341
# By convention, the `{name}{utils.links_repo_suffix}` repository contains the generated
1293
1342
# code to link this npm package into one or more node_modules trees
0 commit comments