This is a quickstart boilerplate with settings for creating node packages with typescript. ESBuild will be used as the transpiler.
- Open 2 terminals
- in the first terminal run
npm run watch=> now nodemon will watch for changes in .ts files in your src directory and esbuild will transpile your code into .js. - in the second terminal run
npm run dev=> this will start a live-server, where your changes will immediately be reflected.
- Run
npm run build. This will create all necessary files. - Run
npm publish. This will now release your package in the npm registry.