diff options
Diffstat (limited to 'node_modules/in-publish/README.md')
-rw-r--r-- | node_modules/in-publish/README.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/node_modules/in-publish/README.md b/node_modules/in-publish/README.md index 8f4e5c0..de0b2a7 100644 --- a/node_modules/in-publish/README.md +++ b/node_modules/in-publish/README.md @@ -1,11 +1,13 @@ in-publish ========== +> For background, see [npm#10074](https://github.com/npm/npm/issues/10074). + Detect if we were run as a result of `npm publish`. This is intended to allow you to easily have prepublish lifecycle scripts that don't run when you run `npm install`. ``` -$ npm install --save in-publish +$ npm install --save-dev in-publish in-publish@1.0.0 node_modules/in-publish ``` @@ -35,7 +37,7 @@ It's worth noting that the `prepublish` lifecycle is _ALSO_ called when you buil $ npm pack ``` -Will call your `prepublish` lifecycle, but with the examplea above, +Will call your `prepublish` lifecycle, but with the example above, `thing-I-dont-want-on-dev-install` won't be run. If you want this, you can use another helper included here: |