Skip to content

v2.2.1

Latest
Compare
Choose a tag to compare
@micalevisk micalevisk released this 22 Mar 03:01
· 11 commits to master since this release

Now we have the prepare entry on package.json, which allow this Git repository to be used as a dependency. More on this here.

How to replace minimist with minimist-lite in transitive dependencies

with NPM v8+

You will use the Git URLs as dependencies feature. Note that this requires git

  1. add this entry in your package.json:
"overrides": {
  "minimist": "git+https://github.com/meszaros-lajos-gyorgy/minimist-lite#semver:^2.2.1"
}
  1. rm -f package-lock.json
  2. npm install
  3. Check out the result: grep name node_modules/minimist/package.json. Should show minimist-lite instead
with Yarn v1

You will use the resolutions feature along with the npm protocol.

  1. add this entry in your package.json:
"resolutions": {
  "minimist": "npm:minimist-lite@^2.2.1"
}
  1. yarn install
  2. Check out the result: grep name node_modules/minimist/package.json. Should show minimist-lite instead