{"_rev":"62-2a481c919254b5803e9e7190fcacc4ee","time":{"created":"2022-12-28T09:21:55.784Z","0.0.2":"2022-10-31T07:57:16.383Z","modified":"2022-12-28T09:21:56.089Z","0.0.3":"2022-10-31T07:57:19.825Z","0.0.4":"2022-10-31T07:57:23.225Z","0.0.5":"2022-10-31T07:57:27.036Z","0.0.6":"2022-10-31T07:57:30.503Z","0.0.7":"2022-10-31T07:57:33.935Z","0.0.8":"2022-10-31T07:57:37.308Z","0.0.9":"2022-10-31T07:58:11.381Z","0.0.10":"2022-10-31T07:58:14.303Z","0.0.11":"2022-10-31T08:00:54.994Z","0.0.12":"2022-10-31T08:00:58.206Z","0.0.13":"2022-10-31T08:01:01.158Z","0.0.14":"2022-10-31T08:03:15.768Z","0.0.15":"2022-10-31T08:05:16.606Z","0.0.16":"2022-10-31T08:05:19.444Z","0.0.17":"2022-10-31T08:05:21.895Z","0.0.18":"2022-10-31T08:06:21.541Z","0.0.19":"2022-10-31T08:06:23.967Z","1.0.1":"2022-10-31T08:07:52.885Z","1.0.3":"2022-10-31T08:11:08.589Z","1.0.5-alpha":"2022-10-31T08:15:52.646Z","1.0.6-alpha":"2022-10-31T08:16:45.981Z","1.0.7-alpha":"2022-10-31T08:18:14.463Z","1.0.8-alpha":"2022-10-31T08:19:43.646Z","1.0.9-alpha":"2022-10-31T08:20:38.212Z","1.0.10-alpha":"2022-10-31T08:22:04.276Z","1.0.11":"2022-10-31T08:22:07.421Z","1.0.12-alpha":"2022-10-31T08:23:02.808Z","1.0.14-alpha":"2022-10-31T08:24:25.533Z","1.0.15":"2022-10-31T08:24:30.687Z","1.0.16-alpha":"2022-10-31T08:25:06.596Z","1.0.17":"2022-10-31T08:25:10.496Z","1.0.18-alpha":"2022-10-31T08:31:29.117Z","1.0.19":"2022-10-31T08:31:32.850Z","1.0.20-alpha":"2022-10-31T08:32:35.864Z","1.0.21":"2022-10-31T08:32:40.203Z","1.0.22-alpha":"2022-10-31T08:33:56.772Z","1.0.23":"2022-10-31T08:34:01.122Z","1.0.24-alpha":"2022-10-31T08:34:39.639Z","1.0.25":"2022-10-31T08:34:43.245Z","1.0.27":"2022-10-31T08:36:31.990Z","1.0.26-alpha":"2022-10-31T08:46:38.770Z","1.0.27-alpha":"2022-10-31T08:47:44.745Z","1.0.28":"2022-10-31T08:47:51.104Z","1.0.30":"2022-10-31T08:48:37.427Z","1.0.31":"2022-10-31T08:49:53.664Z","1.0.32":"2022-10-31T08:50:00.053Z","1.0.34":"2022-10-31T08:50:31.769Z","1.0.36":"2022-10-31T08:51:03.564Z","1.0.38":"2022-10-31T08:54:35.517Z","1.0.40":"2022-10-31T09:04:11.802Z","1.0.42":"2022-10-31T09:05:03.813Z","1.1.0":"2022-10-31T10:10:16.361Z","1.1.2":"2022-10-31T10:11:12.268Z","1.1.3-alpha":"2022-10-31T10:12:02.893Z","1.1.4":"2022-10-31T10:13:41.606Z","1.1.5":"2022-10-31T10:27:09.680Z","1.2.0":"2022-10-31T10:29:12.803Z","1.2.1":"2022-10-31T10:38:57.618Z","1.2.3":"2022-12-28T09:21:55.946Z"},"_id":"npm-jetpack","name":"npm-jetpack","dist-tags":{"latest":"1.2.3"},"versions":{"1.2.3":{"name":"npm-jetpack","author":{"name":"rchuvilev"},"license":"MIT","description":"NPX tool for handling npm packages versions for publishing","keywords":["npm package","npm publish","npx"],"version":"1.2.3","bin":{"npm-jetpack":"bin/index.js"},"scripts":{"test":"node tests/_tests.js","update":"npm run test && node core/deploy.js --commit --publish","update-minor":"npm run test && node core/deploy.js --minor --commit --publish","update-major":"npm run test && node core/deploy.js --major --commit --publish"},"gitHead":"5481f786412687f82a44f2127990d9329a6148a4","_id":"npm-jetpack@1.2.3","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-fZrK/60AZcSwJxubOSgCa6Aa3VJmDnvx3jYDyWUdu8XVZI6F2phv7rxyT40BpvRPV14wMZsPR7J+z2OzYngSVA==","shasum":"738fd0651acb5123d2fad9d1418fc5aca76e040d","tarball":"https://registry.npmjs.org/npm-jetpack/-/npm-jetpack-1.2.3.tgz","fileCount":11,"unpackedSize":13286,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAbVIlHOZ+zPGvn3p+R+p+QdVWqrDBZYBvRBHzStiC2AiEAwVI/DOC6+Sgpe0PfsezAhHv5/tdprEFMVPU5wNuYQ6Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjrAqzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRew//eJ6QzI91JW0y+3sA+ErzR5jYVt4cyONXb1ou/cjX9XNVb8Ha\r\n9xpzc98HpIhGZGIbOEAFvr1Ct/i08eR1PsMl7x+XNpwRiECQy3OQypvAqL1K\r\n63v9HFVhEVkUh+J1yZsj7VVzDhiQO9K4jTSAqGGkrRarDgkxbynx+/+wBMnZ\r\nGta+IiT8dPIcKj17C5dACD75IW195mrBo9du7khAWjHncarifLikz7O5guAC\r\nddxLwA/g0P/Gdg80xGDLq6QMZk214G+oFMlxE79odDH8nQ/OSDpHoczFiNhG\r\nr5YPU0mgQzeVm8qfBw8vHH+g/Vl5n6UKXN1RtYFIqARAc6vtQJTx8D/BDdN9\r\nFrLNL4jO9DxwT/WGOhqLjJ5Z4SdeIgrQSMsmnQ5CqxPzJPhJuI0OseVERpdI\r\neqgTuO4Tyz2KUROhRBqIaepo1VRosprOP353N+PQQGEDTPD+8WsOU2y2dmKJ\r\n4Dhgf5pzKwgqCC2jBP41bG3kEFBc7baAt+3fS3A9y+BgpmiDEDmF308v778r\r\nGEYdvK54P3Ep2z7Sres05iGoxqIzu8tmoEnNZvpvSJyI4MUeJuM5S1HMpCdb\r\n/0XBIn52/YnuGFacznVUseexrYHpVAvnDjTeexua3lmJUdjn9JCsPLlB52cZ\r\nIHsTpJO5VcoTZO2/HiOwqi93v6KyNxtkf8U=\r\n=+b9M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"codegrimoire","email":"rchuvilev@gmail.com"},"directories":{},"maintainers":[{"name":"codegrimoire","email":"rchuvilev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-jetpack_1.2.3_1672219315784_0.7377924573716721"},"_hasShrinkwrap":false}},"maintainers":[{"name":"codegrimoire","email":"rchuvilev@gmail.com"}],"description":"NPX tool for handling npm packages versions for publishing","keywords":["npm package","npm publish","npx"],"author":{"name":"rchuvilev"},"license":"MIT","readme":"# npm-jetpack\n\n## Description\n\nThis package is dedicated to help in handling npm packages versions for publishing.\n\n## Usage overview\n\n### What does npm-jetpack do\n\n1) Takes current package.json ();\n2) Updates version according to flag / params;\n3) Saves updated package.json to dist folder (project root if dist not provided);\n4) Overwrites original ('single source of truth') package.json for future updates;\n5) Commits new changes in project and package.json updated to git (on demand via flag); \n6) Publishes package to npm (on demand via flag);\n7) ?????????\n8) PROFIT!1!!!\n\n### Options, flags and parameters\n\nOptions and their defaults:\n\n```\n{\n    distDirPath: '',\n    // relative path to final directory to be published\n    // usually it is \"build\" or \"dist\" or any other dir\n    // where author puts final package distributive for npm\n    // the tool will place updated package.json there\n    \n    packageJsonPath: 'package.json', // relative path to package.json\n    // the initial package.json file with current version of\n    // package being published (it can be root repository\n    // package.json or package.json in \"build\" or \"dist\" dir\n    // - the most important for it is to handle current version\n    // of the package published)\n    \n    versionUpdateType: 2, // 'patch'\n    // it is target version part to increment, with 0 | 1 | 2 values\n    // reflecting index of the part, 2 - 'patch', 1 - 'minor', 0 - 'major'.\n    \n    releaseSuffix: '', // no release suffix\n    // will be added to new version if provided\n    \n    gitCommit: false, // only on demand\n    // tool will run sequently 'git add .', 'git commit -m \"Version update to ${nextVersion}\"',\n    // 'git push' commands when package.json is updated\n    \n    doPublish: false, // only on demand\n    // tool will run \"npm publish\" command in the end of its work \n}\n```\n\nFlags:\n\n```\nChoose one or none (default \"--patch\" will be applied)\n    \"--patch\" - will increase 'patch' version (versionUpdateType 2)\n    \"--minor\" - will increase 'minor' version (versionUpdateType 1)\n    \"--major\" - will increase 'major' version (versionUpdateType 0)\n    \"--commit\" - will apply true to 'gitCommit' param\n    \"--publish\" - will apply true to 'doPublish' param\n```\n\nParameters:\n\n```\n    --distDirPath path/to/my/dist/dir\n    --packageJsonPath path/to/my/main/source/package.json\n    --releaseSuffix -alfa\n```\n\nYou can use this package in both \"npx\" and \"npm i -D\" approaches.\n\n### Usage as NPX\n\nCan be used in **package.json** npm scripts or via CLI:\n\n```\n    npx npm-jetpack <FLAGS_AND_PARAMETERS>\n```\n\nSample:\n\n```\n    npx npm-jetpack\n                    --major\n                    --packageJsonPath package.json\n                    --distDirPath build\n                    --releaseSuffix -pr20\n                    --commit\n                    --publish\n```\n\n### Usage as NPM\n\n```\n    npm install -D npm-jetpack\n```\nand then use it in **package.json** npm scripts like this:\n\n```\nscripts: {\n    \"update\": \"npm run test & npm-jetpack --releaseSuffix -alpha --commit --publish\",\n    \"update-minor\": \"npm run test & npm-jetpack --minor --commit --publish\",\n    \"update-major\": \"npm run test & npm-jetpack --major --commit --publish\"\n}\n```\n\nAlso it can be used in projects postbild scripts with passed options object:\n```\n    const npmJetpack = require('npm-jetpack');\n    // OR import npmJetpack from 'npm-jetpack';\n    \n    npmJetpack({\n        distDirPath: 'dist', // relative path to final directory to be published\n        packageJsonPath: 'package.json', // relative path to package.json\n        versionUpdateType: 2, // 'patch'\n        releaseSuffix: '-beta', // release suffix\n        gitCommit: true, // do not mention if won't use\n        doPublish: true, // do not mention if won't use\n    });\n```\n","readmeFilename":"README.md"}