tsc not creating the dist folder

The noEmit option causes TypeScript to not emit any files. You need to either remove "noEmit": true or pass --noEmit false in your build-ts script.

Bonus tip: Rename the script to prepack to have npm compile the TypeScript for you when you run npm pack or npm publish.

Leave a Comment