fake patch on packageJson file
npm install pseudo-patchthis was a silly edge case solve and an excuse to learn something new, published here so I can easily reuse, and hey.. it might be helpful to someone else out there ¯\\\_(ツ)\_/¯
``bash`
yarn add pseudo-patch
`json`
{
"scripts": {
"pseudo-patch": "node ./node_modules/pseudo-patch"
}
}
``
npm run pseudo-patch [opts]
nothing more then increase the package.json, by default and design it will be a patch update. But I later extended it out of bordem to support --major and --minor flags should anyone out there actuall want, or need it.
`diff`
{
"name": "your-project",
- "version": "1.0.0",
+ "version": "1.0.1",
}
```
$ pseudo-patch
-s, --spacing
-p, --path
--major force increment as a major change
--minor force increment as a minor change