Release: remove the need to install grunt globally

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

View File

@ -47,10 +47,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 );