JSPM

yarn-plugin-ignore-add-options

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q13444F
  • License MIT

Yarn Plugin to ignore invalid CLI options for `add` command. Based on Tobias Høegh's plugin for the `install` command.

Package Exports

  • yarn-plugin-ignore-add-options

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yarn-plugin-ignore-add-options) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Ignore Add Options

This Yarn Plugin helps you to ignore legacy flags from Yarn v1 – while you add dependencies with Yarn v3 – without braking the initial command.

This way, CIs which by default run e.g. yarn add --non-interactive --ignore-workspace-root-check --audit – will still work., as it becomes yarn add.

Based on Tobias Høegh's plugin-ignore-install-options.

Requirements

  • Yarn v3 or higher.
  • Node.js 14.17.6 or higher.

How to use?

  1. Run one of these commands:

yarn add -D yarn-plugin-ignore-add-options

or

yarn plugin import https://raw.githubusercontent.com/rewardops/plugin-ignore-add-options/main/index.js

  1. and git commit the new generated file inside /plugins.