Open nickiaconis opened 1 year ago
You don’t really need this tool for pnpm
since pnpm
has a great internal dependencies update tool. Just call in the root:
pnpm update caniuse-lite -r
If you know how to improve our lick file detector, please send PR
I'm attempting to resolve the warning that
caniuse-lite
is out of date in a monorepo managed with rush. I'm using the commandpnpm dlx update-browserslist-db@latest
since I'm using pnpm. Individual packages are defined byrepo_root/packages/package_name/package.json
. The lockfile is global in rush managed monorepos though; it lives atrepo_root/common/config/rush/pnpm-lock.yaml
.When I attempt to run the update command in one of the package's directory (e.g.
repo_root/packages/package_A
), I receive the following error stating no lockfile can be found:When I attempt to run the update command in the location of the lockfile (or in the repository root), I receive the following error stating package.json can't be found:
How does one run
update-browserslist-db
in a monorepo environment wherepackage.json
andpnpm-lock.yaml
are stored in different locations?