yarn-add-no-save

1.0.3 • Public • Published

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.

Package Sidebar

Install

npm i yarn-add-no-save

Weekly Downloads

2,941

Version

1.0.3

License

MIT

Unpacked Size

13.4 kB

Total Files

9

Last publish

Collaborators

  • darionco