typespec icon indicating copy to clipboard operation
typespec copied to clipboard

hsjs-scaffold move to EcmaScript

Open diberry opened this issue 6 months ago • 2 comments

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 avatar May 08 '25 18:05 diberry

@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.

witemple-msft avatar May 08 '25 19:05 witemple-msft

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.

diberry avatar May 08 '25 23:05 diberry

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.