{"name":"not-prerelease","version":"1.0.1","description":"Detect if the current package version, or the passed version is a prerelease","bin":{"not-prerelease":"not-prerelease.js","is-prerelease":"is-prerelease.js"},"keywords":[],"repository":{"type":"git","url":"git+https://github.com/brandonocasey/not-prerelease.git"},"author":{"name":"Brandon Casey","email":"brandonocasey@gmail.com"},"license":"Apache-2.0","dependencies":{"semver":"^5.5.0"},"bugs":{"url":"https://github.com/brandonocasey/not-prerelease/issues"},"homepage":"https://github.com/brandonocasey/not-prerelease","gitHead":"a820bc01b416bdef8a0c90ec8aca9d64518aa708","_id":"not-prerelease@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"brandonocasey","email":"brandonocasey@gmail.com"},"dist":{"integrity":"sha512-Cyia7zecBYj219nIzJBc6TmzK3Z8MzFhShF365g3YrKngBmdmr4BRaKVVvVpHOxVlk/5iqn5Dmxz4K9M3orApA==","shasum":"2d0a6ca117d9683f51a7fcf6b0da2fc685a8ccb6","tarball":"http://registry-npm.ywwl.com/not-prerelease/download/not-prerelease-1.0.1.tgz","fileCount":5,"unpackedSize":3253,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdZThCRA9TVsSAnZWagAA838P/0V+zjxmcuyZsECB1JpZ\nQr2Ley8Vvc+LeHsOq1yvNEFHcVCQKv8JiU+VexWr5R+Rbt+R8i0hznFBhQHw\nO6qR4vOvHEaPPui15e8PDzvOVyk7YApnHy8AvgPB6xvj2FZpJnNH6CVMrKY6\nUpNH9AEseTvH+6F9+rEOLmf9VfL9b85sDHZg3PDQK98V3iflEiWPL59eYgzo\nKzQLdogmwqSRykuC0sBGUUChM1OMfZQE2mDEGFUS9ZMTmBYXaNR+Afl82o+W\nptG28T9hFc1G5X90nmaZK6IHbMxYpzsrRE+ite680wUBQAxFbAOXLVUYLDTe\npgrwCTIBx0rdEGEj+8T0CtGGhw/86+fmSyB002Roaybanp5Fw+nxAIWKQRSu\nKKpy5E6dvz/F/kygpSK2u06TH4hHRVKEU+GSnJ22vekXQLaMEEMsjE8uqhej\nZZeTzai3YGEFZLVk4gnXdyDpR9gGXwku13tIczNn76Xsx89vTsXB/tuU3Fpy\nfr2QKTqgRIs6nTT9NSDhr7OlyrB0uarNbmpPNeDsW/YGOzszJG0Bp83iEzBR\nZO8/iHT1LxMvf3GHB8XUBOnu4TLGktRFI4bTHU9A+4u63E3hvjEt/dSE2w3s\npmlIY1P7Qih/ng/PSlhfEp04Yw4L4LPt+l9J/slaBJgzAaWF/xTZNLLazRqu\nq9Xp\r\n=A5ld\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCs+X+g1dEA22E65sKIwRg3YFvtAE30mMQ9KdnFfbZLkgIgBwzosRue1J+q5nFdTQePi32XAWPoMD9qA9EAHkqZGQg="}],"size":1532,"noattachment":false,"key":"/not-prerelease/-/not-prerelease-1.0.1.tgz"},"maintainers":[{"name":"brandonocasey","email":"brandonocasey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/not-prerelease_1.0.1_1534432480556_0.329843155065874"},"_hasShrinkwrap":false,"readme":"# not-prerelease\n\nDetect if the current `npm version` call is a `prerelease` or not. That way the version\nlifecycle script can do things selectively in actual releases vs prereleases, such as\nupdate a changelog with [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog)\n\n## Installation\n\n```\n$ npm install --save-dev not-prerelease\n```\n\nThen edit your package.json to have:\n\n```json\n  \"scripts\": {\n    \"version\": \"not-prerelease && thing-i-dont-want-to-do-on-prerelease || is-prerelease\"\n  }\n```\n\nNow when you run:\n\n```\n$ npm version <major|minor|patch|prerelease>\n```\n\nThen `thing-I-dont-want-on-prerelease` won't be run during a prerelease but,\nwill be run done during a major, minor, or patch releases.\n\n## Other information\nThis package exports two binaries both of which default to looking at the version of package.json in the current directory, but they can also be passed one argument, a version to check.\n\n- `not-prerelease`\n  - If the version in package.json or that was passed is a prerelease it will exit 1 (failure) otherwise it will exit 0.\n- `is-prerelease`\n  - If the version in package.json or that was passed is a prerelease it will exit 0 (success) otherwise it will exit 1.\n\n\n","publish_time":1534432480690,"_cnpm_publish_time":1534432480690,"dist-tags":{"latest":"1.0.1"}}