We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1032798 commit f711cdfCopy full SHA for f711cdf
scripts/build-types-watch.ts
@@ -1,3 +1,4 @@
1
+/* eslint-disable no-console */
2
/**
3
* If `yarn build:types:watch` is run without types files previously having been created, the build will get stuck in an
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;
30
}
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
+ };
35
36
if ('build:types' in packageJSON.scripts && !fs.existsSync(path.resolve(packagePath, 'build/types'))) {
37
console.warn(
0 commit comments