cli
cli copied to clipboard
fix : Update async-cli package to use ES modules
Fixes #1698
Update async-cli package to use ES modules instead of CommonJS.
-
Update
tsconfig.jsonfiles:- Change
moduletoESNextintsconfig.json,assets/create-glee-app/templates/default/tsconfig.json, andassets/create-glee-app/templates/tutorial/tsconfig.json. - Update
moduleResolutiontonodein the same files.
- Change
-
Update
package.json:- Add
"type": "module".
- Add
-
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, andsrc/index.tsto use ES module syntax.
- Modify import statements in