{"_id":"@abmao/bump","_rev":"1-5007a094f71b2911492ee8687b4bc1de","name":"@abmao/bump","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@abmao/bump","version":"0.0.1","description":"Automatically (or with prompts) bump your version number, commit changes, tag, and push to Git","keywords":["version","bump","npm","node","bower","package","git","tag","push","prompt"],"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"license":"MIT","homepage":"https://jstools.dev/version-bump-prompt","repository":{"type":"git","url":"git+https://github.com/hengshanMWC/version-bump-prompt.git"},"main":"dist/index.js","types":"dist/index.d.ts","bin":{"bumpp":"bin/bumpp.js"},"scripts":{"clean":"rimraf .nyc_output coverage dist","lint":"eslint src test","build":"tsup src/index.ts src/cli/index.ts --format esm,cjs --dts --clean","watch":"npm run build -- --watch src","test":"mocha && npm run lint","coverage":"nyc node_modules/mocha/bin/mocha","upgrade":"npm-check -u && npm audit fix","bumpp":"esno src/cli/run.ts --tag --push --all","prepublishOnly":"npm run clean && npm run build","release":"npm run bumpp && npm publish"},"devDependencies":{"@jsdevtools/chai-exec":"^2.1.1","@jsdevtools/eslint-config":"^1.1.4","@types/chai":"^4.2.21","@types/command-line-args":"^5.2.0","@types/inquirer":"^7.3.3","@types/mocha":"^8.2.3","@types/node":"^14.17.14","@types/prompts":"^2.0.14","@types/semver":"^7.3.8","chai":"^4.3.4","detect-indent":"^7.0.0","detect-newline":"^3.1.0","eslint":"^7.32.0","esno":"^0.9.1","log-symbols":"^4.1.0","mocha":"^8.4.0","npm-check":"^5.9.2","nyc":"^15.1.0","rimraf":"^3.0.2","strip-ansi":"^6.0.0","tsup":"^5.11.9","typescript":"^4.4.2"},"dependencies":{"@jsdevtools/ez-spawn":"^3.0.4","chalk":"^4.1.2","command-line-args":"^5.2.0","globby":"^11.0.4","prompts":"^2.4.1","semver":"^7.3.5"},"engines":{"node":">=10"},"engineStrict":true,"gitHead":"d7af5f56a7f5ae16bb601f7c6cbb81b14dbb62ca","bugs":{"url":"https://github.com/hengshanMWC/version-bump-prompt/issues"},"_id":"@abmao/bump@0.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-OZgSmBFFcAV69T/tqseWeb5ik8QkUFhtpX3ghu4m0iqOwblfss25l2L5W3xnqmoCnwXZuW4jMOegCzJ+m1Qw+w==","shasum":"fe4930407d35c90d9ba77494d5e1c181d55ef3ae","tarball":"https://registry.npmjs.org/@abmao/bump/-/bump-0.0.1.tgz","fileCount":11,"unpackedSize":110641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQszKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpI2Q//WgM44OiyY3tC3xu0ardhfuIpM9en95Gzpos2fHqR+zfb39uy\r\nbozmq9fpsLtlu3ilzfViWeM/R3DXcLnbXEGoCrAOqwJr0pS+gACh8A+eOiVn\r\nIN8nTKdyxRrRi9xvcxCn+k7t/Q2LdixuuijxFGU+c9SUTcRiQQLjOFCki8CR\r\nTMOuaHB4hY25id8g0wgLBfPjF2Sgbj/4c7U+RnMNY89wLds/RVbehivTv5VB\r\nZ8zqSJlPS41U4PG9imiex/MYkSKrpVn78cea5e1l2BdE8aC5lRqwZkB7ofR8\r\ntuHXcwPTjcwX/3VOhir8z2FBuAnswYWbTHxt5Y12Xbm2RfKAl+aRPNqCQky/\r\nVhFNclHxtvFqj6Y7M8l9fUYJ8f2R1GKMwdO1zEyBAEy6DXizaCthpBqbyKZB\r\nrvcGKuJKypn323Y6kgyAtbCqZK+cnLACrc77yT/Gbwn4+/cUt3PLpD6heaB0\r\nhVBjU0I8U0Kn2S51plyRt3DcC3jHDsGRX51vaKalFvIH+wsdQtPs1UUiAfuM\r\nvsRM7zwdX+Y79I1v7SKNtIVctfrpdq7Hx9dmBFYaON/qQYNAcBeJ9yBWL98P\r\njb8ejur+Ecm7CIdbhm0pZfUk0o/62FgCthiaS/PhIOo1VP9XbBhdyw0w5P2+\r\nY0YXlD+iQ2mQcTtGUmJApt0FTYnVDMibKcw=\r\n=QHmI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJAbiSSkxsaZJNMHufd3RiDo7yVbc2EVEDhNwzQsquhAIgOul9aLvSd4TFssd/KjvP2VApowd5RTQNctE28+8x7kU="}]},"_npmUser":{"name":"abmao","email":"1044926436@qq.com"},"directories":{},"maintainers":[{"name":"abmao","email":"1044926436@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bump_0.0.1_1648544970323_0.6647373992670234"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-29T09:09:30.261Z","0.0.1":"2022-03-29T09:09:30.457Z","modified":"2022-04-04T10:59:54.614Z"},"maintainers":[{"name":"abmao","email":"1044926436@qq.com"}],"description":"Automatically (or with prompts) bump your version number, commit changes, tag, and push to Git","homepage":"https://jstools.dev/version-bump-prompt","keywords":["version","bump","npm","node","bower","package","git","tag","push","prompt"],"repository":{"type":"git","url":"git+https://github.com/hengshanMWC/version-bump-prompt.git"},"author":{"name":"James Messinger","url":"https://jamesmessinger.com"},"bugs":{"url":"https://github.com/hengshanMWC/version-bump-prompt/issues"},"license":"MIT","readme":"# bumpp\n\n[![NPM version](https://img.shields.io/npm/v/bumpp?color=a1b858&label=)](https://www.npmjs.com/package/bumpp)\n\nForked from [`version-bump-prompt`](https://github.com/JS-DevTools/version-bump-prompt)\n\n###### Changes in this fork\n\n- Renamed to `bumpp` - so you can use `npx bumpp` directly\n- Ships ESM and CJS bundles\n- Add a new argument `--execute` to execute the command before committing \n\n<details>\n<summary>Original README</summary>\n\n# Version Bump Prompt\n\n[![Cross-Platform Compatibility](https://jstools.dev/img/badges/os-badges.svg)](https://github.com/JS-DevTools/version-bump-prompt/actions)\n[![Build Status](https://github.com/JS-DevTools/version-bump-prompt/workflows/CI-CD/badge.svg)](https://github.com/JS-DevTools/version-bump-prompt/actions)\n\n[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/version-bump-prompt/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/version-bump-prompt)\n[![Dependencies](https://david-dm.org/JS-DevTools/version-bump-prompt.svg)](https://david-dm.org/JS-DevTools/version-bump-prompt)\n\n[![npm](https://img.shields.io/npm/v/@jsdevtools/version-bump-prompt.svg)](https://www.npmjs.com/package/@jsdevtools/version-bump-prompt)\n[![License](https://img.shields.io/npm/l/@jsdevtools/version-bump-prompt.svg)](LICENSE)\n[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/JS-DevTools/version-bump-prompt)\n\n![Screenshot](https://jstools.dev/version-bump-prompt/img/screenshot.gif)\n\n\n\n### Automate your release process with a single command that can:\n\n- Prompt for the type of version bump\n\n- Bump the version number **any** file, including:\n    -  `package.json`\n    -  `package-lock.json`\n    -  config files\n    -  source code files\n    -  ReadMe files\n    -  license files\n\n- Run your `preversion`, `version`, and `postversion` scripts\n\n- Commit changes to git\n\n- Tag the commit with the version number\n\n- Push the commit to remote\n\n\n\nInstallation\n--------------------------\nYou can install `version-bump-prompt` via [npm](https://docs.npmjs.com/about-npm/).\n\n```bash\nnpm install -g @jsdevtools/version-bump-prompt\n```\n\n\n\nUsage\n--------------------------\n\n```\nbump [release] [options] [files...]\n\nAutomatically (or with prompts) bump your version number, commit changes, tag, and push to Git\n\nrelease:\n  The release version or type.  Can be one of the following:\n   - A semver version number (ex: 1.23.456)\n   - prompt: Prompt for the version number (this is the default)\n   - major: Increase major version\n   - minor: Increase minor version\n   - patch: Increase patch version\n   - premajor: Increase major version, pre-release\n   - preminor: Increase preminor version, pre-release\n   - prepatch: Increase prepatch version, pre-release\n   - prerelease: Increase prerelease version\n\noptions:\n  --preid <name>            The identifier for prerelease versions.\n                            Defaults to \"beta\".\n\n  -c, --commit [message]    Commit changed files to Git.\n                            Defaults to \"release vX.X.X\".\n\n  -t, --tag [tag]           Tag the commit in Git.\n                            The Default tag is \"vX.X.X\"\n\n  -p, --push                Push the Git commit.\n\n  -a, --all                 Commit/tag/push ALL pending files,\n                            not just the ones that were bumped.\n                            (same as \"git commit -a\")\n\n  --no-verify               Bypass Git commit hooks\n                            (same as \"git commit --no-verify\")\n\n  -v, --version             Show the version number\n\n  -q, --quiet               Suppress unnecessary output\n\n  -h, --help                Show usage information\n\n  --ignore-scripts          Bypass version scripts\n\nfiles...\n  One or more files and/or globs to bump (ex: README.md *.txt docs/**/*).\n  Defaults to package.json and package-lock.json.\n```\n\n\n\nExamples\n--------------------------\n\n### Default Behavior (no arguments)\n\n```\nbump\n```\n\nWhen run without any arguments, the `bump` command will do the following:\n\n- Prompt the user to select the bump type (major, minor, prerelease, etc.)\n- Update the version number in `package.json` and `package-lock.json`\n- Run any [npm version scripts](https://docs.npmjs.com/cli/version.html) (`preversion`, `version`, or `postversion`)\n- It will **NOT** commit, tag, or push to git.\n\n\n### Bump Without Prompting\nYou can specify an explicit version number:\n\n```\nbump 1.23.456\nbump 1.23.456-beta.1\n```\n\nOr you can specify a release type:\n\n```\nbump major\nbump patch\nbump prerelease\n```\n\nFor pre-releases, the default identifier is \"beta\".  You can change it using the `--preid` argument:\n\n```\nbump premajor --preid alpha\n```\n\nAll of the above commands do the following:\n\n- Update the version number in `package.json` and `package-lock.json`\n- Run any [npm version scripts](https://docs.npmjs.com/cli/version.html) (`preversion`, `version`, or `postversion`)\n- It will **NOT** commit, tag, or push to git.\n\n\n\n### Git Commit\nYou can use the `--commit` argument by itself to prompt the user for the version number. If you don't specify a commit message, then it defaults to \"**release vX.X.X**\". If you _do_ specify a commit message, then the version number will be appended to it.  Or you can insert `%s` placeholders in the message, and they'll be replaced with the version number instead.\n\n```\nbump --commit\nbump --commit \"This is release v\"\nbump --commit \"The v%s release\"\n```\n\nYou can also specify a release type instead of prompting the user:\n\n```\nbump major --commit\nbump minor --commit \"This is release v\"\nbump patch --commit \"The v%s release\"\n```\n\nThe above commands do the following:\n\n- Update the version number in `package.json` and `package-lock.json`\n- Run any [npm version scripts](https://docs.npmjs.com/cli/version.html) (`preversion`, `version`, or `postversion`)\n- Commit the `package.json` and `package-lock.json` files to git\n- The commit will **NOT** be tagged\n- The commit will **NOT** be pushed to the remote\n\n\n### Git Tag\nThe `--commit` argument does not tag the commit by default. You can use the `--tag` argument to do that.  You can optionally specify a tag name, which can contain `%s` placeholders, just like the commit message.\n\nYou don't need to specify the `--commit` argument, since it's implied by `--tag`.  Unless you want to customize the commit message.\n\n```\nbump --tag\nbump major --tag \"v%s tag\"\nbump patch --commit \"release v\" --tag \"v\"\n```\n\nThe above commands do the following:\n\n- Update the version number in `package.json` and `package-lock.json`\n- Run any [npm version scripts](https://docs.npmjs.com/cli/version.html) (`preversion`, `version`, or `postversion`)\n- Commit the `package.json` and `package-lock.json` files to git\n- Tag the commit\n- The commit will **NOT** be pushed to the remote\n\n\n### Git Push\nThe `--push` argument pushes the git commit and tags.\n\n```\nbump --commit --push\nbump major --tag --push\nbump patch --tag \"v%s tag\" --push\nbump prerelease --commit \"release v\" --tag \"v\" --push\n```\n\n\n### Specifying Files to Update\nAll of the `bump` commands shown above operate on the `package.json` and `package-lock.json` files by default. You can specify a custom list of files and/or [glob patterns](https://www.npmjs.com/package/glob#glob-primer) to update instead.\n\n> **Note:** If you specify your own file list, then the `package.json` and `package-lock.json` files will **not** be updated by default. You need to explicitly include them in your file list if you want them updated.\n\n```\nbump README.md\nbump package.json package-lock.json README.md\nbump *.json *.md\n```\n\n\n\nVersion Scripts\n--------------------------\n`version-bump-prompt` will execute your `preversion`, `version`, and `postversion` scripts, just like [the `npm version` command](https://docs.npmjs.com/cli/version) does. If your `package.json` file contains any or all of these scripts, then they will be executed in the following order:\n\n  - The `preversion` script runs before the version is updated (and before the version prompt is shown)\n  - The `version` script runs after the version is updated, but _before_ `git commit` and `git tag`\n  - The `postversion` script runs after `git commit` and `git tag`, but _before_ `git push`\n\n\n\nContributing\n--------------------------\nContributions, enhancements, and bug-fixes are welcome!  [Open an issue](https://github.com/JS-DevTools/version-bump-prompt/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/version-bump-prompt/pulls).\n\n#### Building\nTo build the project locally on your computer:\n\n1. __Clone this repo__<br>\n`git clone https://github.com/JS-DevTools/version-bump-prompt.git`\n\n2. __Install dependencies__<br>\n`npm install`\n\n3. __Build the code__<br>\n`npm run build`\n\n4. __Run the tests__<br>\n`npm test`\n\n\n\nLicense\n--------------------------\nVersion Bump Prompt is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.\n\nThis package is [Treeware](http://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/JS-DevTools/version-bump-prompt) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.\n\n\n\nBig Thanks To\n--------------------------\nThanks to these awesome companies for their support of Open Source developers ❤\n\n[![GitHub](https://jstools.dev/img/badges/github.svg)](https://github.com/open-source)\n[![NPM](https://jstools.dev/img/badges/npm.svg)](https://www.npmjs.com/)\n[![Coveralls](https://jstools.dev/img/badges/coveralls.svg)](https://coveralls.io)\n[![Travis CI](https://jstools.dev/img/badges/travis-ci.svg)](https://travis-ci.com)\n[![SauceLabs](https://jstools.dev/img/badges/sauce-labs.svg)](https://saucelabs.com)\n\n</details>\n","readmeFilename":"README.md"}