]> 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 22:48:55 +0000 (17:48 -0500)
build/release.js

index b95e2b62f0d1094a5808c3024762312b257f5f35..6b22d95c0b750d2fa75241a7b274e3d100b9c1dd 100644 (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 );