We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caad915 commit 84b16afCopy full SHA for 84b16af
1 file changed
scripts/verify-dts-imports.ts
@@ -12,6 +12,13 @@ const errors: Array<{ file: string; line: number; text: string }> = []
12
13
const files = await glob(['packages/*/build/**/*.d.ts', 'packages/*/build/**/*.d.cts'])
14
15
+if (files.length === 0) {
16
+ console.error(
17
+ 'ERROR: No declaration files found under packages/*/build. Ensure the build step produced .d.ts outputs before verification.',
18
+ )
19
+ process.exit(1)
20
+}
21
+
22
for (const file of files) {
23
const content = readFileSync(file, 'utf-8')
24
const lines = content.split('\n')
0 commit comments