Skip to content

Commit f552381

Browse files
committed
Build Tools: Replace deprecated browserslist --update-db command.
Replaces the deprecated `--update-db` command in the `browserslist:update` Grunt task with `update-browserslist-db@latest`. Props ekla, sergeybiryukov, masteradhoc. Fixes #64900. git-svn-id: https://develop.svn.wordpress.org/trunk@62570 602fd350-edb4-49c9-b593-d223f7449a82
1 parent cdf2433 commit f552381

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,7 +2370,7 @@ module.exports = function(grunt) {
23702370

23712371
grunt.registerTask( 'browserslist:update', 'Update the local database of browser supports', function() {
23722372
grunt.log.writeln( `Updating browsers list` );
2373-
spawn( 'npx', [ 'browserslist@latest', '--update-db' ], {
2373+
spawn( 'npx', [ 'update-browserslist-db@latest' ], {
23742374
cwd: __dirname,
23752375
stdio: 'inherit',
23762376
} );

0 commit comments

Comments
 (0)