{"name":"not-prerelease","version":"1.0.0","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":"b2ebe8e91e3def8a6e3bda24185827e127578bfb","_id":"not-prerelease@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"brandonocasey","email":"brandonocasey@gmail.com"},"dist":{"integrity":"sha512-L7n+smRjuuPIrxSqYdSqEkJKBkR+lAzQMYlaV0Yyo0xUfv28uQyiXHRsgxdRb/giqF70DD979IxwO/vowtiTQQ==","shasum":"b298c6ffc2d2433d2d4a6b6a5079876e0eb5279f","tarball":"http://registry-npm.ywwl.com/not-prerelease/download/not-prerelease-1.0.0.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\nwsFcBAEBCAAQBQJbdZRQCRA9TVsSAnZWagAAYN0QAKTdq7Xf7lBCN0qLlbSR\nNAfxQL4sTaSwIvoSIvf1tWvbDrdDy6vVI9V2rqccsrTDrO0pCfgkYqo5zIrK\nZELeS7HfZrTy8HDNkD5RIHk5pXgNqbMNzz2iv4FyYth0TpjCoHSTauIV30O0\nJc6xCtsXGoxwMMAU87qG8hG+tssFapemxt+/aOJp/wAXcfQwIu9spf1SiEWq\nKRy2T/EyNK3xrGTVaMjNwE0gsRdz5DySJFDRUOW+evX6+S4hyDr85HI3NHjR\nVUbyO+I4t77/6+8b23FfNYcyrsGR2Bd5W7NJXIcaHAbgfXv9W4wocazYD+M+\niD4nmWZdygHtvftBqQurNs1+QqfZbqb/Bo+UfAEy/s6HTbrHA3Wg1vuNeeke\n7fOiHK63e6icKMI8CABIcXD7B3P/g/t4C9LCLRIzfLh4pCK2zUzKQ0ufydbi\nyN+7HOeDosn/2A8JwVyUtKRKN/T4RZ555/F9MH/lTOZ/uC1JsB5zOTJoXvKA\n7eoTM+jtl1PQHmz8gHvRKr8wG5OvwW4eSF1Mvj7y4PYlK/J284zVO82A3zP8\nAh+r9MqIiEe0v3tnJugO6F0lvOIVmx2i5Lhn5NwSaHHIduJITROhUqAZ0Uyt\nhz/MJMluxXrPSN1Yo9oaFiKOtXDfGtmCe8kEGE78PM5MlKw2LzSEo2EaxF94\nJMP6\r\n=espk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBz1WOTeHYARqsPnJvEHs/CBWwUv6UmkXyRCk6tq51xAIhAK3UznFT2F+FxvD3ImAU0whf68nhPmzYAYtir9raz+sD"}],"size":1530,"noattachment":false,"key":"/not-prerelease/-/not-prerelease-1.0.0.tgz"},"maintainers":[{"name":"brandonocasey","email":"brandonocasey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/not-prerelease_1.0.0_1534432336355_0.4726208920541506"},"_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":1534432336427,"_cnpm_publish_time":1534432336427,"dist-tags":{"latest":"1.0.1"}}