aspect-build / aspect-cli

correct, fast, usable: choose three
https://aspect.build/cli
Apache License 2.0
84 stars 19 forks source link

[Bug]: [gazelle] package.json required in ts_project(srcs) for esm .js imports #724

Open jbedard opened 1 month ago

jbedard commented 1 month ago

Typescript looks at the parent package.json module type to determine imports are handled. Gazelle should detect this and put package.json into ts_project(srcs).

See https://www.typescriptlang.org/docs/handbook/modules/reference.html#module-format-detection