4

GitHub - camsong/yarn-duplicate: A small tool to help you check package duplicat...

 2 years ago
source link: https://github.com/camsong/yarn-duplicate
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Yarn Duplicate

A small tool to help you check duplicate package and package size in yarn.lock.

Usage

  1. Change to your project root folder, which have a yarn.lock file.
  2. 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:


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK