Skip to content

Commit 1c97751

Browse files
authored
fix(test): missing .d.cts files (#397)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Ensures type definition files are correctly processed during the build. > > - Extends vite-to-core import rewrite to also cover `*.d.cts` files alongside `*.js`, `*.mjs`, `*.cjs`, and `*.d.ts` in `packages/test/build.ts` > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 927d5a9. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 094af5b commit 1c97751

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/test/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,8 @@ async function bundleVitest() {
401401
file.endsWith('.js') ||
402402
file.endsWith('.mjs') ||
403403
file.endsWith('.cjs') ||
404-
file.endsWith('.d.ts')
404+
file.endsWith('.d.ts') ||
405+
file.endsWith('.d.cts')
405406
) {
406407
let content = await readFile(file, 'utf-8');
407408
content = content

0 commit comments

Comments
 (0)