yan
yarn-add-no-save
npm i yarn-add-no-save
yan

yarn-add-no-save

Implements the much requested feature of installing packages without saving them with yarn.

by Dario Segura

1.0.3 (see all)License:MITTypeScript:Not Found
npm i yarn-add-no-save
Readme

yarn-add-no-save

Implements the much requested feature of installing packages without saving them with yarn.

This package is intended to be used when testing packages that declare peerDependencies with yarn link but it can be used in many environments/situations.

NOTE: I am fully aware of the irony, but this package has actually proven useful to me more than once.

Getting started

Project Install

Add the module to your project:

$ yarn add yarn-add-no-save --dev

Run from the command line:

$ yarn add-no-save rollup es-lint@0.6.1

Run from a script in your package.json:

{
  ...
  "scripts": {
    "peer": "add-no-save --peer-deps"
  },
  ...
}

Usage and available options can be found at:

$ yarn add-no-save --help

Global Install

Add the module globally:

$ yarn global add yarn-add-no-save

Run from the root folder of your project:

$ yarn-add-no-save rollup es-lint@0.6.1 --peer-deps

Usage and available options can be found at:

$ yarn-add-no-save --help

Usage

Usage: yarn-add-no-save [packages] [flags]

  Options:

    --peer-deps, -p          Automatically installs peer dependencies listed in the package.json file
    --peer-version <string|path>     Used with --peer-deps: How to define which version of a package to install.
                     Either 'first', 'last', 'latest' or a path to a package.json from which the
                     version will be inferred. Default: latest
    --help, -h               Displays help information (this message).
    --version, -v            Displays the version of this utility.

  NOTE: All unrecognized options are forwarded to the `yarn add` command.
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate