Make WordPress Core

Ticket #64900: 64900.diff

File 64900.diff, 498 bytes (added by ekla, 2 months ago)

This patch replaces the deprecated --update-db command in the browserslist:update Grunt task with update-browserslist-db@latest. Tested by running npx grunt browserslist:update, which executed successfully.

  • Gruntfile.js

    diff --git a/Gruntfile.js b/Gruntfile.js
    index d6b33d391e..1c4bcca395 100644
    a b module.exports = function(grunt) { 
    22212221
    22222222        grunt.registerTask( 'browserslist:update', 'Update the local database of browser supports', function() {
    22232223                grunt.log.writeln( `Updating browsers list` );
    2224                 spawn( 'npx', [ 'browserslist@latest', '--update-db' ], {
     2224                spawn( 'npx', [ 'update-browserslist-db@latest' ], {
    22252225                        cwd: __dirname,
    22262226                        stdio: 'inherit',
    22272227                } );