| 1 | 'use strict'; |
| 2 | |
| 3 | const {join} = require('path'); |
| 4 | |
| 5 | async function build(reactPath, asyncCopyTo) { |
| 6 | // copy the UMD bundles |
| 7 | await asyncCopyTo( |
| 8 | join(reactPath, 'build', 'dist', 'react.production.js'), |
| 9 | join(__dirname, 'react.production.js') |
| 10 | ); |
| 11 | await asyncCopyTo( |
| 12 | join(reactPath, 'build', 'dist', 'react-dom.production.js'), |
| 13 | join(__dirname, 'react-dom.production.js') |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | module.exports = build; |