Skip to content

Commit f79aba8

Browse files
thomasballingerConvex, Inc.
authored andcommitted
Ignore *.tsbuildinfo files (#30878)
TypeScript 5.6 more often creates one of these, ignore *.tsbuildinfo files in the convex directory when bundling. GitOrigin-RevId: e791ad2603fef3371e6b319a83f575d1e95f239d
1 parent e8340f8 commit f79aba8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

npm-packages/convex/src/bundler/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,9 @@ export async function entryPoints(
370370
);
371371
}
372372

373+
// Instead of choosing only .ts, .js, etc. we ignore files specifically
374+
// so we can add support for them in the future.
375+
// This should match isEntryPoint in the convex eslint plugin.
373376
if (relPath.startsWith("_generated" + path.sep)) {
374377
logVerbose(ctx, chalk.yellow(`Skipping ${fpath}`));
375378
} else if (base.startsWith(".")) {
@@ -387,8 +390,6 @@ export async function entryPoints(
387390
ctx,
388391
chalk.yellow(`Skipping ${fpath} that contains multiple dots`),
389392
);
390-
} else if (base === "tsconfig.json") {
391-
logVerbose(ctx, chalk.yellow(`Skipping ${fpath}`));
392393
} else if (relPath.endsWith(".config.js")) {
393394
logVerbose(ctx, chalk.yellow(`Skipping ${fpath}`));
394395
} else if (relPath.includes(" ")) {
@@ -398,6 +399,8 @@ export async function entryPoints(
398399
);
399400
} else if (base.endsWith(".d.ts")) {
400401
logVerbose(ctx, chalk.yellow(`Skipping ${fpath} declaration file`));
402+
} else if (base.endsWith(".tsbuildinfo")) {
403+
logVerbose(ctx, chalk.yellow(`Skipping ${fpath} tsbuildinfo file`));
401404
} else if (base.endsWith(".json")) {
402405
logVerbose(ctx, chalk.yellow(`Skipping ${fpath} json file`));
403406
} else if (base.endsWith(".jsonl")) {

0 commit comments

Comments
 (0)