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 */
1
2
/**
2
3
* If `yarn build:types:watch` is run without types files previously having been created, the build will get stuck in an
3
4
* 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) {
28
29
continue ;
29
30
}
30
31
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
+ } ;
32
35
33
36
if ( 'build:types' in packageJSON . scripts && ! fs . existsSync ( path . resolve ( packagePath , 'build/types' ) ) ) {
34
37
console . warn (
You can’t perform that action at this time.
0 commit comments