Skip to content

Instantly share code, notes, and snippets.

@jluyau
jluyau / lockCheck.js
Last active June 20, 2024 18:58
This script will report packages under the react-spectrum (v3) umbrella which have multiple versions in a project repo by looking at either the package-lock.json or yarn.lock file. Any packages that are reported by this script should be fixed to only have 1 imported version so that react-spectrum works correctly in the project repo.
/*
* This script will report packages under the react-spectrum (v3) umbrella which have multiple versions in a project repo
* by looking at either the package-lock.json or yarn.lock file. Any packages that are reported by this script should be
* fixed to only have 1 imported version so that react-spectrum works correctly in the project repo.
*
* To run this script, temporarily copy it to the root directory of your project and run with node:
* `node lockCheck.js`
*
* Please feel free to report any errors/issues.
*/