one-package-manager-enforcer

1.0.5 • Public • Published

Why

When many developers are working on the same project each of them can use the different package manager ( npm, yarn or bower ), but using multi-lock files can make some small issues. To prevent it I created this package.

Requirements

Available npx ( execute npm package binaries - default tool in latest npm ) Run it with preinstall hook. We support only npm and yarn ( by default we support npm )

Example

Example for yarn

"scripts": {
  "preinstall": "REQUIRED=yarn npx one-package-manager-enforcer"
  ...
}

Example for npm

"scripts": {
  "preinstall": "npx one-package-manager-enforcer"
  ...
}

Package Sidebar

Install

npm i one-package-manager-enforcer

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

3.88 kB

Total Files

4

Last publish

Collaborators

  • sztadii