cli icon indicating copy to clipboard operation
cli copied to clipboard

fix : Update async-cli package to use ES modules

Open Recxsmacx opened this issue 7 months ago • 4 comments

Fixes #1698

Update async-cli package to use ES modules instead of CommonJS.

  • Update tsconfig.json files:

    • Change module to ESNext in tsconfig.json, assets/create-glee-app/templates/default/tsconfig.json, and assets/create-glee-app/templates/tutorial/tsconfig.json.
    • Update moduleResolution to node in the same files.
  • Update package.json:

    • Add "type": "module".
  • Update import/export syntax:

    • Modify import statements in src/commands/bundle.ts, src/commands/convert.ts, src/commands/generate/fromTemplate.ts, scripts/fetch-asyncapi-example.js, scripts/releasePackagesRename.js, and src/index.ts to use ES module syntax.

Recxsmacx avatar Mar 12 '25 06:03 Recxsmacx