aspect-build / aspect-cli

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

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

Open jbedard opened 4 months ago

jbedard commented 4 months 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