Release: remove the need to install grunt globally

This commit is contained in:
Timmy Willison 2021-03-01 17:48:55 -05:00
parent 8606ce4292
commit aed59da0c9
No known key found for this signature in database
GPG Key ID: B1D1D9907F95E829

View File

@ -51,10 +51,10 @@ module.exports = function( Release ) {
* @param {Function} callback
*/
generateArtifacts: function( callback ) {
Release.exec( "grunt", "Grunt command failed" );
Release.exec( "npx grunt", "Grunt command failed" );
Release.exec(
"grunt custom:slim --filename=jquery.slim.js && " +
"grunt remove_map_comment --filename=jquery.slim.js",
"npx grunt custom:slim --filename=jquery.slim.js && " +
"npx grunt remove_map_comment --filename=jquery.slim.js",
"Grunt custom failed"
);
cdn.makeReleaseCopies( Release );