Skip to content

Commit f711cdf

Browse files
committed
fix linting errors in build:types:watch script
1 parent 1032798 commit f711cdf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/build-types-watch.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
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(

0 commit comments

Comments
 (0)