text: /**
   * Copyright (c) Microsoft Corporation.
   * Licensed under the MIT License.
   *
   * @format
   * @ts-check
   */
  
  const path = require('path');
  const {cleanTask, copyTask, series, task, tscTask} = require('just-scripts');
  
  // Use the shared base configuration
  require('@rnw-scripts/just-task');
  
  const rnTesterPath = path.dirname(
    require.resolve('@react-native/tester/package.json'),
  );
  
  task(
    'build',
    series(
      cleanTask(['js']),
      copyTask({paths: ['src/js'], dest: 'js'}),
      tscTask(),
      copyTask({paths: [path.join(rnTesterPath, 'js')], dest: 'js'}),
    ),
  );
  