Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/workshq/ensure-resolutions
Updates package.json resolutions used by yarn
https://github.com/workshq/ensure-resolutions
dependencies nodejs resolutions yarn
Last synced: about 1 month ago
JSON representation
Updates package.json resolutions used by yarn
- Host: GitHub
- URL: https://github.com/workshq/ensure-resolutions
- Owner: workshq
- License: mit
- Created: 2020-03-02T19:01:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T07:36:50.000Z (over 2 years ago)
- Last Synced: 2025-01-06T19:27:15.914Z (about 2 months ago)
- Topics: dependencies, nodejs, resolutions, yarn
- Language: JavaScript
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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**
```json
{
"name": "my-package",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"preinstall": "npx ensure-resolutions"
}
}
```