@avivz_rapyd/ts-promises-methods
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

ts Husky Husky

Node.js TS

SWC starter kit

This setup compiles Typescript to ESM for the Node.js runtime.
It's super-fast.
it uses swc for the actual compiling. tsc is used for type checking only. nodemon allows us to re-compile and run from dist with every change during development.

It is indeed experimental and can change at any time.
Be sure to use .js extension name at the end of your import statements of your own source files.

You can tell VSCode to add .js extentions for you on auto-imports...
Simply open the command pallete Cmd + Shift + P, then type >open settings json
and add these two lines at the root level of the configuration object:

"javascript.preferences.importModuleSpecifierEnding": "js"
"typescript.preferences.importModuleSpecifierEnding": "js"

An easier alternative you may consider is to simply dompile everything to CommonJS.

This setup is only relevant if it is important for you to be standard complient with ESNext and specifically with EcmaScript Modules (ESM) running natively in the Node.js runtime.

Package Sidebar

Install

npm i @avivz_rapyd/ts-promises-methods

Weekly Downloads

1

Version

1.2.1

License

ISC

Unpacked Size

22.9 kB

Total Files

42

Last publish

Collaborators

  • avivz_rapyd