This Yarn plugin extends the interactive upgrade command to allow filtering by workspace names.
- Clone this repository:
git clone https://github.com/alexisloiselle/yarn-plugin-upgrade-interactive-filter.git
cd yarn-plugin-upgrade-interactive-filter- Install dependencies:
yarn install- Build the plugin:
yarn build- Install the plugin in your target project:
yarn plugin import /path/to/yarn-plugin-upgrade-interactive-filter/bundles/@yarnpkg/plugin-upgrade-interactive-filter.jsThe plugin adds a command: yarn upgrade-interactive-filter <WORKSPACE_NAMES> command:
# Upgrade dependencies only for specific workspaces
yarn upgrade-interactive-filter ts-scripts
# You can also use multiple workspace names
yarn upgrade-interactive-filter ts-scripts gql-genThe plugin adds the command upgrade-interactive-filter and:
- For each workspace provided, it identifies matching workspaces in the project
- For each filtered workspace, it runs
yarn upgrade-interactivein that workspace's directory - When no workspace filter is provided, it fails
To work on this plugin:
- Clone the repository
- Install dependencies:
yarn install - Make your changes in the
sources/directory - Build the plugin:
yarn build - Test in a target project by importing the built plugin