Filesystem trick.
- Learn npm package uploading
- Learn how to support ECMAScript, CommonJS, Typescript at the same time using typescript environment
- Learn how to build properly on nodejs
# build (will generate dist folder)
npm run build
# ECMAScript
node dist/mjs
# CommonJS
node dist/cjs
Project is based on bash. (Currently working on Git Bash from Windows.)
There may be some potential issues in non-bash shell. (e.g. Powershell, cmd)
# build
npm run build
# build (in live)
npm run dev