update-browserslist-db
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -31,3 +31,3 @@ let childProcess = require('child_process') | ||
'Cannot find package.json. ' + | ||
'Is this the right directory to run `npx browserslist --update-db` in?' | ||
'Is this the right directory to run `npx update-browserslist-db` in?' | ||
) | ||
@@ -76,4 +76,5 @@ } | ||
function getBrowsersList() { | ||
return childProcess | ||
.execSync('npx browserslist') | ||
let spawn = childProcess.spawnSync('npx', ['browserslist']) | ||
if (spawn.status !== 0) throw new Error(spawn.stderr.toString()) | ||
return spawn.stdout | ||
.toString() | ||
@@ -315,3 +316,3 @@ .trim() | ||
'\n' + | ||
browsersListRetrievalError.stack + | ||
browsersListRetrievalError.message + | ||
'\n\n' + | ||
@@ -318,0 +319,0 @@ 'Problem with browser list retrieval.\n' + |
{ | ||
"name": "update-browserslist-db", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "CLI tool to update caniuse-lite to refresh target browsers from Browserslist config", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12888
341