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/srcdirectory. Typenpm link. - Wherever you've checked out
sample-sdmor any other project importinggithub-sdmas an npm module, typenpm link @atomist/sdm.
Notes:
- The link will survive until you run
npm installinsample-sdmor another downstream project. You will need to run npm link again if you install anything via npm. - If you have changed
sample-sdmcode 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-sdmmasteranything that depends on a branch ofgithub-sdmother thanmaster.