Skip to content

Commit

Permalink
build: delete umd.js from the final package (#3431)
Browse files Browse the repository at this point in the history
This file is not necessary and breaks closure compiler.
  • Loading branch information
IgorMinar authored and benlesh committed Mar 14, 2018
1 parent 80d05af commit 3ed75d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .make-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ if (fs.existsSync(UMD_ROOT)) {
addLicenseTextToFile(license, UMD_PKG + 'rxjs.umd.min.js');
}

// remove umd.js/umd.d.ts files that are only needed for creation of the umd bundle
fs.removeSync(CJS_PKG + '/internal/umd.js');
fs.removeSync(CJS_PKG + '/internal/umd.js.map');
fs.removeSync(ESM5_PKG + '/internal/umd.js');
fs.removeSync(ESM5_PKG + '/internal/umd.js.map');
fs.removeSync(ESM2015_PKG + '/internal/umd.js');
fs.removeSync(ESM2015_PKG + '/internal/umd.js.map');
fs.removeSync(TYPE_PKG + '/internal/umd.d.ts');

function copySources(rootDir, packageDir, ignoreMissing) {
// If we are ignoring missing directories, early return when source doesn't exist
if (!fs.existsSync(rootDir)) {
Expand Down

0 comments on commit 3ed75d5

Please sign in to comment.