/canadyarn

Primary LanguageTypeScriptMIT LicenseMIT

canadyarn

npm-badge license-badge jw-badge

🍁 Check specific packages to have a single resolved version in yarn.lock

Installation

  1. Install canadyarn.

    $ yarn add --dev canadyarn
  1. Add the key "checkSingleVersionDependencies" to package.json file,
    specify the names of packages to check as a string array,
    and add canadyarn as a runnable script.

    Example:

    {
        "checkSingleVersionDependencies": [
            "react",
            "react-native",
            "typescript"
        ],
        "scripts": {
            "canadyarn": "canadyarn"
        }
    }
  1. Run canadyarn.

    $ yarn run canadyarn