I have a Node module whose source-code is in a Git repository (GitHub). I can install the module into an NPM project from Git using NPM:
npm install --save [email protected]:user/example.git
The problem is that there are some build steps that need to be done after pulling the source-code. I don't want to include the results of the build in Git because they are artefacts of the build step, not true source-code.
Currently, I need to manually move to the directory (cd ./node_modules/example
) and then run the build script (npm run build
), but this is a hassle.
Since everything is in NPM, can this be automated somehow?