Skip to content

Commit

Permalink
Fix missing typings in /es folder (#8887)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends authored and oliviertassinari committed Oct 28, 2017
1 parent 979e289 commit 7347e68
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/copy-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ const files = ['README.md', 'CHANGELOG.md', 'LICENSE'];

Promise.all(files.map(file => copyFile(file)))
.then(() => createPackageFile())
.then(() => copyTypings(path.resolve(__dirname, '../src'), path.resolve(__dirname, '../build')));
.then(() => {
const from = path.resolve(__dirname, '../src');
return Promise.all([
copyTypings(from, path.resolve(__dirname, '../build')),
copyTypings(from, path.resolve(__dirname, '../build/es')),
]);
});

// Copy original implementation files for flow.
flowCopySource(['src'], 'build', { verbose: true, ignore: '**/*.spec.js' });

0 comments on commit 7347e68

Please sign in to comment.