See package.json
and tsconfig.json
and .babelrc
.
- use both
tsc
andbabel
- set
type
to"module"
inpackage.json
- use
module-extension-resolver
plugin in.babelrc
npm ci
npm run build # tsc -> babel(module-extension-resolver)
node --experimental-modules ./dist/index.js