0.1.1 • Published 3 years ago

pnpm-wrapper v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm

pnpm wrapper

A tool to manage pnpm version for different projects.

Why?

Because developers may have different pnpm versions installed, but your project may depend on specific version.

Install

npm install --global pnpm-wrapper

Usage

Use pnpm for project

Just use pnpm-wrapper (or pnpmw) in place of pnpm. E.g., install dependencies via:

pnpm-wrapper install

Here is a list of sources to infer required pnpm version (in descending order of priority): 1. pnpm.version file; 2. engines.pnpm entry from package.json.

If version not found in all sources then latest pnpm version will be used. You can change it later in pnpm.version.

The inferred version of pnpm will be installed into the ~/.pnpm-wrapper directory, or reused if already present.

Set version for project

You can also set (or update) required pnpm version for project manually.

pnpm-wrapper use 6.13.0 # use specific version
pnpm-wrapper use ^6.0.0 # use semver range

This command will install pnpm for provided version (if not installed yet) and save that version in pnpm.version file.

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago