@@ -15,7 +15,11 @@ module.exports = function( Release, files, complete ) {
1515 const extras = [
1616 "src" ,
1717 "LICENSE.txt" ,
18- "AUTHORS.txt"
18+ "AUTHORS.txt" ,
19+ "dist/package.json" ,
20+ "dist-module/package.json" ,
21+ "dist-module/jquery.node-module-wrapper.js" ,
22+ "dist-module/jquery.node-module-wrapper.slim.js"
1923 ] ;
2024
2125 /**
@@ -65,9 +69,6 @@ module.exports = function( Release, files, complete ) {
6569 * Copy necessary files over to the dist repo
6670 */
6771 async function copy ( ) {
68-
69- // Copy dist files
70- const distFolder = `${ Release . dir . dist } /dist` ;
7172 const readme = await fs . readFile (
7273 `${ Release . dir . repo } /build/fixtures/README.md` , "utf8" ) ;
7374 const rmIgnore = [ ...files , "node_modules" ]
@@ -86,14 +87,24 @@ module.exports = function( Release, files, complete ) {
8687 // Remove extraneous files before copy
8788 shell . rm ( "-rf" , `${ Release . dir . dist } /**/*` ) ;
8889
89- shell . mkdir ( "-p" , distFolder ) ;
90+ // Copy dist files
91+ shell . mkdir ( "-p" , `${ Release . dir . dist } /dist` ) ;
92+ shell . mkdir ( "-p" , `${ Release . dir . dist } /dist-module` ) ;
9093 files . forEach ( function ( file ) {
91- shell . cp ( "-f" , `${ Release . dir . repo } /${ file } ` , distFolder ) ;
94+ shell . cp (
95+ "-f" ,
96+ `${ Release . dir . repo } /${ file } ` ,
97+ `${ Release . dir . dist } /${ file } `
98+ ) ;
9299 } ) ;
93100
94101 // Copy other files
95102 extras . forEach ( function ( file ) {
96- shell . cp ( "-rf" , `${ Release . dir . repo } /${ file } ` , Release . dir . dist ) ;
103+ shell . cp (
104+ "-rf" ,
105+ `${ Release . dir . repo } /${ file } ` ,
106+ `${ Release . dir . dist } /${ file } `
107+ ) ;
97108 } ) ;
98109
99110 // Remove the wrapper & the ESLint config from the dist repo
0 commit comments