When working on both this project and github-sdm
, it helps to be able to avoid npm publish cycles. To do this, follow these steps:
- Go to wherever you've checked out
github-sdm
, and cd to thebuild/src
directory. Typenpm link
. - Wherever you've checked out
sample-sdm
or any other project importinggithub-sdm
as an npm module, typenpm link @atomist/sdm
.
Notes:
- The link will survive until you run
npm install
insample-sdm
or another downstream project. You will need to run npm link again if you install anything via npm. - If you have changed
sample-sdm
code to depend on a change togithub-sdm
, do not push to master until you have updated package.json to refer to the updated npm pre-release or release build and run npm install to update the package lock. - Do not push to
sample-sdm
master
anything that depends on a branch ofgithub-sdm
other thanmaster
.