Skip to content
Source
Sign inSign up
TanStack/intent

perf: emit type declarations for exported entries only #325

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/325/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 2 changed files with 6 additions and 1 deletion.

x
0 of 2 viewed, 2 left
5 additions and 0 deletions.changeset/dts-exported-entries.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+​
+Stop shipping a type declaration file for the CLI entry. Nothing could import `dist/cli.d.mts`, so the installed package is 2,655 bytes smaller. The types for `@tanstack/intent` and `@tanstack/intent/core` do not change.
1 addition and 1 deletionpackages/intent/tsdown.config.tsModified
View file
@@ -8,7 +8,7 @@
entry: ['src/index.ts', 'src/cli.ts', 'src/core.ts'],
format: 'esm',
platform: 'node',
- dts: true,
+ dts: { entry: ['src/index.ts', 'src/core.ts'] },
onSuccess(config) {
const packageDir = fileURLToPath(new URL('.', import.meta.url))
const root = join(packageDir, '../..')