JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q39266F
  • License ISC

fake patch on packageJson file

Package Exports

  • pseudo-patch
  • pseudo-patch/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pseudo-patch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pseudo-patch npm version

this 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 ¯\_(ツ)_/¯

Install

yarn add pseudo-patch
{
  "scripts": {
    "pseudo-patch": "node ./node_modules/pseudo-patch"
  }
}

Usage

npm run pseudo-patch [opts]

What it does

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.

 {
  "name": "your-project",
-  "version": "1.0.0",
+  "version": "1.0.1",
 }

Options

$ pseudo-patch
    -s, --spacing <number>        Preferred JSON file indent spaces (defaults to 2)
    -p, --path <string>           path to package.json (if not <projectRoot>/package.json)
    --major                       force increment as a major change
    --minor                       force increment as a minor change