Skip to content

Commit 762a65a

Browse files
committed
build: fix d.ts files source check in build
If we have a d.ts without a .js it was erroring before.
1 parent 6915ec5 commit 762a65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default function(_: {}, logger: Logger) {
184184
}
185185

186186
// Skip sources.
187-
if (fileName.endsWith('.ts')) {
187+
if (fileName.endsWith('.ts') && !fileName.endsWith('.d.ts')) {
188188
// Verify that it was actually built.
189189
if (!fs.existsSync(path.join(pkg.dist, fileName).replace(/ts$/, 'js'))) {
190190
subSubLogger.error(`\nSource found but compiled file not found: "${fileName}".`);

0 commit comments

Comments
 (0)