diff --git a/.make-packages.js b/.make-packages.js index 26ddcedf9a..1bb0c3029b 100644 --- a/.make-packages.js +++ b/.make-packages.js @@ -1,6 +1,8 @@ var pkg = require('./package.json'); var fs = require('fs'); +delete pkg.scripts; + var cjsPkg = pkg; var es6Pkg = pkg; @@ -15,4 +17,9 @@ es6Pkg.main = 'Rx.js'; es6Pkg.typings = 'Rx.d.ts'; fs.writeFileSync('dist/cjs/package.json', JSON.stringify(cjsPkg, null, 2)); -fs.writeFileSync('dist/es6/package.json', JSON.stringify(es6Pkg, null, 2)); \ No newline at end of file +fs.writeFileSync('dist/cjs/LICENSE.txt', fs.readFileSync('./LICENSE.txt').toString()); +fs.writeFileSync('dist/cjs/README.md', fs.readFileSync('./README.md').toString()); + +fs.writeFileSync('dist/es6/package.json', JSON.stringify(es6Pkg, null, 2)); +fs.writeFileSync('dist/es6/LICENSE.txt', fs.readFileSync('./LICENSE.txt').toString()); +fs.writeFileSync('dist/es6/README.md', fs.readFileSync('./README.md').toString());