generateAndLinkBundle.js 259 B

12345678910
  1. const child_process = require('child_process');
  2. const path = require('path');
  3. child_process.execSync('npm run build');
  4. child_process.execSync(
  5. `cp -R ${path.resolve(__dirname, '../dist/*')} ${path.resolve(
  6. __dirname,
  7. 'app/src/main/assets'
  8. )}`
  9. );