1+ load ("@aspect_rules_js//js:defs.bzl" , "js_library" )
12load ("@aspect_rules_ts//ts:defs.bzl" , "ts_config" )
23load ("@npm//:defs.bzl" , "npm_link_all_packages" )
34load ("@npm//:tsconfig-to-swcconfig/package_json.bzl" , tsconfig_to_swcconfig = "bin" )
45
5- # link all dependencies from root package.json
6+ # aspect:generation_mode update
7+
8+ # aspect:map_kind ts_project ts_project //:defs.bzl
9+
10+ # aspect:js enabled
11+ # aspect:js_tsconfig enabled
12+ # aspect:js_npm_package enabled
13+
14+ # aspect:js_files **/*.{js,ts}
15+ # aspect:js_npm_package_target_name pkg
16+ # aspect:js_package_rule_kind js_library
17+ # aspect:js_project_naming_convention tsc
18+
619npm_link_all_packages (name = "node_modules" )
720
821ts_config (
922 name = "tsconfig" ,
1023 src = "tsconfig.json" ,
1124 visibility = ["//visibility:public" ],
12- deps = ["//:node_modules/@tsconfig/node16-strictest" ],
25+ deps = [
26+ "//:node_modules/@tsconfig/node16-strictest" , #keep
27+ ],
1328)
1429
1530tsconfig_to_swcconfig .t2s (
@@ -18,3 +33,8 @@ tsconfig_to_swcconfig.t2s(
1833 stdout = ".swcrc" ,
1934 visibility = ["//:__subpackages__" ],
2035)
36+
37+ js_library (
38+ name = "pkg" ,
39+ srcs = ["package.json" ],
40+ )
0 commit comments