According to @jmorganson, this is why we are using run-scripts: https://hackernoon.com/simple-build-tools-npm-scripts-vs-makefile-vs-runjs-31e578278162
This repo is used in production for the following projects:
In the JS/TS repo where you want to include these run-scripts:
npm i -D runjs @credsimple/run-scripts
Commit changes to
Run with either npm or run scripts Like this:
Or this works like normal:
The repo will be published by a pipeline when a PR is merged into master. The PR build will always check that the version in package.json doesn't already exist in the npm registry, so no reason to worry there. If you are curious what the pipelines do, check the codefresh directory for their definitions.