Skip to content

Commit

Permalink
chore(build): Copy compat bundle output into package (#4091)
Browse files Browse the repository at this point in the history
Previously the bundles were left behind in `dist-compat` but never copied into `dist-compat/package` prior to publish. This ensures the bundles are part of the compat release.
  • Loading branch information
wbinnssmith authored and benlesh committed Sep 7, 2018
1 parent af7b619 commit c1c66d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .make-compat-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const ROOT = 'dist-compat/';
const CJS_ROOT = ROOT + 'cjs/compat/';
const ESM5_ROOT = ROOT + 'esm5/compat/';
const ESM2015_ROOT = ROOT + 'esm2015/compat/';
const GLOBAL_ROOT = ROOT + 'global/';
const TYPE_ROOT = ROOT + 'typings/compat/';
const PKG_ROOT = ROOT + 'package/';
const CJS_PKG = PKG_ROOT + '';
Expand All @@ -43,5 +44,7 @@ copySources(ESM5_ROOT, ESM5_PKG, true);
cleanSourceMapRoot(ESM5_PKG, SRC_ROOT_PKG);
copySources(ESM2015_ROOT, ESM2015_PKG, true);
cleanSourceMapRoot(ESM2015_PKG, SRC_ROOT_PKG);
copySources(GLOBAL_ROOT, UMD_PKG, true);
cleanSourceMapRoot(UMD_PKG, SRC_ROOT_PKG);

fs.copySync('compat/package.json', PKG_ROOT + '/package.json');

0 comments on commit c1c66d2

Please sign in to comment.