Skip to content

Commit

Permalink
Cleanup previous shims directories before re-copying (#18447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Mar 31, 2020
1 parent 4de3a60 commit 153b5c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/rollup/packaging.js
Expand Up @@ -80,13 +80,15 @@ function getBundleOutputPaths(bundleType, filename, packageName) {
}

async function copyWWWShims() {
await asyncRimRaf('build/facebook-www/shims');
await asyncCopyTo(
`${__dirname}/shims/facebook-www`,
'build/facebook-www/shims'
);
}

async function copyRNShims() {
await asyncRimRaf('build/react-native/shims');
await Promise.all([
// React Native
asyncCopyTo(`${__dirname}/shims/react-native`, 'build/react-native/shims'),
Expand Down

0 comments on commit 153b5c3

Please sign in to comment.