aspect-build / rules_swc

Bazel rules for the swc toolchain https://swc.rs/
https://docs.aspect.build/rules/aspect_rules_swc
Apache License 2.0
44 stars 24 forks source link

root_dir support #123

Closed kzadorozhny closed 1 year ago

kzadorozhny commented 1 year ago

Makes the swc transpiler easier to use when ts_project rules uses root_dir attribute.

For example:

ts_project(
    name = "transpile",
    srcs = ["dir/lib.ts"],
    out_dir = "dist",
    root_dir = "dir",
    transpiler = partial.make(
        swc,
        out_dir = "dist",
        root_dir = "dir",
    ),
)
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

alexeagle commented 1 year ago

could you bazel run //docs:update ?