File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1+ /* eslint-disable no-console */
12/**
23 * If `yarn build:types:watch` is run without types files previously having been created, the build will get stuck in an
34 * errored state. This happens because lerna runs all of the packages' `yarn build:types:watch` statements in parallel,
@@ -28,7 +29,9 @@ for (const pkg of packages) {
2829 continue ;
2930 }
3031
31- const packageJSON = JSON . parse ( fs . readFileSync ( path . resolve ( packagePath , 'package.json' ) , 'utf-8' ) ) ;
32+ const packageJSON = JSON . parse ( fs . readFileSync ( path . resolve ( packagePath , 'package.json' ) , 'utf-8' ) ) as {
33+ scripts : Record < string , string > ;
34+ } ;
3235
3336 if ( 'build:types' in packageJSON . scripts && ! fs . existsSync ( path . resolve ( packagePath , 'build/types' ) ) ) {
3437 console . warn (
You can’t perform that action at this time.
0 commit comments