blob: 2f1ea4ec2ebe5bd98911f042cd76d8632ebeb18a [file]
"""@generated by npm_translate_lock(name = "lock-<LOCKVERSION>", pnpm_lock = "@@//<LOCKVERSION>:pnpm-lock.yaml")"""
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__ansi-regex__5.0.1__links//:defs.bzl", store_0 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__ansi-regex__6.2.2__links//:defs.bzl", store_1 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__ansi-styles__4.3.0__links//:defs.bzl", store_2 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__ansi-styles__6.2.3__links//:defs.bzl", store_3 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_a__5.0.2__links//:defs.bzl", link_4 = "npm_link_imported_package_store", store_4 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_b__5.0.2__links//:defs.bzl", link_5 = "npm_link_imported_package_store", store_5 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_c__2.0.0__links//:defs.bzl", link_6 = "npm_link_imported_package_store", store_6 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_c__2.0.1__links//:defs.bzl", link_7 = "npm_link_imported_package_store", store_7 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_c__2.0.2__links//:defs.bzl", store_8 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.0__links//:defs.bzl", link_9 = "npm_link_imported_package_store", store_9 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.1__links//:defs.bzl", link_10 = "npm_link_imported_package_store", store_10 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_d__2.0.0_at_aspect-test_c_2.0.2__links//:defs.bzl", store_11 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_e__1.0.0__links//:defs.bzl", link_12 = "npm_link_imported_package_store", store_12 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_aspect-test_h__1.0.0__links//:defs.bzl", link_13 = "npm_link_imported_package_store", store_13 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_foo_jsonify__at_github.com_aspect-build_test-packages_releases_download_0.0.0_at_foo-jsonify-0.0.0.tgz__links//:defs.bzl", link_14 = "npm_link_imported_package_store", store_14 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_isaacs_cliui__8.0.2__links//:defs.bzl", link_15 = "npm_link_imported_package_store", store_15 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_rollup_plugin-typescript__8.2.1_1813138439__links//:defs.bzl", link_16 = "npm_link_imported_package_store", store_16 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_rollup_pluginutils__3.1.0_rollup_3.29.4__links//:defs.bzl", store_17 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_types_archiver__5.3.1__links//:defs.bzl", link_18 = "npm_link_imported_package_store", store_18 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_types_estree__0.0.39__links//:defs.bzl", store_19 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_types_glob__8.1.0__links//:defs.bzl", store_20 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_types_minimatch__5.1.2__links//:defs.bzl", store_21 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_types_node__18.19.54__links//:defs.bzl", link_22 = "npm_link_imported_package_store", store_22 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__at_types_sizzle__2.3.10__links//:defs.bzl", link_23 = "npm_link_imported_package_store", store_23 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__color-convert__2.0.1__links//:defs.bzl", store_24 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__color-name__1.1.4__links//:defs.bzl", store_25 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__debug__github.com_ngokevin_debug_9742c5f383a6f8046241920156236ade8ec30d53__links//:defs.bzl", link_26 = "npm_link_imported_package_store", store_26 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__dequal__2.0.3__links//:defs.bzl", store_27 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__diff__at_github.com_kpdecker_jsdiff_archive_refs_tags_v5.2.0.tar.gz__links//:defs.bzl", store_28 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__eastasianwidth__0.2.0__links//:defs.bzl", store_29 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__emoji-regex__8.0.0__links//:defs.bzl", store_30 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__emoji-regex__9.2.2__links//:defs.bzl", store_31 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__estree-walker__1.0.1__links//:defs.bzl", store_32 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__fsevents__2.3.3__links//:defs.bzl", store_33 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__function-bind__1.1.2__links//:defs.bzl", store_34 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__hasown__2.0.2__links//:defs.bzl", store_35 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-core-module__2.16.1__links//:defs.bzl", store_36 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-fullwidth-code-point__3.0.0__links//:defs.bzl", store_37 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-odd__0.1.0__links//:defs.bzl", link_38 = "npm_link_imported_package_store", store_38 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-odd__1.0.0__links//:defs.bzl", link_39 = "npm_link_imported_package_store", store_39 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-odd__2.0.0__links//:defs.bzl", link_40 = "npm_link_imported_package_store", store_40 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-odd__3.0.0__links//:defs.bzl", link_41 = "npm_link_imported_package_store", store_41 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__is-odd__3.0.1__links//:defs.bzl", link_42 = "npm_link_imported_package_store", store_42 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__jquery__github.com_jquery_jquery_399b201bb3143a3952894cf3489b4848fc003967__links//:defs.bzl", link_43 = "npm_link_imported_package_store", store_43 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__jquery__github.com_jquery_jquery_e61fccb9d736235b4b011f89cba6866bc0b8997d__links//:defs.bzl", link_44 = "npm_link_imported_package_store", store_44 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__kleur__4.1.5__links//:defs.bzl", store_45 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__lodash__4.0.1__links//:defs.bzl", store_46 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__lodash__4.17.20__links//:defs.bzl", link_47 = "npm_link_imported_package_store", store_47 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__lodash__4.17.21__links//:defs.bzl", link_48 = "npm_link_imported_package_store", store_48 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__lodash__file_.._vendored_lodash-4.17.21.tgz__links//:defs.bzl", link_49 = "npm_link_imported_package_store", store_49 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__meaning-of-life__1.0.0_o3deharooos255qt5xdujc3cuq__links//:defs.bzl", link_50 = "npm_link_imported_package_store", store_50 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__mri__1.2.0__links//:defs.bzl", store_51 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__ms__0.7.3__links//:defs.bzl", store_52 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__path-parse__1.0.7__links//:defs.bzl", store_53 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__picomatch__2.3.1__links//:defs.bzl", store_54 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__resolve__1.22.11__links//:defs.bzl", store_55 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__rollup__2.14.0__links//:defs.bzl", link_56 = "npm_link_imported_package_store", store_56 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__rollup__3.29.4__links//:defs.bzl", link_57 = "npm_link_imported_package_store", store_57 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__sade__1.8.1__links//:defs.bzl", store_58 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__string-width__4.2.3__links//:defs.bzl", store_59 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__string-width__5.1.2__links//:defs.bzl", store_60 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__strip-ansi__6.0.1__links//:defs.bzl", store_61 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__strip-ansi__7.1.2__links//:defs.bzl", store_62 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__supports-preserve-symlinks-flag__1.0.0__links//:defs.bzl", store_63 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__tslib__2.6.3__links//:defs.bzl", link_64 = "npm_link_imported_package_store", store_64 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__typescript__5.5.2__links//:defs.bzl", link_65 = "npm_link_imported_package_store", store_65 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__undici-types__5.26.5__links//:defs.bzl", store_66 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__uvu__0.5.6__links//:defs.bzl", link_67 = "npm_link_imported_package_store", store_67 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__wrap-ansi__7.0.0__links//:defs.bzl", store_68 = "npm_imported_package_store")
load("@@aspect_rules_js~~npm~lock-<LOCKVERSION>__wrap-ansi__8.1.0__links//:defs.bzl", store_69 = "npm_imported_package_store")
# buildifier: disable=bzl-visibility
load("@aspect_rules_js//js:defs.bzl", _js_library = "js_library")
# buildifier: disable=bzl-visibility
load("@aspect_rules_js//npm/private:npm_link_package_store.bzl", _npm_local_link_package_store = "npm_local_link_package_store_internal")
# buildifier: disable=bzl-visibility
load("@aspect_rules_js//npm/private:npm_package_store.bzl", _npm_package_store = "npm_package_store", _npm_local_package_store = "npm_local_package_store_internal")
_IMPORTER_PACKAGES = ["<LOCKVERSION>", "projects/a", "projects/a-types", "projects/alts", "projects/b", "projects/c", "projects/d", "projects/peer-types", "projects/peers-combo-1", "projects/peers-combo-2", "vendored/is-number"]
# buildifier: disable=function-docstring
def npm_link_all_packages(name = "node_modules", imported_links = [], prod = True, dev = True):
if not prod and not dev:
fail("npm_link_all_packages: at least one of 'prod' or 'dev' must be True")
bazel_package = native.package_name()
root_package = "<LOCKVERSION>"
is_root = bazel_package == root_package
link = bazel_package in _IMPORTER_PACKAGES
if not is_root and not link:
msg = "The npm_link_all_packages() macro loaded from @aspect_rules_js~~npm~lock-<LOCKVERSION>//:defs.bzl and called in bazel package '%s' may only be called in bazel packages that correspond to the pnpm root package or pnpm workspace projects. Projects are discovered from the pnpm-lock.yaml and may be missing if the lockfile is out of date. Root package: '<LOCKVERSION>', pnpm workspace projects: %s" % (bazel_package, "'" + "', '".join(_IMPORTER_PACKAGES) + "'")
fail(msg)
if is_root:
store_0(name)
store_1(name)
store_2(name)
store_3(name)
store_4(name)
store_5(name)
store_6(name)
store_7(name)
store_8(name)
store_9(name)
store_10(name)
store_11(name)
store_12(name)
store_13(name)
store_14(name)
store_15(name)
store_16(name)
store_17(name)
store_18(name)
store_19(name)
store_20(name)
store_21(name)
store_22(name)
store_23(name)
store_24(name)
store_25(name)
store_26(name)
store_27(name)
store_28(name)
store_29(name)
store_30(name)
store_31(name)
store_32(name)
store_33(name)
store_34(name)
store_35(name)
store_36(name)
store_37(name)
store_38(name)
store_39(name)
store_40(name)
store_41(name)
store_42(name)
store_43(name)
store_44(name)
store_45(name)
store_46(name)
store_47(name)
store_48(name)
store_49(name)
store_50(name)
store_51(name)
store_52(name)
store_53(name)
store_54(name)
store_55(name)
store_56(name)
store_57(name)
store_58(name)
store_59(name)
store_60(name)
store_61(name)
store_62(name)
store_63(name)
store_64(name)
store_65(name)
store_66(name)
store_67(name)
store_68(name)
store_69(name)
_npm_local_package_store(
link_root_name = name,
package_store_name = "a-types@file+..+projects+a-types",
src = "//projects/a-types:pkg",
package = "a-types",
version = "file:../projects/a-types",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@types+node@18.19.54".format(name): "@types/node",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "@scoped+c@file+..+projects+c_at_scoped_b_projects+b",
src = "//projects/c:pkg",
package = "@scoped/c",
version = "file:../projects/c_at_scoped_b_projects+b",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+a@0.0.0".format(name): "@scoped/a",
"//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+b@0.0.0".format(name): "@scoped/b",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "is-number@file+..+vendored+is-number",
src = "//vendored/is-number:pkg",
package = "is-number",
version = "file:../vendored/is-number",
deps = {},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "@scoped+a@0.0.0",
src = "//projects/a:pkg",
package = "@scoped/a",
version = "0.0.0",
deps = {},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "@scoped+b@0.0.0",
src = "//projects/b:pkg",
package = "@scoped/b",
version = "0.0.0",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+a@0.0.0".format(name): "@scoped/a",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "@scoped+d@0.0.0",
src = "//projects/d:pkg",
package = "@scoped/d",
version = "0.0.0",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+a@0.0.0".format(name): "@scoped/a",
"//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+b@0.0.0".format(name): "@scoped/b",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "alias-project-a@0.0.0",
src = "//projects/a:pkg",
package = "alias-project-a",
version = "0.0.0",
deps = {},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "scoped+bad@0.0.0",
src = "//projects/b:pkg",
package = "scoped/bad",
version = "0.0.0",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+a@0.0.0".format(name): "@scoped/a",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "test-c200-d200@0.0.0",
src = "//projects/peers-combo-2:pkg",
package = "test-c200-d200",
version = "0.0.0",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@aspect-test+c@2.0.0".format(name): "@aspect-test/c",
"//<LOCKVERSION>:.aspect_rules_js/{}/@aspect-test+d@2.0.0_at_aspect-test_c_2.0.0".format(name): "@aspect-test/d",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "test-c201-d200@0.0.0",
src = "//projects/peers-combo-1:pkg",
package = "test-c201-d200",
version = "0.0.0",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@aspect-test+c@2.0.1".format(name): "@aspect-test/c",
"//<LOCKVERSION>:.aspect_rules_js/{}/@aspect-test+d@2.0.0_at_aspect-test_c_2.0.1".format(name): "@aspect-test/d",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "test-peer-types@0.0.0",
src = "//projects/peer-types:pkg",
package = "test-peer-types",
version = "0.0.0",
deps = {},
visibility = ["//visibility:public"],
tags = ["manual"],
)
_npm_local_package_store(
link_root_name = name,
package_store_name = "a-types@0.0.0",
src = "//projects/a-types:pkg",
package = "a-types",
version = "0.0.0",
deps = {
"//<LOCKVERSION>:.aspect_rules_js/{}/@types+node@18.19.54".format(name): "@types/node",
},
visibility = ["//visibility:public"],
tags = ["manual"],
)
link_targets = None
scope_targets = None
if link:
if bazel_package == "<LOCKVERSION>":
link_4("{}/@aspect-test-a-bad-scope".format(name), False, name, "@aspect-test-a-bad-scope")
link_4("{}/@aspect-test-custom-scope/a".format(name), False, name, "@aspect-test-custom-scope/a")
link_4("{}/@aspect-test/a".format(name), False, name, "@aspect-test/a")
link_4("{}/@aspect-test/a2".format(name), False, name, "@aspect-test/a2")
link_4("{}/aspect-test-a-no-scope".format(name), False, name, "aspect-test-a-no-scope")
link_4("{}/aspect-test-a/no-at".format(name), False, name, "aspect-test-a/no-at")
link_5("{}/@aspect-test/b".format(name), True, name, "@aspect-test/b")
link_6("{}/@aspect-test/c".format(name), False, name, "@aspect-test/c")
link_12("{}/@aspect-test/e".format(name), False, name, "@aspect-test/e")
link_13("{}/@aspect-test/h-is-only-optional".format(name), False, name, "@aspect-test/h-is-only-optional")
link_14("{}/jsonify".format(name), False, name, "jsonify")
link_15("{}/@isaacs/cliui".format(name), False, name, "@isaacs/cliui")
link_16("{}/rollup-plugin-with-peers".format(name), False, name, "rollup-plugin-with-peers")
link_18("{}/@types/archiver".format(name), True, name, "@types/archiver")
link_22("{}/@types/node".format(name), True, name, "@types/node")
link_22("{}/alias-types-node".format(name), True, name, "alias-types-node")
link_23("{}/alias-only-sizzle".format(name), True, name, "alias-only-sizzle")
link_26("{}/debug".format(name), False, name, "debug")
link_38("{}/is-odd-v0".format(name), False, name, "is-odd-v0")
link_39("{}/is-odd-v1".format(name), False, name, "is-odd-v1")
link_40("{}/is-odd-v2".format(name), False, name, "is-odd-v2")
link_41("{}/is-odd-v3".format(name), False, name, "is-odd-v3")
link_42("{}/is-odd".format(name), False, name, "is-odd")
link_42("{}/is-odd-alias".format(name), False, name, "is-odd-alias")
link_43("{}/jquery-git-ssh-399b201".format(name), False, name, "jquery-git-ssh-399b201")
link_44("{}/jquery-git-ssh-e61fccb".format(name), False, name, "jquery-git-ssh-e61fccb")
link_49("{}/lodash".format(name), False, name, "lodash")
link_50("{}/meaning-of-life".format(name), False, name, "meaning-of-life")
link_56("{}/rollup".format(name), False, name, "rollup")
link_57("{}/rollup3".format(name), False, name, "rollup3")
link_64("{}/tslib".format(name), False, name, "tslib")
link_65("{}/typescript".format(name), False, name, "typescript")
link_67("{}/uvu".format(name), False, name, "uvu")
_fp_link_1(name)
_fp_link_3(name)
_fp_link_4(name)
_fp_link_5(name)
_fp_link_6(name)
_fp_link_7(name)
_fp_link_8(name)
_fp_link_9(name)
_fp_link_10(name)
link_targets = [
":{}/@aspect-test-a-bad-scope".format(name),
":{}/@aspect-test-custom-scope/a".format(name),
":{}/@aspect-test/a".format(name),
":{}/@aspect-test/a2".format(name),
":{}/aspect-test-a-no-scope".format(name),
":{}/aspect-test-a/no-at".format(name),
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/e".format(name),
":{}/@aspect-test/h-is-only-optional".format(name),
":{}/jsonify".format(name),
":{}/@isaacs/cliui".format(name),
":{}/rollup-plugin-with-peers".format(name),
":{}/debug".format(name),
":{}/is-odd-v0".format(name),
":{}/is-odd-v1".format(name),
":{}/is-odd-v2".format(name),
":{}/is-odd-v3".format(name),
":{}/is-odd".format(name),
":{}/is-odd-alias".format(name),
":{}/jquery-git-ssh-399b201".format(name),
":{}/jquery-git-ssh-e61fccb".format(name),
":{}/lodash".format(name),
":{}/meaning-of-life".format(name),
":{}/rollup".format(name),
":{}/rollup3".format(name),
":{}/tslib".format(name),
":{}/typescript".format(name),
":{}/uvu".format(name),
":{}/@scoped/c".format(name),
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
":{}/@scoped/d".format(name),
":{}/alias-project-a".format(name),
":{}/scoped/bad".format(name),
":{}/test-c200-d200".format(name),
":{}/test-c201-d200".format(name),
":{}/test-peer-types".format(name),
":{}/@aspect-test/b".format(name),
":{}/@types/archiver".format(name),
":{}/@types/node".format(name),
":{}/alias-types-node".format(name),
":{}/alias-only-sizzle".format(name),
]
scope_targets = {
"@aspect-test-a-bad-scop": [":{}/@aspect-test-a-bad-scope".format(name)],
"@aspect-test-custom-scope": [":{}/@aspect-test-custom-scope/a".format(name)],
"@aspect-test": [
":{}/@aspect-test/a".format(name),
":{}/@aspect-test/a2".format(name),
":{}/@aspect-test/b".format(name),
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/e".format(name),
":{}/@aspect-test/h-is-only-optional".format(name),
],
"@isaacs": [":{}/@isaacs/cliui".format(name)],
"@types": [
":{}/@types/archiver".format(name),
":{}/@types/node".format(name),
],
"@scoped": [
":{}/@scoped/c".format(name),
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
":{}/@scoped/d".format(name),
],
}
elif bazel_package == "projects/peers-combo-2":
link_6("{}/@aspect-test/c".format(name), False, name, "@aspect-test/c")
link_9("{}/@aspect-test/d".format(name), False, name, "@aspect-test/d")
link_targets = [
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/d".format(name),
]
scope_targets = {
"@aspect-test": [
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/d".format(name),
],
}
elif bazel_package == "projects/peers-combo-1":
link_7("{}/@aspect-test/c".format(name), False, name, "@aspect-test/c")
link_10("{}/@aspect-test/d".format(name), False, name, "@aspect-test/d")
link_targets = [
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/d".format(name),
]
scope_targets = {
"@aspect-test": [
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/d".format(name),
],
}
elif bazel_package == "projects/peer-types":
link_14("{}/jsonify".format(name), True, name, "jsonify")
_fp_link_1(name)
_fp_link_3(name)
_fp_link_4(name)
link_targets = [
":{}/jsonify".format(name),
":{}/@scoped/c".format(name),
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
]
scope_targets = {
"@scoped": [
":{}/@scoped/c".format(name),
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
],
}
elif bazel_package == "projects/a-types":
link_22("{}/@types/node".format(name), False, name, "@types/node")
link_targets = [":{}/@types/node".format(name)]
scope_targets = {
"@types": [":{}/@types/node".format(name)],
}
elif bazel_package == "projects/b":
link_22("{}/@types/node".format(name), True, name, "@types/node")
_fp_link_3(name)
_fp_link_11(name)
link_targets = [
":{}/@scoped/a".format(name),
":{}/@types/node".format(name),
":{}/a-types".format(name),
]
scope_targets = {
"@types": [":{}/@types/node".format(name)],
"@scoped": [":{}/@scoped/a".format(name)],
}
elif bazel_package == "projects/alts":
link_47("{}/lodash-4.17.20".format(name), False, name, "lodash-4.17.20")
link_48("{}/lodash-4.17.21".format(name), False, name, "lodash-4.17.21")
link_49("{}/lodash".format(name), False, name, "lodash")
link_49("{}/lodash-4.17.21-file".format(name), False, name, "lodash-4.17.21-file")
link_targets = [
":{}/lodash-4.17.20".format(name),
":{}/lodash-4.17.21".format(name),
":{}/lodash".format(name),
":{}/lodash-4.17.21-file".format(name),
]
elif bazel_package == "projects/c":
_fp_link_0(name)
_fp_link_3(name)
_fp_link_4(name)
link_targets = [
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
":{}/a-types".format(name),
]
scope_targets = {
"@scoped": [
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
],
}
elif bazel_package == "projects/d":
_fp_link_3(name)
_fp_link_4(name)
link_targets = [
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
]
scope_targets = {
"@scoped": [
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
],
}
for link_fn in imported_links:
new_link_targets, new_scope_targets = link_fn(name, prod, dev)
if not link_targets:
link_targets = []
link_targets.extend(new_link_targets)
for _scope, _targets in new_scope_targets.items():
if not scope_targets:
scope_targets = {}
if _scope not in scope_targets:
scope_targets[_scope] = []
scope_targets[_scope].extend(_targets)
if scope_targets:
for scope, scoped_targets in scope_targets.items():
_js_library(
name = "{}/{}".format(name, scope),
srcs = scoped_targets,
tags = ["manual"],
visibility = ["//visibility:public"],
)
_js_library(
name = name,
srcs = link_targets if link_targets else [],
tags = ["manual"],
visibility = ["//visibility:public"],
)
# buildifier: disable=function-docstring
def npm_link_targets(name = "node_modules", package = None, prod = True, dev = True):
if not prod and not dev:
fail("npm_link_targets: at least one of 'prod' or 'dev' must be True")
bazel_package = package if package != None else native.package_name()
link_targets = []
if bazel_package == "<LOCKVERSION>":
if prod:
link_targets.extend([
":{}/@aspect-test-a-bad-scope".format(name),
":{}/@aspect-test-custom-scope/a".format(name),
":{}/@aspect-test/a".format(name),
":{}/@aspect-test/a2".format(name),
":{}/aspect-test-a-no-scope".format(name),
":{}/aspect-test-a/no-at".format(name),
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/e".format(name),
":{}/@aspect-test/h-is-only-optional".format(name),
":{}/jsonify".format(name),
":{}/@isaacs/cliui".format(name),
":{}/rollup-plugin-with-peers".format(name),
":{}/debug".format(name),
":{}/is-odd-v0".format(name),
":{}/is-odd-v1".format(name),
":{}/is-odd-v2".format(name),
":{}/is-odd-v3".format(name),
":{}/is-odd".format(name),
":{}/is-odd-alias".format(name),
":{}/jquery-git-ssh-399b201".format(name),
":{}/jquery-git-ssh-e61fccb".format(name),
":{}/lodash".format(name),
":{}/meaning-of-life".format(name),
":{}/rollup".format(name),
":{}/rollup3".format(name),
":{}/tslib".format(name),
":{}/typescript".format(name),
":{}/uvu".format(name),
":{}/@scoped/c".format(name),
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
":{}/@scoped/d".format(name),
":{}/alias-project-a".format(name),
":{}/scoped/bad".format(name),
":{}/test-c200-d200".format(name),
":{}/test-c201-d200".format(name),
":{}/test-peer-types".format(name),
])
if dev:
link_targets.extend([
":{}/@aspect-test/b".format(name),
":{}/@types/archiver".format(name),
":{}/@types/node".format(name),
":{}/alias-types-node".format(name),
":{}/alias-only-sizzle".format(name),
])
elif bazel_package == "projects/peers-combo-2":
if prod:
link_targets.extend([
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/d".format(name),
])
elif bazel_package == "projects/peers-combo-1":
if prod:
link_targets.extend([
":{}/@aspect-test/c".format(name),
":{}/@aspect-test/d".format(name),
])
elif bazel_package == "projects/peer-types":
if dev:
link_targets.extend([
":{}/jsonify".format(name),
":{}/@scoped/c".format(name),
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
])
elif bazel_package == "projects/a-types":
if prod:
link_targets.extend([":{}/@types/node".format(name)])
elif bazel_package == "projects/b":
if prod:
link_targets.extend([":{}/@scoped/a".format(name)])
if dev:
link_targets.extend([
":{}/@types/node".format(name),
":{}/a-types".format(name),
])
elif bazel_package == "projects/alts":
if prod:
link_targets.extend([
":{}/lodash-4.17.20".format(name),
":{}/lodash-4.17.21".format(name),
":{}/lodash".format(name),
":{}/lodash-4.17.21-file".format(name),
])
elif bazel_package == "projects/c":
if prod:
link_targets.extend([
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
])
if dev:
link_targets.extend([":{}/a-types".format(name)])
elif bazel_package == "projects/d":
if prod:
link_targets.extend([
":{}/@scoped/a".format(name),
":{}/@scoped/b".format(name),
])
return link_targets
# Generated npm_link_package_store for linking of first-party "a-types" package
# buildifier: disable=function-docstring
def _fp_link_0(name):
_npm_local_link_package_store(
name = "{}/a-types".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/a-types@file+..+projects+a-types".format(name),
)
# Generated npm_link_package_store for linking of first-party "@scoped/c" package
# buildifier: disable=function-docstring
def _fp_link_1(name):
_npm_local_link_package_store(
name = "{}/@scoped/c".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+c@file+..+projects+c_at_scoped_b_projects+b".format(name),
)
# Generated npm_link_package_store for linking of first-party "@scoped/a" package
# buildifier: disable=function-docstring
def _fp_link_3(name):
_npm_local_link_package_store(
name = "{}/@scoped/a".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+a@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "@scoped/b" package
# buildifier: disable=function-docstring
def _fp_link_4(name):
_npm_local_link_package_store(
name = "{}/@scoped/b".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+b@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "@scoped/d" package
# buildifier: disable=function-docstring
def _fp_link_5(name):
_npm_local_link_package_store(
name = "{}/@scoped/d".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/@scoped+d@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "alias-project-a" package
# buildifier: disable=function-docstring
def _fp_link_6(name):
_npm_local_link_package_store(
name = "{}/alias-project-a".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/alias-project-a@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "scoped/bad" package
# buildifier: disable=function-docstring
def _fp_link_7(name):
_npm_local_link_package_store(
name = "{}/scoped/bad".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/scoped+bad@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "test-c200-d200" package
# buildifier: disable=function-docstring
def _fp_link_8(name):
_npm_local_link_package_store(
name = "{}/test-c200-d200".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/test-c200-d200@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "test-c201-d200" package
# buildifier: disable=function-docstring
def _fp_link_9(name):
_npm_local_link_package_store(
name = "{}/test-c201-d200".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/test-c201-d200@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "test-peer-types" package
# buildifier: disable=function-docstring
def _fp_link_10(name):
_npm_local_link_package_store(
name = "{}/test-peer-types".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/test-peer-types@0.0.0".format(name),
)
# Generated npm_link_package_store for linking of first-party "a-types" package
# buildifier: disable=function-docstring
def _fp_link_11(name):
_npm_local_link_package_store(
name = "{}/a-types".format(name),
src = "//<LOCKVERSION>:.aspect_rules_js/{}/a-types@0.0.0".format(name),
)