typespec
typespec copied to clipboard
hsjs-scaffold move to EcmaScript
Clear and concise description of the problem
Can the scaffolding move to modern JS?
@willmtemple @mario-guerra
Checklist
- [x] Follow our Code of Conduct
- [x] Read the docs.
- [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@diberry Can you provide an example of what you're seeing and what might be modernized? The scaffolding script is a .mjs ES Module and all of the HSJS code is shipped as modern ESM, and the generated code should all be modern ESM as well. When generating the output project for scaffolding, we target ES2020 and use the Node16 module/moduleResolution settings in TypeScript so that the workflow will be modern.
I was expecting to see type:module in the package.json. It sounds like you probably considered it and decided not to so the customer can decide for themselves.
Hi @@diberry. Since there hasn't been recent engagement, we're going to close this out. Please feel free to reopen if you have any further questions or concerns.