()
| 151 | } |
| 152 | |
| 153 | async function buildAndTestInlinePackage() { |
| 154 | const inlinePackagePath = join( |
| 155 | ROOT_PATH, |
| 156 | 'packages', |
| 157 | 'react-devtools-inline' |
| 158 | ); |
| 159 | const inlinePackageDest = join(inlinePackagePath, 'dist'); |
| 160 | |
| 161 | await exec(`rm -rf ${inlinePackageDest}`); |
| 162 | const buildPromise = exec('yarn build', {cwd: inlinePackagePath}); |
| 163 | |
| 164 | await logger( |
| 165 | buildPromise, |
| 166 | `Building ${chalk.bold('react-devtools-inline')} package.`, |
| 167 | { |
| 168 | estimate: 10000, |
| 169 | } |
| 170 | ); |
| 171 | |
| 172 | const shellPackagePath = join(ROOT_PATH, 'packages', 'react-devtools-shell'); |
| 173 | |
| 174 | console.log(''); |
| 175 | console.log(`Built ${chalk.bold('react-devtools-inline')} target.`); |
| 176 | console.log(''); |
| 177 | console.log('Test this build before continuing:'); |
| 178 | console.log(` ${chalk.bold.green('cd ' + shellPackagePath)}`); |
| 179 | console.log(` ${chalk.bold.green('yarn start')}`); |
| 180 | |
| 181 | await confirmContinue(); |
| 182 | } |
| 183 | |
| 184 | async function downloadLatestReactBuild() { |
| 185 | const releaseScriptPath = join(ROOT_PATH, 'scripts', 'release'); |
no test coverage detected