Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 423 Bytes

File metadata and controls

22 lines (15 loc) · 423 Bytes

CommonJS example for TypeScript with tsc

Settings

See package.json and tsconfig.json and .babelrc.

  • use both tsc and babel
  • set type to "module" in package.json
  • use module-extension-resolver plugin in .babelrc

Build

npm ci
npm run build # tsc -> babel(module-extension-resolver)

Run

node ./dist/index.js