aspect-build / aspect-build/rules_ts
[Bug]: Source generated by conflicting actions when importing js into ts
- Dominant language
- Starlark
- Stars
- 138
- Forks
- 87
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 3
Description
### What happened?
When importing js into ts while also transpiling with swc, rules_ts produces an error.
Repro case here: https://github.com/aptenodytes-forsteri/ts_js_interop
### Version
Development (host) and target OS/architectures:
Ubuntu 22.04
Output of `bazel --version`:
bazel 7.3.2
Version of the Aspect rules, or other relevant rules from your
`WORKSPACE` or `MODULE.bazel` file:
```
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
http_archive(
name = "aspect_rules_js",
sha256 = "4cab6898f0ff8048e32640cce06a47aa4b92b2fb330d055940f95f24c8ebb868",
strip_prefix = "rules_js-2.0.1",
url = "https://github.com/aspect-build/rules_js/releases/download/v2.0.1/rules_js-v2.0.1.tar.gz",
)
http_archive(
name = "aspect_rules_ts",
sha256 = "5aafa2422b6f2ed6d8db9edcd6368693055960bca7e149516b95c0d45a6a7ae5",
strip_prefix = "rules_ts-3.1.0",
url = "https://github.com/aspect-build/rules_ts/releases/download/v3.1.0/rules_ts-v3.1.0.tar.gz",
)
http_archive(
name = "aspect_rules_swc",
sha256 = "d63d7b283249fa942f78d2716ecff3edbdc10104ee1b9a6b9464ece471ef95ea",
strip_prefix = "rules_swc-2.0.0",
url = "https://github.com/aspect-build/rules_swc/releases/download/v2.0.0/rules_swc-v2.0.0.tar.gz",
)
```
Language(s) and/or frameworks involved:
js / ts
### How to reproduce
```shell
Clone https://github.com/aptenodytes-forsteri/ts_js_interop/tree/main
bazel build //...
More generally, attempt to import javascript into typescript. We have some code that has not been converted to typescript. We had successfully been importing this javascript into our typescript. Now, we get errors about conflicting source files.
```
### Any other information?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.