]> source.dussan.org Git - jquery.git/commitdiff
Build: Stop copying src/core.js to dist on release
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Fri, 4 Oct 2019 14:13:14 +0000 (16:13 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2019 14:13:14 +0000 (16:13 +0200)
File `src/core.js` has started erroneously being copied to `dist/` in gh-2981.

Fixes gh-4489
Closes gh-4492
Ref gh-2979
Ref gh-2981

build/release.js

index bb7b13103c1be2a09b97c159c1f8ad98864532ca..f666bf1160ee0c87d2cf0bf8ecafb70e01269d87 100644 (file)
@@ -3,13 +3,16 @@ var fs = require( "fs" );
 module.exports = function( Release ) {
 
        var
-               files = [
+               distFiles = [
                        "dist/jquery.js",
                        "dist/jquery.min.js",
                        "dist/jquery.min.map",
                        "dist/jquery.slim.js",
                        "dist/jquery.slim.min.js",
-                       "dist/jquery.slim.min.map",
+                       "dist/jquery.slim.min.map"
+               ],
+               filesToCommit = [
+                       ...distFiles,
                        "src/core.js"
                ],
                cdn = require( "./release/cdn" ),
@@ -46,7 +49,7 @@ module.exports = function( Release ) {
                        );
                        cdn.makeReleaseCopies( Release );
                        Release._setSrcVersion();
-                       callback( files );
+                       callback( filesToCommit );
                },
 
                /**
@@ -67,7 +70,7 @@ module.exports = function( Release ) {
                 */
                dist: function( callback ) {
                        cdn.makeArchives( Release, function() {
-                               dist( Release, files, callback );
+                               dist( Release, distFiles, callback );
                        } );
                }
        } );