]> source.dussan.org Git - jquery.git/commitdiff
Release: remove the need to install grunt globally
authorTimmy Willison <4timmywil@gmail.com>
Mon, 1 Mar 2021 22:48:55 +0000 (17:48 -0500)
committerTimmy Willison <4timmywil@gmail.com>
Mon, 1 Mar 2021 23:16:04 +0000 (18:16 -0500)
build/release.js

index 0fea98711d7b464e1a4b12e79dd7481238a70cbd..e7399c968aea277188be84b80091505fe423faa3 100644 (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 );