We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b9131 commit ede48c4Copy full SHA for ede48c4
scripts/jest/jest-cli.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-const {spawn} = require('child_process');
+const {spawn, spawnSync} = require('child_process');
4
const chalk = require('chalk');
5
const yargs = require('yargs');
6
const fs = require('fs');
@@ -310,6 +310,25 @@ function main() {
310
const args = getCommandArgs();
311
const envars = getEnvars();
312
313
+ if (argv.project === 'devtools') {
314
+ console.log(
315
+ chalk.blue(
316
+ `\nInstalling Yarn dependencies for nested react-devtools-extensions package ...`
317
+ )
318
+ );
319
+
320
+ spawnSync('yarn install', {
321
+ stdio: 'inherit',
322
+ cwd: path.join(
323
+ __dirname,
324
+ '..',
325
326
+ 'packages',
327
+ 'react-devtools-extensions'
328
+ ),
329
+ });
330
+ }
331
332
// Print the full command we're actually running.
333
console.log(
334
chalk.dim(
0 commit comments