Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 699 Bytes

README.md

File metadata and controls

44 lines (36 loc) · 699 Bytes

ensure-resolutions

Syncs yarn's resolutions versions with dependencies and devDependencies.
Useful for keeping yarn's resolutions up to date without using yarn upgrade.

// package.json
{
  "dependencies": {
    "react": "^16.8.2"
  },
  "resolutions": {
    "react": "16.2.0" // Will update React to dependencies version "16.8.2"
  }
}

Installation

Speeds up subsequent runs with npx

using yarn

yarn add -D ensure-resolutions  

using npm

npm i --dev ensure-resolutions  

Usage

package.json

{
  "name": "my-package",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "preinstall": "npx ensure-resolutions"
  }
}