actions / languageservices

Language services for GitHub Actions workflows and expressions.
MIT License
71 stars 25 forks source link

Published ESM code has imports without file extensions #110

Open ascorbic opened 1 month ago

ascorbic commented 1 month ago

Describe the bug The compiled packages that are published on npm include ESM-compiled files with internal imports without the .js file extension. This is invalid, and is causing errors when trying to use the packages with Vite.

To Reproduce

See the published code

Expected behavior Imports are in the form export { Expr } from "./ast.js", not export { Expr } from "./ast"

Screenshots If applicable, add screenshots to help explain your problem.

Package/Area

Package Version v1.x.y

Additional context Add any other context about the problem here.