]> source.dussan.org Git - jquery.git/commitdiff
Release: revert change that broke release
authorTimmy Willison <timmywil@users.noreply.github.com>
Mon, 28 Aug 2023 13:30:59 +0000 (09:30 -0400)
committerTimmy Willison <timmywil@users.noreply.github.com>
Mon, 28 Aug 2023 13:31:17 +0000 (09:31 -0400)
https://github.com/jquery/jquery/commit/763ade6dda092709b36d97491951bcae415d91d1#diff-ba51b2c9ce2527b1f191cb2c210748a4f18cccc38893f7ffe1597fb1d23ce027L72

The above change did not work because makeArchives was
not made to return a Promise

build/release.js

index 08e4e17e02760f8a6265a4b2358bc0af8735fe8c..6ecc165ceecb63c567b0ee85b7c35fc107d8d401 100644 (file)
@@ -65,9 +65,10 @@ module.exports = function( Release ) {
                 * Publish to distribution repo and npm
                 * @param {Function} callback
                 */
-               dist: async callback => {
-                       await cdn.makeArchives( Release );
-                       dist( Release, distFiles, callback );
+               dist: function( callback ) {
+                       cdn.makeArchives( Release, function() {
+                               dist( Release, distFiles, callback );
+                       } );
                }
        } );
 };