diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-02-05 12:56:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 12:56:33 -0500 |
commit | 63767650b5b171b4671304fd2bb2f2890431929f (patch) | |
tree | b44548d13454c9918352db1cb715963c037b675a /build/release | |
parent | 3a0ca684eb21d64a13d7591ce1891b1990e0339c (diff) | |
download | jquery-63767650b5b171b4671304fd2bb2f2890431929f.tar.gz jquery-63767650b5b171b4671304fd2bb2f2890431929f.zip |
Release: copy dist-module folder as well
Close gh-5407
Diffstat (limited to 'build/release')
-rw-r--r-- | build/release/dist.js | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/build/release/dist.js b/build/release/dist.js index e85ffd359..ad378468f 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -15,7 +15,11 @@ module.exports = function( Release, files, complete ) { const extras = [ "src", "LICENSE.txt", - "AUTHORS.txt" + "AUTHORS.txt", + "dist/package.json", + "dist-module/package.json", + "dist-module/jquery.node-module-wrapper.js", + "dist-module/jquery.node-module-wrapper.slim.js" ]; /** @@ -65,9 +69,6 @@ module.exports = function( Release, files, complete ) { * Copy necessary files over to the dist repo */ async function copy() { - - // Copy dist files - const distFolder = `${ Release.dir.dist }/dist`; const readme = await fs.readFile( `${ Release.dir.repo }/build/fixtures/README.md`, "utf8" ); const rmIgnore = [ ...files, "node_modules" ] @@ -86,14 +87,24 @@ module.exports = function( Release, files, complete ) { // Remove extraneous files before copy shell.rm( "-rf", `${ Release.dir.dist }/**/*` ); - shell.mkdir( "-p", distFolder ); + // Copy dist files + shell.mkdir( "-p", `${ Release.dir.dist }/dist` ); + shell.mkdir( "-p", `${ Release.dir.dist }/dist-module` ); files.forEach( function( file ) { - shell.cp( "-f", `${ Release.dir.repo }/${ file }`, distFolder ); + shell.cp( + "-f", + `${ Release.dir.repo }/${ file }`, + `${ Release.dir.dist }/${ file }` + ); } ); // Copy other files extras.forEach( function( file ) { - shell.cp( "-rf", `${ Release.dir.repo }/${ file }`, Release.dir.dist ); + shell.cp( + "-rf", + `${ Release.dir.repo }/${ file }`, + `${ Release.dir.dist }/${ file }` + ); } ); // Remove the wrapper & the ESLint config from the dist repo |