yarn-duplicate
yarn-duplicate copied to clipboard
A small tool to help you check package duplicates in `yarn.lock`
Yarn Duplicate
A small tool to help you check duplicate package and package size in yarn.lock
.
Usage
- Change to your project root folder, which have a
yarn.lock
file. -
npx yarn-duplicate
That's all!
PS: If you don't have npx
installed, use:
npm install -g yarn-duplicate
yarn-duplicate
Caveats
Only support Yarn V1.x right now.
Showcase
Run duplicate check under redux source code
Meaning of columns:
-
name
: name of the npm package -
duplicates
: times of the package duplicates -
sizeInBrowser-KB
: package size in bowser by KB.
If there're no duplicate packages, the result would be: