Skip to content
Permalink
Browse files
Build: Stop copying src/core.js to dist on release
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

(cherry picked from commit 9a4d980)
  • Loading branch information
mgol committed Oct 4, 2019
1 parent d7e13f1 commit 279d2e979ebb26d846036e0b02fd6070a013ed3b
Showing 1 changed file with 7 additions and 4 deletions.
@@ -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" ),
@@ -55,7 +58,7 @@ module.exports = function( Release ) {
);
cdn.makeReleaseCopies( Release );
Release._setSrcVersion();
callback( files );
callback( filesToCommit );
},

/**
@@ -76,7 +79,7 @@ module.exports = function( Release ) {
*/
dist: function( callback ) {
cdn.makeArchives( Release, function() {
dist( Release, files, callback );
dist( Release, distFiles, callback );
} );
}
} );

0 comments on commit 279d2e9

Please sign in to comment.