Skip to content

Commit 9a4d980

Browse files
authored
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
1 parent 1b74660 commit 9a4d980

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

build/release.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ var fs = require( "fs" );
33
module.exports = function( Release ) {
44

55
var
6-
files = [
6+
distFiles = [
77
"dist/jquery.js",
88
"dist/jquery.min.js",
99
"dist/jquery.min.map",
1010
"dist/jquery.slim.js",
1111
"dist/jquery.slim.min.js",
12-
"dist/jquery.slim.min.map",
12+
"dist/jquery.slim.min.map"
13+
],
14+
filesToCommit = [
15+
...distFiles,
1316
"src/core.js"
1417
],
1518
cdn = require( "./release/cdn" ),
@@ -46,7 +49,7 @@ module.exports = function( Release ) {
4649
);
4750
cdn.makeReleaseCopies( Release );
4851
Release._setSrcVersion();
49-
callback( files );
52+
callback( filesToCommit );
5053
},
5154

5255
/**
@@ -67,7 +70,7 @@ module.exports = function( Release ) {
6770
*/
6871
dist: function( callback ) {
6972
cdn.makeArchives( Release, function() {
70-
dist( Release, files, callback );
73+
dist( Release, distFiles, callback );
7174
} );
7275
}
7376
} );

0 commit comments

Comments
 (0)