How to run a custom script on npm build/run events in a package

48 views Asked by At

I am trying to build a source code generator that reads from a file and generates code in the project.

I want this script to run on build/run events. What is the correct way to do so? I would also prefer to be able to use typescript for this and for it to work as an NPM package

0

There are 0 answers