Open bramus opened 2 months ago
Alternative: have the tool, when locally installed, try and update the databases all by itself. That way a new version doesn’t need to be released.
I quickly knocked something up in #11 to tackle this.
Open questions regarding the implementation:
package.json
as a result), will a successive npm i -g @bramus/caniuse-cli
work?yarn
?npm
and invoking things like npm.commands.view
doesn’t seem like a viable option, as it’d only work with NPM.Open questions regarding when to trigger this:
caniuse
was invoked?
/cc @tunetheweb
Some more things I found:
execSync('yarnpkg --version', { stdio: 'ignore' })
to detect if yarn is present or not..tgz
instead of going through the npm install …
route.
Use GitHub actions for this – https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule