browserslist / update-db

CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
https://browsersl.ist/
MIT License
286 stars 57 forks source link

pnpm info instead of npm show #13

Closed Hyzual closed 1 year ago

Hyzual commented 1 year ago

Fix browserslist/update-db#12

I tried to run cli.js on our pnpm repository and it succeeded, so it seems the fix does the job 🙌.

$ node ../contrib/browserslist-update-db/cli.js 
Latest version:     1.0.30001416
Updating caniuse-lite version
$ pnpm up caniuse-lite
caniuse-lite has been successfully updated

No target browser changes

The unit tests succeeded when run on my machine, I'm not sure how to add another one for the new condition though. If you have any advice for that, I'm keen to hear it. You probably already know that but the tests also produced a lot of warnings like the following. It looks like it is a transitive dependency:

npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
ai commented 1 year ago

Thanks.

The warning is coming from old lock files. There are no reasons to change them.

ai commented 1 year ago

Released in 1.0.10.