@alwatr/yarn-upgrade
v1.0.19
Published
A zero-dependency CLI tool to automate common Yarn maintenance tasks. This utility streamlines the process of upgrading dependencies, fixing version inconsistencies, and ensuring your project is up-to-date with a single command.
Maintainers
Readme
@alwatr/yarn-upgrade
A zero-dependency CLI tool to automate common Yarn maintenance tasks. This utility streamlines the process of upgrading dependencies, fixing version inconsistencies, and ensuring your project is up-to-date with a single command.
It is designed to be run in any Yarn project without requiring any pre-installed dependencies like syncpack, as they are bundled with this tool.
Features
- Updates Yarn to the latest version.
- Provides an interactive interface to upgrade main dependencies.
- Recursively upgrades all packages, including scoped ones.
- Lints and fixes package version inconsistencies using its internal
syncpackdependency. - Deduplicates entries in the
yarn.lockfile. - Updates Yarn's SDKs for IDEs like VS Code.
- Organize package.json files according to a conventional format.
Usage
Navigate to the root directory of your Yarn project and run the following command:
yarn dlx @alwatr/yarn-upgradeAlternatively, you can use npx:
npx @alwatr/yarn-upgradeLocal Installation
yarn add -D @alwatr/yarn-upgradeNow you can run the tool using:
yarn updExecution Steps
The script will execute the following sequence of commands on your project:
yarn set version latestyarn upgrade-interactiveyarn up "@*/*" "*" --recursiveyarn dlx @yarnpkg/sdks vscodeyarn dedupeyarn syncpack formatyarn syncpack fixyarn syncpack lint --sort count
Contributing
We welcome contributions to improve this package! Feel free to open bug reports, suggest new features, or submit pull requests following our contribution guidelines.
Sponsors
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
