File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const { spawn} = require ( 'child_process' ) ;
3
+ const { spawn, spawnSync } = require ( 'child_process' ) ;
4
4
const chalk = require ( 'chalk' ) ;
5
5
const yargs = require ( 'yargs' ) ;
6
6
const fs = require ( 'fs' ) ;
@@ -310,6 +310,25 @@ function main() {
310
310
const args = getCommandArgs ( ) ;
311
311
const envars = getEnvars ( ) ;
312
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
+
313
332
// Print the full command we're actually running.
314
333
console . log (
315
334
chalk . dim (
You can’t perform that action at this time.
0 commit comments