Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/e5mode/yarn-up-all

Yarn 2 (Berry) plugin to upgrade all dependencies using one simple command
https://github.com/e5mode/yarn-up-all

dependency javascript js module node nodejs npm up-all yarn yarn-2 yarn-berry yarn-plugin yarn-upgrade yarn2 yarnberry yarnpkg

Last synced: 3 months ago
JSON representation

Yarn 2 (Berry) plugin to upgrade all dependencies using one simple command

Awesome Lists containing this project

README

        

# yarn-up-all

![GitHub package.json version](https://img.shields.io/github/package-json/v/e5mode/yarn-up-all)
![GitHub](https://img.shields.io/github/license/e5mode/yarn-up-all)
![GitHub Releases](https://img.shields.io/github/downloads/e5mode/yarn-up-all/1.1.0/total)

## Description

This is a Yarn 2 (berry) plugin that will update all dependencies of a project with one simple command.

## Scripts

### `yarn build`

Creates a minified version of the `yarn-up-all` plugin and places it in the `./build` folder.

## Installation

Make sure that you have Yarn 2 installed before using this plugin. You can install Yarn 2 by running the following command in your terminal:

```Bash
yarn set version berry
```

In order to install the plugin, you can run the following command in your terminal:

```Bash
yarn plugin import https://github.com/e5mode/yarn-up-all/releases/download/1.1.0/index.js
```

### Usage

To update all dependencies (including `devDependencies`), run:

```Bash
yarn up-all
```

To exclude a single dependency, run:
```Bash
yarn up-all --exclude package
```

Alternatively, you can use the shorter command:
```Bash
yarn up-all -e package
```

To exclude multiple dependencies:
```Bash
yarn up-all --exclude "package1 package2"
```

### Options

| Option | Description |
|-------------|--------------------------------------------------|
| `--exclude` | Exclude one or more packages from being upgraded |
| `-e` | Shorthand version of `--exclude` |