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 11'use strict' ;
22
3- const { spawn} = require ( 'child_process' ) ;
3+ const { spawn, spawnSync } = require ( 'child_process' ) ;
44const chalk = require ( 'chalk' ) ;
55const yargs = require ( 'yargs' ) ;
66const fs = require ( 'fs' ) ;
@@ -310,6 +310,25 @@ function main() {
310310 const args = getCommandArgs ( ) ;
311311 const envars = getEnvars ( ) ;
312312
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+
313332 // Print the full command we're actually running.
314333 console . log (
315334 chalk . dim (
You can’t perform that action at this time.
0 commit comments