vicary
vicary3w ago

How to locate a deep dependency?

I have a Fresh project with some NPM dependencies. One day the following warning pops up every time the server starts:
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
The following command doesn't work because update-browserslist-db assumes a package.json.
$ deno run npm:update-browserslist-db@latest

update-browserslist-db: Cannot find package.json. Is this the right directory to run `npx update-browserslist-db` in?
$ deno run npm:update-browserslist-db@latest

update-browserslist-db: Cannot find package.json. Is this the right directory to run `npx update-browserslist-db` in?
Next thing I could try is upgrading the relevant module in my deno.json, how to I find the module depending on browserslist down their dependency tree?
2 Replies
nicolaefilat
nicolaefilat3w ago
I guess you can find it in deno.lock although that might be painful
vicary
vicaryOP3w ago
Yes, it works! Turns out it's tailwindcss from Fresh.