aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-10-04 16:13:14 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-10-04 16:13:58 +0200
commit279d2e979ebb26d846036e0b02fd6070a013ed3b (patch)
tree940a3be2f3e468139a8a7e1f04ec174abe92d86b
parentd7e13f128a4965f5d2bf510dc2314faa266f9dd7 (diff)
downloadjquery-279d2e979ebb26d846036e0b02fd6070a013ed3b.tar.gz
jquery-279d2e979ebb26d846036e0b02fd6070a013ed3b.zip
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 9a4d980639dd804ad320685a25b8ff4572e3f595)
-rw-r--r--build/release.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/build/release.js b/build/release.js
index de6ab0c06..a3b5fc2ba 100644
--- a/build/release.js
+++ b/build/release.js
@@ -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 );
} );
}
} );