Skip to content

Commit

Permalink
Fix missing typings in /es folder (mui#8887)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends authored and the-noob committed Nov 17, 2017
1 parent 50d6022 commit 05fcb1c
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 05fcb1c

Please sign in to comment.