diff --git a/_artifacts/domain_map.yaml b/_artifacts/domain_map.yaml index 4abe0b7d65..a3e910ac0d 100644 --- a/_artifacts/domain_map.yaml +++ b/_artifacts/domain_map.yaml @@ -20,7 +20,7 @@ meta: scope: goals: - 'Route agents to the correct package and skill, then correct common foot-guns and misconceptions.' - - 'Use docs and examples for intended workflows, and direct exact API discovery to the installed package src directory.' + - 'Use docs and examples for intended workflows, and direct exact API discovery to installed package declarations (dist/**/*.d.ts).' - 'Teach headless rendering, feature registration, row-model ownership, framework state, and v8-to-v9 changes as foundations.' included: - 'All 17 public workspace packages.' @@ -105,11 +105,13 @@ custom_feature_depth_contract: - 'The table_/column_/row_/cell_/header_ static-name prefixes, self argument difference, optional memoDeps, and absence of per-object assign*APIs utilities.' api_discovery_policy: - rule: 'For exact exports, option types, state shapes, and instance APIs, inspect src in the installed package before inventing an API or relying on memory.' - adapter_entrypoint: 'node_modules/@tanstack/-table/src/index.ts' - core_entrypoint: 'node_modules/@tanstack/table-core/src/index.ts' - feature_source: 'node_modules/@tanstack/table-core/src/features//' - fallback: 'If source is unavailable because the package manager omitted it, inspect the matching declarations and the installed package version; do not substitute v8 or another adapter API.' + rule: 'For exact exports, option types, state shapes, and instance APIs, inspect dist declarations (.d.ts) in the installed package before inventing an API or relying on memory.' + adapter_entrypoint: 'node_modules/@tanstack/-table/dist/index.d.ts' + core_entrypoint: 'node_modules/@tanstack/table-core/dist/index.d.ts' + feature_source: 'node_modules/@tanstack/table-core/dist/features//' + ember_entrypoint: 'node_modules/@tanstack/ember-table/declarations/index.d.ts' + angular_entrypoint: 'node_modules/@tanstack/angular-table/dist/types/' + fallback: 'If declarations are unavailable, resolve the installed package root and inspect published types; do not open package src/ or substitute v8 / another adapter API.' coverage: ignored_packages: @@ -1573,7 +1575,7 @@ issue_evidence: documentation_read: narrative_docs: 'All 187 narrative Markdown documents were inventoried by title, headings, and admonitions; foundational, feature, state, migration, composable, and virtualization guides were deep-read.' - generated_references: 'All 828 generated reference documents were inventoried for exports and API categories; exact API truth is delegated to shipped src in skills.' + generated_references: 'All 828 generated reference documents were inventoried for exports and API categories; exact API truth is delegated to installed dist declarations (.d.ts) in skills.' examples: 'All 277 example directories were inventoried; basic, state, composable, Query, Virtual, feature, and Devtools-relevant examples were sampled or deep-read by skill.' source: 'All public package entrypoints, tableFeatures prerequisites, core construction/state precedence, all 14 feature implementations/defaults, createTableHook implementations, Devtools registration, and match-sorter-utils source were inspected.' community: 'Recent v9 issues plus recurring high-signal issues and GitHub discussions were reviewed for failure modes and misconceptions.' @@ -1613,7 +1615,7 @@ maintainer_interview: phase_2_summary: - 'Primary journeys are first table setup, adding a feature, v8-to-v9 migration, server-data decisions, and performance debugging.' - 'Table is headless and compatible with component libraries/design systems, but no library-specific skills are in scope.' - - 'Feature skills should be short, edge-case-first, and route exact API discovery to shipped src.' + - 'Feature skills should be short, edge-case-first, and route exact API discovery to installed dist declarations (.d.ts).' - 'Framework state guides, createTableHook, Query, and Virtual require dedicated adapter guidance where source exists.' - 'Worker row models are excluded and useLegacyTable must not be promoted.' phase_4_completed: true diff --git a/_artifacts/skill_spec.md b/_artifacts/skill_spec.md index d79320781d..6f45dd3c24 100644 --- a/_artifacts/skill_spec.md +++ b/_artifacts/skill_spec.md @@ -13,7 +13,7 @@ Generate 75 short package-local skills across all 17 public packages. A loaded s 1. Correct the user or agent mental model. 2. Show the smallest reliable setup or decision pattern. -3. Route exact API discovery to src shipped in the installed package. +3. Route exact API discovery to installed package declarations (`dist/**/*.d.ts`, Ember `declarations/**/*.d.ts`, Angular `dist/types/*.d.ts`). The skills should not enumerate every option or method. That duplicates generated reference docs, ages badly, and encourages agents to recall the wrong major version. @@ -35,20 +35,22 @@ The skills should not enumerate every option or method. That duplicates generate Use evidence in this order: -1. Installed package src for exact exports, type signatures, feature prerequisites, defaults, and instance APIs. +1. Installed package declarations (`.d.ts`) for exact exports, type signatures, feature prerequisites, defaults, and instance APIs. 2. Current v9 guides for intended mental models and supported workflows. 3. Current examples for maintained composition and rendering patterns. 4. Recent and recurring GitHub issues/discussions for silent failures and misconceptions. -Every skill that discusses APIs must tell the consuming agent how to inspect the matching installed source. Preferred routes: +Every skill that discusses APIs must tell the consuming agent how to inspect the matching installed declarations. Preferred routes: -- Adapter API: node_modules/@tanstack/FRAMEWORK-table/src/index.ts, then the exported implementation/type file. -- Core API: node_modules/@tanstack/table-core/src/index.ts. -- Stock feature API: node_modules/@tanstack/table-core/src/features/FEATURE/. -- Devtools API: node_modules/@tanstack/FRAMEWORK-table-devtools/src/index.ts or @tanstack/table-devtools/src/index.ts. -- Fuzzy ranking API: node_modules/@tanstack/match-sorter-utils/src/index.ts. +- Adapter API: node_modules/@tanstack/FRAMEWORK-table/dist/index.d.ts, then the matching exported `*.d.ts` file. +- Core API: node_modules/@tanstack/table-core/dist/index.d.ts. +- Stock feature API: node_modules/@tanstack/table-core/dist/features/FEATURE/. +- Ember API: node_modules/@tanstack/ember-table/declarations/index.d.ts (and sibling `declarations/*.d.ts`). +- Angular API: node_modules/@tanstack/angular-table/dist/types/\*.d.ts (bundled public API; do not expect `src/helpers/` under the published package). +- Devtools API: node_modules/@tanstack/FRAMEWORK-table-devtools/dist/index.d.ts or @tanstack/table-devtools/dist/index.d.ts. +- Fuzzy ranking API: node_modules/@tanstack/match-sorter-utils/dist/index.d.ts. -Do not direct agents to a GitHub main-branch source file when an installed package is available. Installed source keeps guidance aligned with the consumer package version. +Do not open package `src/` under `node_modules` (it is not published). Do not direct agents to a GitHub main-branch source file when an installed package is available. Installed declarations keep guidance aligned with the consumer package version. ## Skill writing contract @@ -75,7 +77,7 @@ Use this default structure: 2. Setup: imports and the smallest valid configuration. 3. Two to four decision or implementation patterns. 4. Common mistakes: at least three concrete failures with correction. -5. API discovery: exact installed src route and identifiers to inspect. +5. API discovery: exact installed declaration route (`.d.ts`) and identifiers to inspect. 6. Cross-skill routing only when another skill owns the next decision. Do not add a reference folder by default. Add one only when a large migration mapping or framework-specific content cannot stay concise in SKILL.md. Progressive disclosure is a size tool, not permission to recreate all docs as references. @@ -176,7 +178,7 @@ Skill versions ship with package versions. After release tooling calculates pack - table-features — explicit registration, prerequisites, row-model/function slots, tree-shaking. - client-vs-server — choose ownership for filtering/grouping/sorting/expanding/pagination. - typescript — columnHelper, meta helpers, tableOptions, inference, avoid manual generics. -- api-not-found — inspect installed src, feature gating, version/adapter mismatch, prototypes. +- api-not-found — inspect installed declarations, feature gating, version/adapter mismatch, prototypes. - custom-features — plugin lifecycle after exhausting built-in APIs and meta. - migrate-v8-to-v9 — shared breaking changes and adapter migration routing. @@ -203,7 +205,7 @@ Each feature skill must: - name only row-model and registry slots relevant to that feature; - state its tableFeatures prerequisites; - distinguish state from row processing and renderer behavior; -- route exact API discovery to its shipped feature directory; +- route exact API discovery to its shipped feature directory under `dist/features/`; - include feature-specific edge cases from domain_map.yaml. Do not combine all column layout features into one summary. Their plugin prerequisites and CSS responsibilities differ enough to route independently. @@ -346,7 +348,7 @@ All Devtools skills must emphasize the required non-empty table options.key, lif - Query: data source and manual processing boundaries, not Table rendering. - Virtual: final Table models and renderer geometry, never tableFeatures. - Context: createTableHook skills; mention context over prop drilling when a registered reusable component needs typed table/cell/header access. -- API lookup: api-not-found establishes the workflow; every other skill includes its direct installed src route. +- API lookup: api-not-found establishes the workflow; every other skill includes its direct installed declaration route. ## Anti-patterns forbidden during generation diff --git a/_artifacts/skill_tree.yaml b/_artifacts/skill_tree.yaml index 2a164bc8fd..34b6da0037 100644 --- a/_artifacts/skill_tree.yaml +++ b/_artifacts/skill_tree.yaml @@ -89,7 +89,7 @@ skills: domain: foundations path: 'packages/table-core/skills/api-not-found/SKILL.md' package: 'packages/table-core' - description: 'Diagnose missing TanStack Table exports, options, state slices, and instance methods by checking the installed package src, adapter/version mismatches, tableFeatures registration, and v9 prototype APIs before inventing replacements.' + description: 'Diagnose missing TanStack Table exports, options, state slices, and instance methods by checking the installed package declarations (dist/**/*.d.ts), adapter/version mismatches, tableFeatures registration, and v9 prototype APIs before inventing replacements.' requires: ['core', 'table-features'] sources: - 'TanStack/table:packages/table-core/src/index.ts' diff --git a/packages/alpine-table/package.json b/packages/alpine-table/package.json index eb5c1af94f..aa331482fe 100644 --- a/packages/alpine-table/package.json +++ b/packages/alpine-table/package.json @@ -22,26 +22,12 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./experimental-worker-plugin": { - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" - }, - "./flex-render": { - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" - }, - "./static-functions": { - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" - }, + ".": "./dist/index.js", + "./experimental-worker-plugin": "./dist/experimental-worker-plugin.js", + "./flex-render": "./dist/flex-render.js", + "./static-functions": "./dist/static-functions.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -50,7 +36,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/alpine-table/skills/create-table-hook/SKILL.md b/packages/alpine-table/skills/create-table-hook/SKILL.md index 4957e4a625..0da9717ba7 100644 --- a/packages/alpine-table/skills/create-table-hook/SKILL.md +++ b/packages/alpine-table/skills/create-table-hook/SKILL.md @@ -95,4 +95,4 @@ Source: TanStack/table:packages/alpine-table/src/createTable.ts ## API Discovery -Inspect `node_modules/@tanstack/alpine-table/src/createTableHook.ts`; do not infer component/context APIs from React, Vue, Solid, Svelte, Angular, or Lit adapters. +Inspect `node_modules/@tanstack/alpine-table/dist/createTableHook.d.ts`; do not infer component/context APIs from React, Vue, Solid, Svelte, Angular, or Lit adapters. diff --git a/packages/alpine-table/skills/getting-started/SKILL.md b/packages/alpine-table/skills/getting-started/SKILL.md index 5336bd87b8..07aaafb38d 100644 --- a/packages/alpine-table/skills/getting-started/SKILL.md +++ b/packages/alpine-table/skills/getting-started/SKILL.md @@ -105,4 +105,4 @@ Source: TanStack/table:docs/overview.md ## API Discovery -Inspect `node_modules/@tanstack/alpine-table/src/index.ts` and `createTable.ts`. Exact core APIs live under `node_modules/@tanstack/table-core/src/`. +Inspect `node_modules/@tanstack/alpine-table/dist/index.d.ts` and `createTable.d.ts`. Exact core APIs live under `node_modules/@tanstack/table-core/dist/`. diff --git a/packages/alpine-table/skills/table-state/SKILL.md b/packages/alpine-table/skills/table-state/SKILL.md index 8bc5239c7d..a723a3ec0d 100644 --- a/packages/alpine-table/skills/table-state/SKILL.md +++ b/packages/alpine-table/skills/table-state/SKILL.md @@ -133,4 +133,4 @@ Source: TanStack/table:docs/framework/alpine/guide/table-state.md ## API Discovery -Inspect `node_modules/@tanstack/alpine-table/src/createTable.ts` and `reactivity.ts`. Inspect `node_modules/@tanstack/table-core/src/core/table/constructTable.ts` for state precedence. +Inspect `node_modules/@tanstack/alpine-table/dist/createTable.d.ts` and `reactivity.d.ts`. Inspect `node_modules/@tanstack/table-core/dist/core/table/constructTable.d.ts` for state precedence. diff --git a/packages/alpine-table/tsdown.config.ts b/packages/alpine-table/tsdown.config.ts index 7d795b74ed..5ffe19b363 100644 --- a/packages/alpine-table/tsdown.config.ts +++ b/packages/alpine-table/tsdown.config.ts @@ -7,10 +7,10 @@ export default defineConfig({ './src/experimental-worker-plugin.ts', './src/flex-render.ts', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/angular-table-devtools/package.json b/packages/angular-table-devtools/package.json index 94ea57dc87..2001c86cda 100644 --- a/packages/angular-table-devtools/package.json +++ b/packages/angular-table-devtools/package.json @@ -42,7 +42,6 @@ }, "files": [ "dist", - "src", "skills" ], "dependencies": { diff --git a/packages/angular-table-devtools/skills/devtools/SKILL.md b/packages/angular-table-devtools/skills/devtools/SKILL.md index c6dc852b28..5c4d0cc4a1 100644 --- a/packages/angular-table-devtools/skills/devtools/SKILL.md +++ b/packages/angular-table-devtools/skills/devtools/SKILL.md @@ -84,4 +84,4 @@ Source: TanStack/table:packages/angular-table-devtools/src/index.ts ## API Discovery -Inspect `node_modules/@tanstack/angular-table-devtools/src/index.ts` and `injectTanStackTableDevtools.ts` for current injection options. +Inspect `node_modules/@tanstack/angular-table-devtools/dist/index.d.ts` and `injectTanStackTableDevtools.d.ts` for current injection options. diff --git a/packages/angular-table-devtools/tsdown.config.ts b/packages/angular-table-devtools/tsdown.config.ts index 63b0b0bd20..0230119f4e 100644 --- a/packages/angular-table-devtools/tsdown.config.ts +++ b/packages/angular-table-devtools/tsdown.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/angular-table/package.json b/packages/angular-table/package.json index 8dc8179578..1414ab219c 100644 --- a/packages/angular-table/package.json +++ b/packages/angular-table/package.json @@ -50,12 +50,11 @@ }, "files": [ "dist", - "src", "static-functions", "skills" ], "scripts": { - "build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./dist/package.json", + "build": "ng-packagr -p ng-package.json -c tsconfig.build.json && rimraf ./dist/package.json && find dist -name '*.map' -delete", "build:types": "tsc --emitDeclarationOnly", "clean": "rimraf ./build && rimraf ./dist", "test:build": "publint --strict", diff --git a/packages/angular-table/skills/create-table-hook/SKILL.md b/packages/angular-table/skills/create-table-hook/SKILL.md index dbbfa1285a..fee4b000b5 100644 --- a/packages/angular-table/skills/create-table-hook/SKILL.md +++ b/packages/angular-table/skills/create-table-hook/SKILL.md @@ -145,4 +145,4 @@ Source: `docs/framework/angular/guide/composable-tables.md` ## API Discovery -Inspect `node_modules/@tanstack/angular-table/src/helpers/createTableHook.ts`, `helpers/{table,cell,header}.ts`, and `flex-render/` for exact DI and rendering contracts. +Inspect `node_modules/@tanstack/angular-table/dist/types/` for exact DI and rendering contracts in the bundled public API. diff --git a/packages/angular-table/skills/getting-started/SKILL.md b/packages/angular-table/skills/getting-started/SKILL.md index 27413ac769..3408f69924 100644 --- a/packages/angular-table/skills/getting-started/SKILL.md +++ b/packages/angular-table/skills/getting-started/SKILL.md @@ -135,4 +135,4 @@ Source: `docs/framework/angular/guide/rendering.md` ## API Discovery -Inspect `node_modules/@tanstack/angular-table/src/index.ts`, `injectTable.ts`, `flexRender.ts`, and `flex-render/`; inspect optional feature APIs in installed `@tanstack/table-core/src/features/`. +Inspect `node_modules/@tanstack/angular-table/dist/types/` for the bundled public API; inspect optional feature APIs in installed `@tanstack/table-core/dist/features/`. diff --git a/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md b/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md index 6a8058734d..05fb851b85 100644 --- a/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/angular-table/skills/migrate-v8-to-v9/SKILL.md @@ -191,4 +191,4 @@ Use `row.getValue('name')`; prototype methods require the original instance and ## API Discovery -Inspect `node_modules/@tanstack/angular-table/src/index.ts`, `injectTable.ts`, and rendering sources. Verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/src`; do not reconstruct v9 from v8 memory. +Inspect `node_modules/@tanstack/angular-table/dist/types/` for the bundled public API; do not reconstruct v9 from v8 memory. diff --git a/packages/angular-table/skills/table-state/SKILL.md b/packages/angular-table/skills/table-state/SKILL.md index dfa3c87079..e42fc22fd7 100644 --- a/packages/angular-table/skills/table-state/SKILL.md +++ b/packages/angular-table/skills/table-state/SKILL.md @@ -194,4 +194,4 @@ Source: `docs/framework/angular/guide/table-state.md` ## API Discovery -Inspect `node_modules/@tanstack/angular-table/src/injectTable.ts` and `reactivity.ts`; inspect `@tanstack/angular-store/src` for external atoms and installed core feature source for state APIs. +Inspect `node_modules/@tanstack/angular-table/dist/types/` and `reactivity.d.ts`; inspect `@tanstack/angular-store/dist/` for external atoms and installed core feature source for state APIs. diff --git a/packages/angular-table/skills/with-tanstack-query/SKILL.md b/packages/angular-table/skills/with-tanstack-query/SKILL.md index df0e9aa9c0..e72757552b 100644 --- a/packages/angular-table/skills/with-tanstack-query/SKILL.md +++ b/packages/angular-table/skills/with-tanstack-query/SKILL.md @@ -139,4 +139,4 @@ Source: `docs/framework/angular/guide/pagination.md` ## API Discovery -Inspect installed `@tanstack/angular-table/src/injectTable.ts`, the relevant core feature source, and installed Angular Query source for the exact `injectQuery` package/version contract. +Inspect installed `@tanstack/angular-table/dist/types/`, the relevant core feature source, and installed Angular Query source for the exact `injectQuery` package/version contract. diff --git a/packages/angular-table/skills/with-tanstack-virtual/SKILL.md b/packages/angular-table/skills/with-tanstack-virtual/SKILL.md index 5ab5f9b73a..5f2b22b9a5 100644 --- a/packages/angular-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/angular-table/skills/with-tanstack-virtual/SKILL.md @@ -123,4 +123,4 @@ Source: `examples/angular/virtualized-columns/src/app/app.ts` ## API Discovery -Inspect installed `@tanstack/angular-table/src`, installed `@tanstack/angular-virtual/src`, and the maintained Angular examples for current row, column, measurement, and infinite patterns. +Inspect installed `@tanstack/angular-table/dist/types/`, installed `@tanstack/angular-virtual/dist/`, and the maintained Angular examples for current row, column, measurement, and infinite patterns. diff --git a/packages/angular-table/tsconfig.build.json b/packages/angular-table/tsconfig.build.json index 266312b0e1..fffef21c86 100644 --- a/packages/angular-table/tsconfig.build.json +++ b/packages/angular-table/tsconfig.build.json @@ -6,6 +6,7 @@ "module": "ESNext", "moduleDetection": "force", "moduleResolution": "Bundler", + "sourceMap": false, "stripInternal": true }, "angularCompilerOptions": { diff --git a/packages/ember-table/package.json b/packages/ember-table/package.json index 4003c7bd08..452cbf027f 100644 --- a/packages/ember-table/package.json +++ b/packages/ember-table/package.json @@ -53,7 +53,6 @@ "addon-main.cjs", "declarations", "dist", - "src", "skills" ], "scripts": { diff --git a/packages/ember-table/rollup.config.mjs b/packages/ember-table/rollup.config.mjs index b9c6c6de95..8478e724fc 100644 --- a/packages/ember-table/rollup.config.mjs +++ b/packages/ember-table/rollup.config.mjs @@ -15,7 +15,10 @@ const tsConfig = resolve(rootDirectory, './tsconfig.publish.json') export default { // This provides defaults that work well alongside `publicEntrypoints` below. // You can augment this if you need to. - output: addon.output(), + output: { + ...addon.output(), + sourcemap: false, + }, plugins: [ // These are the modules that users should be able to import from your diff --git a/packages/ember-table/skills/create-table-hook/SKILL.md b/packages/ember-table/skills/create-table-hook/SKILL.md index 5f6b824eb6..4960cd32e8 100644 --- a/packages/ember-table/skills/create-table-hook/SKILL.md +++ b/packages/ember-table/skills/create-table-hook/SKILL.md @@ -114,4 +114,4 @@ Use `createAppColumnHelper()`; do not thread `typeof features` through e ## API Discovery -Inspect `node_modules/@tanstack/ember-table/src/create-table-hook.ts` for the installed factory return shape, omitted options, and merge precedence. Inspect `use-table.ts` for thunk reactivity and `node_modules/@tanstack/table-core/src/features//` for the shared feature APIs. Do not infer Ember component/context behavior from another adapter's createTableHook. +Inspect `node_modules/@tanstack/ember-table/declarations/create-table-hook.d.ts` for the installed factory return shape, omitted options, and merge precedence. Inspect `use-table.d.ts` for thunk reactivity and `node_modules/@tanstack/table-core/dist/features//` for the shared feature APIs. Do not infer Ember component/context behavior from another adapter's createTableHook. diff --git a/packages/ember-table/skills/getting-started/SKILL.md b/packages/ember-table/skills/getting-started/SKILL.md index 51a253b43f..a5b9aa09bf 100644 --- a/packages/ember-table/skills/getting-started/SKILL.md +++ b/packages/ember-table/skills/getting-started/SKILL.md @@ -157,4 +157,4 @@ With `tableFeatures({})`, render `row.getAllCells()`. Add `columnVisibilityFeatu ## API Discovery -Inspect `node_modules/@tanstack/ember-table/src/index.ts` for exports, `use-table.ts` for options/reactivity behavior, `FlexRender.gts` and `flex-render.ts` for renderer contracts, and `node_modules/@tanstack/table-core/src/features//` for feature-gated APIs. Do not substitute React hooks, subscriptions, or component signatures. +Inspect `node_modules/@tanstack/ember-table/declarations/index.d.ts` for exports, `use-table.d.ts` for options/reactivity behavior, `FlexRender.d.ts` and `flex-render.d.ts` for renderer contracts, and `node_modules/@tanstack/table-core/dist/features//` for feature-gated APIs. Do not substitute React hooks, subscriptions, or component signatures. diff --git a/packages/ember-table/skills/table-state/SKILL.md b/packages/ember-table/skills/table-state/SKILL.md index f7409c8385..b2b14cb89e 100644 --- a/packages/ember-table/skills/table-state/SKILL.md +++ b/packages/ember-table/skills/table-state/SKILL.md @@ -184,4 +184,4 @@ When `atoms.pagination` owns the slice, changing `baseAtoms.pagination` does not ## API Discovery -Inspect `node_modules/@tanstack/ember-table/src/use-table.ts` for option/state precedence and the Glimmer bridge, `signal.ts` for `createAtom` behavior, and `reactivity.ts` for scheduling/tracking. Inspect the registered feature under `node_modules/@tanstack/table-core/src/features//` for its state type, update API, and reset semantics. +Inspect `node_modules/@tanstack/ember-table/declarations/use-table.d.ts` for option/state precedence and the Glimmer bridge, `signal.d.ts` for `createAtom` behavior, and `reactivity.d.ts` for scheduling/tracking. Inspect the registered feature under `node_modules/@tanstack/table-core/dist/features//` for its state type, update API, and reset semantics. diff --git a/packages/lit-table/package.json b/packages/lit-table/package.json index a793efe719..9bdc9dea79 100644 --- a/packages/lit-table/package.json +++ b/packages/lit-table/package.json @@ -22,26 +22,12 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./experimental-worker-plugin": { - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" - }, - "./flex-render": { - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" - }, - "./static-functions": { - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" - }, + ".": "./dist/index.js", + "./experimental-worker-plugin": "./dist/experimental-worker-plugin.js", + "./flex-render": "./dist/flex-render.js", + "./static-functions": "./dist/static-functions.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -50,7 +36,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/lit-table/skills/create-table-hook/SKILL.md b/packages/lit-table/skills/create-table-hook/SKILL.md index fc03cd289a..7998334684 100644 --- a/packages/lit-table/skills/create-table-hook/SKILL.md +++ b/packages/lit-table/skills/create-table-hook/SKILL.md @@ -91,4 +91,4 @@ Source: TanStack/table:examples/lit/composable-tables ## API Discovery -Inspect `node_modules/@tanstack/lit-table/src/createTableHook.ts`. Use the matching installed implementation rather than assuming JSX-adapter component APIs exist in Lit. +Inspect `node_modules/@tanstack/lit-table/dist/createTableHook.d.ts`. Use the matching installed implementation rather than assuming JSX-adapter component APIs exist in Lit. diff --git a/packages/lit-table/skills/getting-started/SKILL.md b/packages/lit-table/skills/getting-started/SKILL.md index 970aa3947f..4d904b8d69 100644 --- a/packages/lit-table/skills/getting-started/SKILL.md +++ b/packages/lit-table/skills/getting-started/SKILL.md @@ -151,4 +151,4 @@ Source: TanStack/table:docs/overview.md ## API Discovery -Inspect `node_modules/@tanstack/lit-table/src/index.ts` and the exported implementation. Core table and feature APIs are in `node_modules/@tanstack/table-core/src/`. +Inspect `node_modules/@tanstack/lit-table/dist/index.d.ts` and the exported implementation. Core table and feature APIs are in `node_modules/@tanstack/table-core/dist/`. diff --git a/packages/lit-table/skills/migrate-v8-to-v9/SKILL.md b/packages/lit-table/skills/migrate-v8-to-v9/SKILL.md index 2f79bd82a8..5e0fbac98e 100644 --- a/packages/lit-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/lit-table/skills/migrate-v8-to-v9/SKILL.md @@ -195,4 +195,4 @@ Use `row.getValue('name')`; prototype methods require the original instance and ## API Discovery -Inspect `node_modules/@tanstack/lit-table/src/index.ts` and `TableController.ts`. Verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/src`; do not reconstruct v9 from v8 memory. +Inspect `node_modules/@tanstack/lit-table/dist/index.d.ts` and `TableController.d.ts`. Verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/dist/`; do not reconstruct v9 from v8 memory. diff --git a/packages/lit-table/skills/table-state/SKILL.md b/packages/lit-table/skills/table-state/SKILL.md index 760997ef78..bf29c815df 100644 --- a/packages/lit-table/skills/table-state/SKILL.md +++ b/packages/lit-table/skills/table-state/SKILL.md @@ -152,4 +152,4 @@ Source: TanStack/table:docs/framework/lit/guide/table-state.md ## API Discovery -Inspect `node_modules/@tanstack/lit-table/src/TableController.ts`, then `node_modules/@tanstack/table-core/src/core/table/` for state precedence and updater behavior. +Inspect `node_modules/@tanstack/lit-table/dist/TableController.d.ts`, then `node_modules/@tanstack/table-core/dist/core/table/` for state precedence and updater behavior. diff --git a/packages/lit-table/skills/with-tanstack-virtual/SKILL.md b/packages/lit-table/skills/with-tanstack-virtual/SKILL.md index 27e34a510f..a0183231f3 100644 --- a/packages/lit-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/lit-table/skills/with-tanstack-virtual/SKILL.md @@ -144,4 +144,4 @@ Source: TanStack/table:docs/framework/lit/guide/virtualization.md ## API Discovery -Inspect `node_modules/@tanstack/lit-table/src/index.ts` and `node_modules/@tanstack/lit-virtual/src/`. Use maintained examples for geometry; do not register Virtual in `tableFeatures`. +Inspect `node_modules/@tanstack/lit-table/dist/index.d.ts` and `node_modules/@tanstack/lit-virtual/dist/`. Use maintained examples for geometry; do not register Virtual in `tableFeatures`. diff --git a/packages/lit-table/tsdown.config.ts b/packages/lit-table/tsdown.config.ts index 7d795b74ed..5ffe19b363 100644 --- a/packages/lit-table/tsdown.config.ts +++ b/packages/lit-table/tsdown.config.ts @@ -7,10 +7,10 @@ export default defineConfig({ './src/experimental-worker-plugin.ts', './src/flex-render.ts', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/match-sorter-utils/package.json b/packages/match-sorter-utils/package.json index 14fe55eddf..2c90df3722 100644 --- a/packages/match-sorter-utils/package.json +++ b/packages/match-sorter-utils/package.json @@ -28,14 +28,9 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, + ".": "./dist/index.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -44,7 +39,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/match-sorter-utils/skills/fuzzy-ranking/SKILL.md b/packages/match-sorter-utils/skills/fuzzy-ranking/SKILL.md index b758abe865..3fe6f82184 100644 --- a/packages/match-sorter-utils/skills/fuzzy-ranking/SKILL.md +++ b/packages/match-sorter-utils/skills/fuzzy-ranking/SKILL.md @@ -91,4 +91,4 @@ Source: TanStack/table:packages/match-sorter-utils/src/index.ts ## API Discovery -Inspect `node_modules/@tanstack/match-sorter-utils/src/index.ts` for the installed `RankItemOptions`, accessor attributes, ranking constants, and comparator behavior. For TanStack Table metadata integration, load the global-filtering and sorting skills. +Inspect `node_modules/@tanstack/match-sorter-utils/dist/index.d.ts` for the installed `RankItemOptions`, accessor attributes, ranking constants, and comparator behavior. For TanStack Table metadata integration, load the global-filtering and sorting skills. diff --git a/packages/match-sorter-utils/tsdown.config.ts b/packages/match-sorter-utils/tsdown.config.ts index 71071cb903..d4b26b4408 100644 --- a/packages/match-sorter-utils/tsdown.config.ts +++ b/packages/match-sorter-utils/tsdown.config.ts @@ -2,10 +2,10 @@ import { defineConfig } from 'tsdown' export default defineConfig({ entry: ['./src/index.ts'], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/preact-table-devtools/package.json b/packages/preact-table-devtools/package.json index bde323cba3..8d9ebed97b 100644 --- a/packages/preact-table-devtools/package.json +++ b/packages/preact-table-devtools/package.json @@ -44,8 +44,7 @@ "node": ">=20" }, "files": [ - "dist/", - "src", + "dist", "skills" ], "dependencies": { diff --git a/packages/preact-table-devtools/skills/devtools/SKILL.md b/packages/preact-table-devtools/skills/devtools/SKILL.md index ce8d0833bc..42dda31f29 100644 --- a/packages/preact-table-devtools/skills/devtools/SKILL.md +++ b/packages/preact-table-devtools/skills/devtools/SKILL.md @@ -82,4 +82,4 @@ Source: TanStack/table:packages/preact-table-devtools/src/index.ts ## API Discovery -Inspect `node_modules/@tanstack/preact-table-devtools/src/index.ts` and `useTanStackTableDevtools.ts`; do not copy React adapter imports. +Inspect `node_modules/@tanstack/preact-table-devtools/dist/index.d.ts` and `useTanStackTableDevtools.d.ts`; do not copy React adapter imports. diff --git a/packages/preact-table-devtools/tsdown.config.ts b/packages/preact-table-devtools/tsdown.config.ts index 70e438f0e0..40e8770acd 100644 --- a/packages/preact-table-devtools/tsdown.config.ts +++ b/packages/preact-table-devtools/tsdown.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/preact-table/package.json b/packages/preact-table/package.json index 80bb7d35a3..4dd272671f 100644 --- a/packages/preact-table/package.json +++ b/packages/preact-table/package.json @@ -22,26 +22,12 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./experimental-worker-plugin": { - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" - }, - "./flex-render": { - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" - }, - "./static-functions": { - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" - }, + ".": "./dist/index.js", + "./experimental-worker-plugin": "./dist/experimental-worker-plugin.js", + "./flex-render": "./dist/flex-render.js", + "./static-functions": "./dist/static-functions.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -50,7 +36,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/preact-table/skills/create-table-hook/SKILL.md b/packages/preact-table/skills/create-table-hook/SKILL.md index 7d335c8741..7dabdbe774 100644 --- a/packages/preact-table/skills/create-table-hook/SKILL.md +++ b/packages/preact-table/skills/create-table-hook/SKILL.md @@ -173,4 +173,4 @@ Source: `packages/preact-table/src/createTableHook.tsx` ## API Discovery -Inspect `node_modules/@tanstack/preact-table/src/createTableHook.tsx` and `createTableHookContexts.tsx` for exact return names, provider props, registries, and scoped context types. +Inspect `node_modules/@tanstack/preact-table/dist/createTableHook.d.ts` and `createTableHookContexts.d.ts` for exact return names, provider props, registries, and scoped context types. diff --git a/packages/preact-table/skills/getting-started/SKILL.md b/packages/preact-table/skills/getting-started/SKILL.md index 2ea1dc28b0..53567e6afd 100644 --- a/packages/preact-table/skills/getting-started/SKILL.md +++ b/packages/preact-table/skills/getting-started/SKILL.md @@ -154,4 +154,4 @@ Source: `examples/preact/basic-use-table` ## API Discovery -Inspect `node_modules/@tanstack/preact-table/src/index.ts`, then `useTable.ts`, `Subscribe.tsx`, or `FlexRender.tsx`; follow core exports into installed `@tanstack/table-core/src/`. +Inspect `node_modules/@tanstack/preact-table/dist/index.d.ts`, then `useTable.d.ts`, `Subscribe.d.ts`, or `FlexRender.d.ts`; follow core exports into installed `@tanstack/table-core/dist/`. diff --git a/packages/preact-table/skills/migrate-v8-to-v9/SKILL.md b/packages/preact-table/skills/migrate-v8-to-v9/SKILL.md index 01aadb2665..ffe381372f 100644 --- a/packages/preact-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/preact-table/skills/migrate-v8-to-v9/SKILL.md @@ -17,7 +17,7 @@ sources: - 'TanStack/table:examples/preact/basic-use-table' --- -Read `@tanstack/table-core#migrate-v8-to-v9`, `getting-started`, and `table-state`. Use this as the exhaustive Preact migration checklist. Verify exact APIs in the installed source before assuming another v9 beta has the same surface. +Read `@tanstack/table-core#migrate-v8-to-v9`, `getting-started`, and `table-state`. Use this as the exhaustive Preact migration checklist. Verify exact APIs in the installed declarations before assuming another v9 beta has the same surface. Framework prerequisite: Preact 10 or newer (`preact >=10`). @@ -190,4 +190,4 @@ All other underscore-prefixed internals are removed. `getIsSomeRowsSelected()` a ## API discovery -Inspect `node_modules/@tanstack/preact-table/src/index.ts` and `node_modules/@tanstack/table-core/src/index.ts`. Do not copy React adapter APIs merely because the v8 app used `preact/compat`. +Inspect `node_modules/@tanstack/preact-table/dist/index.d.ts` and `node_modules/@tanstack/table-core/dist/index.d.ts`. Do not copy React adapter APIs merely because the v8 app used `preact/compat`. diff --git a/packages/preact-table/skills/table-state/SKILL.md b/packages/preact-table/skills/table-state/SKILL.md index fa63b6ece3..726a4b4fcf 100644 --- a/packages/preact-table/skills/table-state/SKILL.md +++ b/packages/preact-table/skills/table-state/SKILL.md @@ -152,4 +152,4 @@ Source: `examples/preact/basic-subscribe` ## API Discovery -Inspect `node_modules/@tanstack/preact-table/src/useTable.ts` and `Subscribe.tsx`; use `@tanstack/preact-store` rather than React Store hooks. +Inspect `node_modules/@tanstack/preact-table/dist/useTable.d.ts` and `Subscribe.d.ts`; use `@tanstack/preact-store` rather than React Store hooks. diff --git a/packages/preact-table/skills/with-tanstack-query/SKILL.md b/packages/preact-table/skills/with-tanstack-query/SKILL.md index 90252464b1..a0d38c5c40 100644 --- a/packages/preact-table/skills/with-tanstack-query/SKILL.md +++ b/packages/preact-table/skills/with-tanstack-query/SKILL.md @@ -132,4 +132,4 @@ Source: `docs/framework/preact/guide/pagination.md` ## API Discovery -Inspect installed `node_modules/@tanstack/preact-table/src/index.ts` and the relevant core feature source; inspect `@tanstack/preact-query` source for exact query APIs. +Inspect installed `node_modules/@tanstack/preact-table/dist/index.d.ts` and the relevant core feature source; inspect `@tanstack/preact-query` source for exact query APIs. diff --git a/packages/preact-table/skills/with-tanstack-virtual/SKILL.md b/packages/preact-table/skills/with-tanstack-virtual/SKILL.md index 3a6f98399f..9b26ce480a 100644 --- a/packages/preact-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/preact-table/skills/with-tanstack-virtual/SKILL.md @@ -115,4 +115,4 @@ Source: `docs/framework/preact/guide/virtualization.md` ## API Discovery -Inspect `node_modules/@tanstack/preact-table/src/index.ts`. For rendering APIs, inspect installed `node_modules/@tanstack/react-virtual/src/` when using the standard `preact/compat` alias, or `node_modules/@tanstack/virtual-core/src/` for a direct integration. There is no maintained Preact-specific Virtual package or Table example; start from the Preact guide and translate the maintained React examples only through the compat setup it describes. +Inspect `node_modules/@tanstack/preact-table/dist/index.d.ts`. For rendering APIs, inspect installed `node_modules/@tanstack/react-virtual/dist/` when using the standard `preact/compat` alias, or `node_modules/@tanstack/virtual-core/dist/` for a direct integration. There is no maintained Preact-specific Virtual package or Table example; start from the Preact guide and translate the maintained React examples only through the compat setup it describes. diff --git a/packages/preact-table/tsdown.config.ts b/packages/preact-table/tsdown.config.ts index 7d795b74ed..5ffe19b363 100644 --- a/packages/preact-table/tsdown.config.ts +++ b/packages/preact-table/tsdown.config.ts @@ -7,10 +7,10 @@ export default defineConfig({ './src/experimental-worker-plugin.ts', './src/flex-render.ts', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/react-table-devtools/package.json b/packages/react-table-devtools/package.json index b879fb31f0..98f66d514f 100644 --- a/packages/react-table-devtools/package.json +++ b/packages/react-table-devtools/package.json @@ -44,8 +44,7 @@ "node": ">=20" }, "files": [ - "dist/", - "src", + "dist", "skills" ], "dependencies": { diff --git a/packages/react-table-devtools/skills/devtools/SKILL.md b/packages/react-table-devtools/skills/devtools/SKILL.md index 7c6f665cde..c39397918e 100644 --- a/packages/react-table-devtools/skills/devtools/SKILL.md +++ b/packages/react-table-devtools/skills/devtools/SKILL.md @@ -82,4 +82,4 @@ Source: TanStack/table:packages/react-table-devtools/src/index.ts ## API Discovery -Inspect `node_modules/@tanstack/react-table-devtools/src/index.ts` and `useTanStackTableDevtools.ts` for the installed lifecycle API. +Inspect `node_modules/@tanstack/react-table-devtools/dist/index.d.ts` and `useTanStackTableDevtools.d.ts` for the installed lifecycle API. diff --git a/packages/react-table-devtools/tsdown.config.ts b/packages/react-table-devtools/tsdown.config.ts index 6d52bf2e73..105896ac35 100644 --- a/packages/react-table-devtools/tsdown.config.ts +++ b/packages/react-table-devtools/tsdown.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/react-table/package.json b/packages/react-table/package.json index 9a2768a172..9b35ef7c68 100644 --- a/packages/react-table/package.json +++ b/packages/react-table/package.json @@ -22,30 +22,13 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./experimental-worker-plugin": { - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" - }, - "./flex-render": { - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" - }, - "./legacy": { - "import": "./dist/legacy.js", - "require": "./dist/legacy.cjs" - }, - "./static-functions": { - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" - }, + ".": "./dist/index.js", + "./experimental-worker-plugin": "./dist/experimental-worker-plugin.js", + "./flex-render": "./dist/flex-render.js", + "./legacy": "./dist/legacy.js", + "./static-functions": "./dist/static-functions.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -54,7 +37,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/react-table/skills/create-table-hook/SKILL.md b/packages/react-table/skills/create-table-hook/SKILL.md index 61fb3b0311..87274e072f 100644 --- a/packages/react-table/skills/create-table-hook/SKILL.md +++ b/packages/react-table/skills/create-table-hook/SKILL.md @@ -179,4 +179,4 @@ Source: `https://github.com/TanStack/table/issues/6348` ## API Discovery -Inspect `node_modules/@tanstack/react-table/src/createTableHook.tsx` and `createTableHookContexts.tsx` for the exact returned helpers, component registries, wrapper props, and scoped context types. +Inspect `node_modules/@tanstack/react-table/dist/createTableHook.d.ts` and `createTableHookContexts.d.ts` for the exact returned helpers, component registries, wrapper props, and scoped context types. diff --git a/packages/react-table/skills/getting-started/SKILL.md b/packages/react-table/skills/getting-started/SKILL.md index 00e8843c99..d871a2775e 100644 --- a/packages/react-table/skills/getting-started/SKILL.md +++ b/packages/react-table/skills/getting-started/SKILL.md @@ -168,4 +168,4 @@ Source: `docs/framework/react/guide/data.md` ## API Discovery -Inspect `node_modules/@tanstack/react-table/src/index.ts` first, then the exported `useTable.ts`, `FlexRender.tsx`, or core feature source. Use installed source so names match the consumer's exact v9 version. +Inspect `node_modules/@tanstack/react-table/dist/index.d.ts` first, then the exported `useTable.d.ts`, `FlexRender.d.ts`, or core feature source. Use installed declarations so names match the consumer's exact v9 version. diff --git a/packages/react-table/skills/migrate-v8-to-v9/SKILL.md b/packages/react-table/skills/migrate-v8-to-v9/SKILL.md index f3e17fb45d..7e8105dd04 100644 --- a/packages/react-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/react-table/skills/migrate-v8-to-v9/SKILL.md @@ -223,4 +223,4 @@ All other underscore-prefixed internals are removed. `getIsSomeRowsSelected()` a ## API discovery -Inspect `node_modules/@tanstack/react-table/src/index.ts` and `node_modules/@tanstack/table-core/src/index.ts` for the installed v9 exports and types. Inspect `src/legacy.ts` only to identify temporary bridge code that remains to be removed. +Inspect `node_modules/@tanstack/react-table/dist/index.d.ts` and `node_modules/@tanstack/table-core/dist/index.d.ts` for the installed v9 exports and types. Inspect `dist/legacy.d.ts` only to identify temporary bridge code that remains to be removed. diff --git a/packages/react-table/skills/table-state/SKILL.md b/packages/react-table/skills/table-state/SKILL.md index 36d720bbd5..41faa79c19 100644 --- a/packages/react-table/skills/table-state/SKILL.md +++ b/packages/react-table/skills/table-state/SKILL.md @@ -252,4 +252,4 @@ Source: `docs/framework/react/guide/table-state.md` ## API Discovery -Inspect `node_modules/@tanstack/react-table/src/useTable.ts` and `Subscribe.tsx`. Core atom precedence and state slices live under `node_modules/@tanstack/table-core/src/`. +Inspect `node_modules/@tanstack/react-table/dist/useTable.d.ts` and `Subscribe.d.ts`. Core atom precedence and state slices live under `node_modules/@tanstack/table-core/dist/`. diff --git a/packages/react-table/skills/with-tanstack-query/SKILL.md b/packages/react-table/skills/with-tanstack-query/SKILL.md index c6998b7e2a..687db45821 100644 --- a/packages/react-table/skills/with-tanstack-query/SKILL.md +++ b/packages/react-table/skills/with-tanstack-query/SKILL.md @@ -183,4 +183,4 @@ Source: `examples/react/with-tanstack-query` ## API Discovery -Inspect `node_modules/@tanstack/react-table/src/index.ts` and the relevant core feature source; inspect the installed `@tanstack/react-query` source for current query option types. +Inspect `node_modules/@tanstack/react-table/dist/index.d.ts` and the relevant core feature source; inspect the installed `@tanstack/react-query` source for current query option types. diff --git a/packages/react-table/skills/with-tanstack-virtual/SKILL.md b/packages/react-table/skills/with-tanstack-virtual/SKILL.md index d4d5c6b68c..d9f12583a7 100644 --- a/packages/react-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/react-table/skills/with-tanstack-virtual/SKILL.md @@ -194,4 +194,4 @@ Source: `examples/react/virtualized-rows` ## API Discovery -Inspect `node_modules/@tanstack/react-table/src/index.ts` for Table render APIs and installed `node_modules/@tanstack/react-virtual/src/` for the exact virtualizer options. Copy layout contracts from the maintained example matching rows, columns, or infinite loading. +Inspect `node_modules/@tanstack/react-table/dist/index.d.ts` for Table render APIs and installed `node_modules/@tanstack/react-virtual/dist/` for the exact virtualizer options. Copy layout contracts from the maintained example matching rows, columns, or infinite loading. diff --git a/packages/react-table/tsdown.config.ts b/packages/react-table/tsdown.config.ts index f65977c5e0..9666698715 100644 --- a/packages/react-table/tsdown.config.ts +++ b/packages/react-table/tsdown.config.ts @@ -8,10 +8,10 @@ export default defineConfig({ './src/flex-render.ts', './src/experimental-worker-plugin.ts', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/solid-table-devtools/package.json b/packages/solid-table-devtools/package.json index db2e63150f..f5d16a1f9e 100644 --- a/packages/solid-table-devtools/package.json +++ b/packages/solid-table-devtools/package.json @@ -44,8 +44,7 @@ "node": ">=20" }, "files": [ - "dist/", - "src", + "dist", "skills" ], "dependencies": { diff --git a/packages/solid-table-devtools/skills/devtools/SKILL.md b/packages/solid-table-devtools/skills/devtools/SKILL.md index 3c62072815..556304e264 100644 --- a/packages/solid-table-devtools/skills/devtools/SKILL.md +++ b/packages/solid-table-devtools/skills/devtools/SKILL.md @@ -80,4 +80,4 @@ Source: TanStack/table:packages/solid-table-devtools/src/index.ts ## API Discovery -Inspect `node_modules/@tanstack/solid-table-devtools/src/index.ts`, `useTanStackTableDevtools.ts`, and `production.ts`. +Inspect `node_modules/@tanstack/solid-table-devtools/dist/index.d.ts`, `useTanStackTableDevtools.d.ts`, and `production.d.ts`. diff --git a/packages/solid-table-devtools/tsdown.config.ts b/packages/solid-table-devtools/tsdown.config.ts index 2c20a3d553..3961607d34 100644 --- a/packages/solid-table-devtools/tsdown.config.ts +++ b/packages/solid-table-devtools/tsdown.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/solid-table/package.json b/packages/solid-table/package.json index 18f08875f7..978a375a40 100644 --- a/packages/solid-table/package.json +++ b/packages/solid-table/package.json @@ -22,28 +22,24 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", + "types": "./dist/index.d.ts", "module": "./dist/index.js", "exports": { ".": { "solid": "./dist/index.js", - "import": "./dist/index.js", - "require": "./dist/index.cjs" + "import": "./dist/index.js" }, "./static-functions": { "solid": "./dist/static-functions.js", - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" + "import": "./dist/static-functions.js" }, "./experimental-worker-plugin": { "solid": "./dist/experimental-worker-plugin.js", - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" + "import": "./dist/experimental-worker-plugin.js" }, "./flex-render": { "solid": "./dist/flex-render.js", - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" + "import": "./dist/flex-render.js" }, "./package.json": "./package.json" }, @@ -53,7 +49,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { @@ -73,6 +68,5 @@ }, "peerDependencies": { "solid-js": ">=1.3" - }, - "main": "./dist/index.cjs" + } } diff --git a/packages/solid-table/skills/create-table-hook/SKILL.md b/packages/solid-table/skills/create-table-hook/SKILL.md index a56f2660d2..05f27a2530 100644 --- a/packages/solid-table/skills/create-table-hook/SKILL.md +++ b/packages/solid-table/skills/create-table-hook/SKILL.md @@ -119,4 +119,4 @@ Source: `packages/solid-table/src/createTableHook.tsx` ## API Discovery -Inspect `node_modules/@tanstack/solid-table/src/createTableHook.tsx` for exact returned names, component binding, context providers, and reactive option merging. +Inspect `node_modules/@tanstack/solid-table/dist/createTableHook.d.ts` for exact returned names, component binding, context providers, and reactive option merging. diff --git a/packages/solid-table/skills/getting-started/SKILL.md b/packages/solid-table/skills/getting-started/SKILL.md index 7c4b3cbdd3..181bbe7f67 100644 --- a/packages/solid-table/skills/getting-started/SKILL.md +++ b/packages/solid-table/skills/getting-started/SKILL.md @@ -172,4 +172,4 @@ Source: `packages/solid-table/src/createTable.ts` ## API Discovery -Inspect `node_modules/@tanstack/solid-table/src/index.tsx`, then `createTable.ts`, `FlexRender.tsx`, and installed core feature directories. +Inspect `node_modules/@tanstack/solid-table/dist/index.d.ts`, then `createTable.d.ts`, `FlexRender.d.ts`, and installed core feature directories. diff --git a/packages/solid-table/skills/migrate-v8-to-v9/SKILL.md b/packages/solid-table/skills/migrate-v8-to-v9/SKILL.md index 651f0594bb..6089a65079 100644 --- a/packages/solid-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/solid-table/skills/migrate-v8-to-v9/SKILL.md @@ -17,7 +17,7 @@ sources: - 'TanStack/table:examples/solid/basic-use-table' --- -Read `@tanstack/table-core#migrate-v8-to-v9`, `getting-started`, and `table-state`. Use this as the exhaustive Solid migration checklist. Check the installed source before emitting APIs for another beta. +Read `@tanstack/table-core#migrate-v8-to-v9`, `getting-started`, and `table-state`. Use this as the exhaustive Solid migration checklist. Check the installed declarations before emitting APIs for another beta. Framework prerequisite: Solid 1.3 or newer (`solid-js >=1.3`). @@ -210,4 +210,4 @@ All other underscore-prefixed internals are removed. `getIsSomeRowsSelected()` a ## API discovery -Inspect `node_modules/@tanstack/solid-table/src/index.tsx` and `node_modules/@tanstack/table-core/src/index.ts`. Compare v8 names only against the migration guide, not current main-branch assumptions. +Inspect `node_modules/@tanstack/solid-table/dist/index.d.ts` and `node_modules/@tanstack/table-core/dist/index.d.ts`. Compare v8 names only against the migration guide, not current main-branch assumptions. diff --git a/packages/solid-table/skills/table-state/SKILL.md b/packages/solid-table/skills/table-state/SKILL.md index 01aaf0cd5b..3651796130 100644 --- a/packages/solid-table/skills/table-state/SKILL.md +++ b/packages/solid-table/skills/table-state/SKILL.md @@ -154,4 +154,4 @@ Source: `packages/solid-table/src/createTable.ts` ## API Discovery -Inspect `node_modules/@tanstack/solid-table/src/createTable.ts` and `reactivity.ts`; state slice definitions and atom precedence are in installed `@tanstack/table-core/src/`. +Inspect `node_modules/@tanstack/solid-table/dist/createTable.d.ts` and `reactivity.d.ts`; state slice definitions and atom precedence are in installed `@tanstack/table-core/dist/`. diff --git a/packages/solid-table/skills/with-tanstack-query/SKILL.md b/packages/solid-table/skills/with-tanstack-query/SKILL.md index 46b4058ac6..67ab9fcbd9 100644 --- a/packages/solid-table/skills/with-tanstack-query/SKILL.md +++ b/packages/solid-table/skills/with-tanstack-query/SKILL.md @@ -146,4 +146,4 @@ Source: `docs/framework/solid/guide/pagination.md` ## API Discovery -Inspect installed `node_modules/@tanstack/solid-table/src/createTable.ts` and the relevant core feature source; inspect `@tanstack/solid-query` source for reactive option shapes. +Inspect installed `node_modules/@tanstack/solid-table/dist/createTable.d.ts` and the relevant core feature source; inspect `@tanstack/solid-query` source for reactive option shapes. diff --git a/packages/solid-table/skills/with-tanstack-virtual/SKILL.md b/packages/solid-table/skills/with-tanstack-virtual/SKILL.md index ad8cd18d56..36d9bbe089 100644 --- a/packages/solid-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/solid-table/skills/with-tanstack-virtual/SKILL.md @@ -172,4 +172,4 @@ Source: `examples/solid/virtualized-rows` ## API Discovery -Inspect `node_modules/@tanstack/solid-table/src/index.tsx` and installed `node_modules/@tanstack/solid-virtual/src/`; use the maintained row, column, or infinite example for the matching CSS geometry contract. +Inspect `node_modules/@tanstack/solid-table/dist/index.d.ts` and installed `node_modules/@tanstack/solid-virtual/dist/`; use the maintained row, column, or infinite example for the matching CSS geometry contract. diff --git a/packages/solid-table/tsdown.config.ts b/packages/solid-table/tsdown.config.ts index d072c9e5f9..9143ee02c6 100644 --- a/packages/solid-table/tsdown.config.ts +++ b/packages/solid-table/tsdown.config.ts @@ -9,10 +9,10 @@ export default defineConfig({ './src/experimental-worker-plugin.ts', './src/flex-render.tsx', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/svelte-table/package.json b/packages/svelte-table/package.json index 6cb9cba29c..50717bc79d 100644 --- a/packages/svelte-table/package.json +++ b/packages/svelte-table/package.json @@ -53,7 +53,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/svelte-table/skills/create-table-hook/SKILL.md b/packages/svelte-table/skills/create-table-hook/SKILL.md index 4932abdc59..8c51d8379d 100644 --- a/packages/svelte-table/skills/create-table-hook/SKILL.md +++ b/packages/svelte-table/skills/create-table-hook/SKILL.md @@ -165,4 +165,4 @@ Source: `docs/framework/svelte/guide/composable-tables.md` ## API Discovery -Inspect `node_modules/@tanstack/svelte-table/src/createTableHook.svelte.ts` and the `App*.svelte` wrappers for exact returned helpers and component contracts. +Inspect `node_modules/@tanstack/svelte-table/dist/createTableHook.svelte.d.ts` and the `App*.svelte` wrappers for exact returned helpers and component contracts. diff --git a/packages/svelte-table/skills/getting-started/SKILL.md b/packages/svelte-table/skills/getting-started/SKILL.md index d6f3bc364f..0805bdfe52 100644 --- a/packages/svelte-table/skills/getting-started/SKILL.md +++ b/packages/svelte-table/skills/getting-started/SKILL.md @@ -169,4 +169,4 @@ Source: `docs/framework/svelte/guide/migrating.md` ## API Discovery -Inspect `node_modules/@tanstack/svelte-table/src/index.ts`, then the exported implementation. Inspect core and feature APIs through `node_modules/@tanstack/table-core/src/index.ts` and `src/features//`. +Inspect `node_modules/@tanstack/svelte-table/dist/index.d.ts`, then the exported implementation. Inspect core and feature APIs through `node_modules/@tanstack/table-core/dist/index.d.ts` and `dist/features//`. diff --git a/packages/svelte-table/skills/migrate-v8-to-v9/SKILL.md b/packages/svelte-table/skills/migrate-v8-to-v9/SKILL.md index ff70f1f742..2db7849ce7 100644 --- a/packages/svelte-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/svelte-table/skills/migrate-v8-to-v9/SKILL.md @@ -192,4 +192,4 @@ Keep calls bound to row/cell/column/header instances; shallow copies do not cont ## API Discovery -Verify the installed target in `node_modules/@tanstack/svelte-table/src/index.ts` and its adapter sources. Verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/src`; do not reconstruct v9 APIs from v8 memory. +Verify the installed target in `node_modules/@tanstack/svelte-table/dist/index.d.ts` and its adapter sources. Verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/dist/`; do not reconstruct v9 APIs from v8 memory. diff --git a/packages/svelte-table/skills/table-state/SKILL.md b/packages/svelte-table/skills/table-state/SKILL.md index 11eb1e8f87..0bd7230eac 100644 --- a/packages/svelte-table/skills/table-state/SKILL.md +++ b/packages/svelte-table/skills/table-state/SKILL.md @@ -202,4 +202,4 @@ Source: `docs/framework/svelte/guide/pagination.md` ## API Discovery -Inspect `node_modules/@tanstack/svelte-table/src/createTable.svelte.ts`, `createTableState.svelte.ts`, and `subscribe.ts`; inspect registered state slices in the matching core feature source. +Inspect `node_modules/@tanstack/svelte-table/dist/createTable.svelte.d.ts`, `createTableState.svelte.d.ts`, and `subscribe.d.ts`; inspect registered state slices in the matching core feature source. diff --git a/packages/svelte-table/skills/with-tanstack-query/SKILL.md b/packages/svelte-table/skills/with-tanstack-query/SKILL.md index ddc78f16bd..1ebfe50761 100644 --- a/packages/svelte-table/skills/with-tanstack-query/SKILL.md +++ b/packages/svelte-table/skills/with-tanstack-query/SKILL.md @@ -144,4 +144,4 @@ Source: `docs/framework/svelte/guide/pagination.md` ## API Discovery -Inspect `node_modules/@tanstack/svelte-table/src/index.ts` for adapter APIs and installed `@tanstack/svelte-query/src` for the exact Query version. Table manual-stage options live in the matching core feature source. +Inspect `node_modules/@tanstack/svelte-table/dist/index.d.ts` for adapter APIs and installed `@tanstack/svelte-query/dist/` for the exact Query version. Table manual-stage options live in the matching core feature source. diff --git a/packages/svelte-table/skills/with-tanstack-virtual/SKILL.md b/packages/svelte-table/skills/with-tanstack-virtual/SKILL.md index 89489b19d0..e3bf2a702a 100644 --- a/packages/svelte-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/svelte-table/skills/with-tanstack-virtual/SKILL.md @@ -147,4 +147,4 @@ Source: `docs/framework/svelte/guide/virtualization.md` ## API Discovery -Inspect installed `@tanstack/svelte-table/src` for Table APIs and `@tanstack/svelte-virtual/src` for the exact virtualizer options. Use the maintained Svelte examples for layout combinations. +Inspect installed `@tanstack/svelte-table/dist/` for Table APIs and `@tanstack/svelte-virtual/dist/` for the exact virtualizer options. Use the maintained Svelte examples for layout combinations. diff --git a/packages/table-core/package.json b/packages/table-core/package.json index 41ea27f990..2ebc4073a6 100644 --- a/packages/table-core/package.json +++ b/packages/table-core/package.json @@ -27,34 +27,14 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./experimental-worker-plugin": { - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" - }, - "./flex-render": { - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" - }, - "./reactivity": { - "import": "./dist/reactivity.js", - "require": "./dist/reactivity.cjs" - }, - "./static-functions": { - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" - }, - "./store-reactivity-bindings": { - "import": "./dist/store-reactivity-bindings.js", - "require": "./dist/store-reactivity-bindings.cjs" - }, + ".": "./dist/index.js", + "./experimental-worker-plugin": "./dist/experimental-worker-plugin.js", + "./flex-render": "./dist/flex-render.js", + "./reactivity": "./dist/reactivity.js", + "./static-functions": "./dist/static-functions.js", + "./store-reactivity-bindings": "./dist/store-reactivity-bindings.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -62,8 +42,7 @@ "node": ">=20" }, "files": [ - "dist/", - "src", + "dist", "skills" ], "scripts": { diff --git a/packages/table-core/skills/aggregation/SKILL.md b/packages/table-core/skills/aggregation/SKILL.md index 6202a9ae00..a4baec51ba 100644 --- a/packages/table-core/skills/aggregation/SKILL.md +++ b/packages/table-core/skills/aggregation/SKILL.md @@ -136,6 +136,6 @@ grouped results sent by the worker must be structured-cloneable. ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/row-aggregation/` and the +Inspect `node_modules/@tanstack/table-core/dist/features/row-aggregation/` and the Aggregation Guide. Use `Column_Aggregation`, `AggregationFnDef`, `AggregationContext`, and `AggregationResult` for the typed public surface. diff --git a/packages/table-core/skills/api-not-found/SKILL.md b/packages/table-core/skills/api-not-found/SKILL.md index a7abc94f62..8715a94270 100644 --- a/packages/table-core/skills/api-not-found/SKILL.md +++ b/packages/table-core/skills/api-not-found/SKILL.md @@ -24,7 +24,7 @@ const packageJson = JSON.parse( await readFile('node_modules/@tanstack/table-core/package.json', 'utf8'), ) const entrypoint = await readFile( - 'node_modules/@tanstack/table-core/src/index.ts', + 'node_modules/@tanstack/table-core/dist/index.d.ts', 'utf8', ) console.log(packageJson.version, entrypoint.includes('rowSortingFeature')) @@ -35,10 +35,10 @@ console.log(packageJson.version, entrypoint.includes('rowSortingFeature')) ### Trace an export to source ```sh -rg "export .*rowSortingFeature|rowSortingFeature" node_modules/@tanstack/table-core/src +rg "export .*rowSortingFeature|rowSortingFeature" node_modules/@tanstack/table-core/dist/ ``` -For an adapter API, start at `node_modules/@tanstack/-table/src/index.ts`. +For an adapter API, start at `node_modules/@tanstack/-table/dist/index.d.ts`. ### Check feature gating before replacement @@ -110,4 +110,4 @@ Source: `docs/framework/react/guide/migrating.md#instance-methods-must-be-called ## API Discovery -Use this order: installed `package.json` version, installed adapter `src/index.ts`, installed core `src/index.ts`, then the exported implementation or feature directory. If `src` is absent, inspect installed declarations for that exact version. +Use this order: installed `package.json` version, installed adapter `dist/index.d.ts`, installed core `dist/index.d.ts`, then the exported implementation or feature directory. Prefer `dist/**/*.d.ts` (Ember: `declarations/**/*.d.ts`; Angular: `dist/types/*.d.ts`). diff --git a/packages/table-core/skills/client-vs-server/SKILL.md b/packages/table-core/skills/client-vs-server/SKILL.md index 6f3e38e2c1..b432f03e4e 100644 --- a/packages/table-core/skills/client-vs-server/SKILL.md +++ b/packages/table-core/skills/client-vs-server/SKILL.md @@ -161,4 +161,4 @@ Source: `docs/guide/data.md` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/core/row-models/coreRowModelsFeature.utils.ts` for pipeline order and each feature's `.types.ts` for its `manual*` contract. +Inspect `node_modules/@tanstack/table-core/dist/core/row-models/coreRowModelsFeature.utils.d.ts` for pipeline order and each feature's `.types.d.ts` for its `manual*` contract. diff --git a/packages/table-core/skills/column-faceting/SKILL.md b/packages/table-core/skills/column-faceting/SKILL.md index 926f957c7c..958dca49c3 100644 --- a/packages/table-core/skills/column-faceting/SKILL.md +++ b/packages/table-core/skills/column-faceting/SKILL.md @@ -94,4 +94,4 @@ Source: `docs/framework/react/guide/column-faceting.md#custom-server-side-faceti ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-faceting/` for exact getters and factory return types. +Inspect `node_modules/@tanstack/table-core/dist/features/column-faceting/` for exact getters and factory return types. diff --git a/packages/table-core/skills/column-filtering/SKILL.md b/packages/table-core/skills/column-filtering/SKILL.md index 5e2436f5ba..eb8b06a349 100644 --- a/packages/table-core/skills/column-filtering/SKILL.md +++ b/packages/table-core/skills/column-filtering/SKILL.md @@ -84,4 +84,4 @@ Source: `packages/table-core/src/features/column-filtering/columnFilteringFeatur ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-filtering/` and `src/fns/filterFns.ts` for exact signatures and auto-remove behavior. +Inspect `node_modules/@tanstack/table-core/dist/features/column-filtering/` and `dist/features/column-filtering/filterFns.d.ts` for exact signatures and auto-remove behavior. diff --git a/packages/table-core/skills/column-ordering/SKILL.md b/packages/table-core/skills/column-ordering/SKILL.md index b3b2df5cc4..4dec89fa98 100644 --- a/packages/table-core/skills/column-ordering/SKILL.md +++ b/packages/table-core/skills/column-ordering/SKILL.md @@ -72,4 +72,4 @@ Source: `examples/react/column-dnd/src/main.tsx` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-ordering/`; combine with pinning/visibility skills when those plugins are registered. +Inspect `node_modules/@tanstack/table-core/dist/features/column-ordering/`; combine with pinning/visibility skills when those plugins are registered. diff --git a/packages/table-core/skills/column-pinning/SKILL.md b/packages/table-core/skills/column-pinning/SKILL.md index ac88e3d837..0810aef3e3 100644 --- a/packages/table-core/skills/column-pinning/SKILL.md +++ b/packages/table-core/skills/column-pinning/SKILL.md @@ -86,4 +86,4 @@ Source: `docs/framework/react/guide/column-pinning.md#useful-column-pinning-apis ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-pinning/`; use CSS logical properties for direction-aware rendering. +Inspect `node_modules/@tanstack/table-core/dist/features/column-pinning/`; use CSS logical properties for direction-aware rendering. diff --git a/packages/table-core/skills/column-resizing/SKILL.md b/packages/table-core/skills/column-resizing/SKILL.md index 06c0894bd8..a342eca7da 100644 --- a/packages/table-core/skills/column-resizing/SKILL.md +++ b/packages/table-core/skills/column-resizing/SKILL.md @@ -88,4 +88,4 @@ Source: `examples/react/column-resizing-performant/src/main.tsx` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-resizing/` and the sizing feature directory for the state it updates. +Inspect `node_modules/@tanstack/table-core/dist/features/column-resizing/` and the sizing feature directory for the state it updates. diff --git a/packages/table-core/skills/column-sizing/SKILL.md b/packages/table-core/skills/column-sizing/SKILL.md index 9cebac79bb..ef0049a6df 100644 --- a/packages/table-core/skills/column-sizing/SKILL.md +++ b/packages/table-core/skills/column-sizing/SKILL.md @@ -69,4 +69,4 @@ Source: `examples/react/column-sizing/src/main.tsx` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-sizing/` for defaults and region-aware offset signatures. +Inspect `node_modules/@tanstack/table-core/dist/features/column-sizing/` for defaults and region-aware offset signatures. diff --git a/packages/table-core/skills/column-visibility/SKILL.md b/packages/table-core/skills/column-visibility/SKILL.md index f098b541fc..d95ddc2887 100644 --- a/packages/table-core/skills/column-visibility/SKILL.md +++ b/packages/table-core/skills/column-visibility/SKILL.md @@ -72,4 +72,4 @@ Source: `packages/table-core/src/features/column-visibility/columnVisibilityFeat ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-visibility/` for visibility-aware table, row, and column APIs. +Inspect `node_modules/@tanstack/table-core/dist/features/column-visibility/` for visibility-aware table, row, and column APIs. diff --git a/packages/table-core/skills/core/SKILL.md b/packages/table-core/skills/core/SKILL.md index a843b1c4b3..e8c22a339f 100644 --- a/packages/table-core/skills/core/SKILL.md +++ b/packages/table-core/skills/core/SKILL.md @@ -172,4 +172,4 @@ Source: `docs/guide/rows.md#row-numbers-and-display-indexes`, `packages/table-co ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/index.ts`, then follow the exported implementation. For UI creation and rendering, inspect `node_modules/@tanstack/-table/src/index.ts` and load that adapter's getting-started skill. +Inspect `node_modules/@tanstack/table-core/dist/index.d.ts`, then follow the exported implementation. For UI creation and rendering, inspect `node_modules/@tanstack/-table/dist/index.d.ts` and load that adapter's getting-started skill. diff --git a/packages/table-core/skills/custom-features/SKILL.md b/packages/table-core/skills/custom-features/SKILL.md index 2ea0019e02..eb7049226d 100644 --- a/packages/table-core/skills/custom-features/SKILL.md +++ b/packages/table-core/skills/custom-features/SKILL.md @@ -232,4 +232,4 @@ export const features = tableFeatures({ densityFeature }) ## API Discovery -Inspect exported `*_FeatureMap` interfaces under `node_modules/@tanstack/table-core/src/types/`, `TableFeature` in `types/TableFeatures.ts`, and `assignTableAPIs`/`assignPrototypeAPIs` in `utils.ts`. Copy lifecycle shapes—not domain behavior—from the nearest stock feature under `src/features/`. +Inspect exported `*_FeatureMap` interfaces under `node_modules/@tanstack/table-core/dist/types/`, `TableFeature` in `types/TableFeatures.d.ts`, and `assignTableAPIs`/`assignPrototypeAPIs` in `utils.d.ts`. Copy lifecycle shapes—not domain behavior—from the nearest stock feature under `dist/features/`. diff --git a/packages/table-core/skills/expanding/SKILL.md b/packages/table-core/skills/expanding/SKILL.md index 4116004c35..a9a6842c4e 100644 --- a/packages/table-core/skills/expanding/SKILL.md +++ b/packages/table-core/skills/expanding/SKILL.md @@ -77,4 +77,4 @@ Source: `packages/table-core/src/features/row-expanding/rowExpandingFeature.type ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/row-expanding/` for expansion state, row APIs, and model placement. +Inspect `node_modules/@tanstack/table-core/dist/features/row-expanding/` for expansion state, row APIs, and model placement. diff --git a/packages/table-core/skills/global-filtering/SKILL.md b/packages/table-core/skills/global-filtering/SKILL.md index 46e31f5642..ec7ba61033 100644 --- a/packages/table-core/skills/global-filtering/SKILL.md +++ b/packages/table-core/skills/global-filtering/SKILL.md @@ -81,4 +81,4 @@ Source: `docs/framework/react/guide/global-filtering.md#manual-server-side-globa ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/global-filtering/` plus `src/features/column-filtering/` for shared state and filter functions. +Inspect `node_modules/@tanstack/table-core/dist/features/global-filtering/` plus `dist/features/column-filtering/` for shared state and filter functions. diff --git a/packages/table-core/skills/grouping/SKILL.md b/packages/table-core/skills/grouping/SKILL.md index 79c0fb9ce7..47b4648afe 100644 --- a/packages/table-core/skills/grouping/SKILL.md +++ b/packages/table-core/skills/grouping/SKILL.md @@ -93,6 +93,6 @@ Source: `examples/react/grouping/src/main.tsx` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/column-grouping/` for +Inspect `node_modules/@tanstack/table-core/dist/features/column-grouping/` for grouping. Load the `aggregation` skill when totals, multiple aggregations, grouped aggregate values, or custom definitions are part of the task. diff --git a/packages/table-core/skills/migrate-v8-to-v9/SKILL.md b/packages/table-core/skills/migrate-v8-to-v9/SKILL.md index 9c82297167..dd06540d19 100644 --- a/packages/table-core/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/table-core/skills/migrate-v8-to-v9/SKILL.md @@ -340,14 +340,14 @@ Both obscure missing feature decisions; `useLegacyTable` is deprecated and React Core concepts are shared, but reactive reads, constructors, and rendering helpers are not. Load the package-local adapter skills. -## Installed-source API discovery +## Installed API discovery Use the installed version, not main-branch memory: -1. Inspect `node_modules/@tanstack/table-core/src/index.ts` for exports. -2. Inspect `src/types/TableFeatures.ts` for valid slots and prerequisites. -3. Inspect `src/features//*.types.ts` for current options, state, and APIs. -4. Inspect the installed adapter's `src/index.ts` and its migration skill for entrypoints and rendering. -5. Inspect `src/legacy.ts` only to remove an existing bridge, never to design new v9 code. +1. Inspect `node_modules/@tanstack/table-core/dist/index.d.ts` for exports. +2. Inspect `dist/types/TableFeatures.d.ts` for valid slots and prerequisites. +3. Inspect `dist/features//*.types.d.ts` for current options, state, and APIs. +4. Inspect the installed adapter's `dist/index.d.ts` and its migration skill for entrypoints and rendering. +5. Inspect `dist/legacy.d.ts` only to remove an existing bridge, never to design new v9 code. If package-manager layout prevents that exact path, resolve the installed package root first. Do not substitute APIs from a different v9 beta. diff --git a/packages/table-core/skills/pagination/SKILL.md b/packages/table-core/skills/pagination/SKILL.md index b0ce268961..86bb131d52 100644 --- a/packages/table-core/skills/pagination/SKILL.md +++ b/packages/table-core/skills/pagination/SKILL.md @@ -75,4 +75,4 @@ Source: `docs/framework/react/guide/pagination.md#auto-reset-page-index` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/row-pagination/` for reset rules, count calculation, and navigation APIs. +Inspect `node_modules/@tanstack/table-core/dist/features/row-pagination/` for reset rules, count calculation, and navigation APIs. diff --git a/packages/table-core/skills/row-pinning/SKILL.md b/packages/table-core/skills/row-pinning/SKILL.md index d41d22629b..171189b05d 100644 --- a/packages/table-core/skills/row-pinning/SKILL.md +++ b/packages/table-core/skills/row-pinning/SKILL.md @@ -79,4 +79,4 @@ Source: `packages/table-core/src/features/row-pinning/rowPinningFeature.types.ts ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/row-pinning/` for region getters, row APIs, and `keepPinnedRows` semantics. +Inspect `node_modules/@tanstack/table-core/dist/features/row-pinning/` for region getters, row APIs, and `keepPinnedRows` semantics. diff --git a/packages/table-core/skills/row-selection/SKILL.md b/packages/table-core/skills/row-selection/SKILL.md index ccbd19d0a6..c55ceaa6ae 100644 --- a/packages/table-core/skills/row-selection/SKILL.md +++ b/packages/table-core/skills/row-selection/SKILL.md @@ -161,4 +161,4 @@ Source: `docs/framework/react/guide/row-selection.md#shift-range-selection`, `ht ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/row-selection/` for state, row-model variants, and selection enablement callbacks. +Inspect `node_modules/@tanstack/table-core/dist/features/row-selection/` for state, row-model variants, and selection enablement callbacks. diff --git a/packages/table-core/skills/sorting/SKILL.md b/packages/table-core/skills/sorting/SKILL.md index deeec64a2a..b444c848cb 100644 --- a/packages/table-core/skills/sorting/SKILL.md +++ b/packages/table-core/skills/sorting/SKILL.md @@ -83,4 +83,4 @@ Source: `packages/table-core/src/features/row-sorting/rowSortingFeature.types.ts ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/features/row-sorting/` and `src/fns/sortFns.ts` for current names and comparator contracts. +Inspect `node_modules/@tanstack/table-core/dist/features/row-sorting/` and `dist/features/row-sorting/sortFns.d.ts` for current names and comparator contracts. diff --git a/packages/table-core/skills/table-features/SKILL.md b/packages/table-core/skills/table-features/SKILL.md index a6575a98ed..64c17e53fb 100644 --- a/packages/table-core/skills/table-features/SKILL.md +++ b/packages/table-core/skills/table-features/SKILL.md @@ -156,4 +156,4 @@ Source: `packages/table-core/src/features/stockFeatures.ts` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/types/TableFeatures.ts` for current slots and `FeatureSlotPrereqs`, and `src/features/stockFeatures.ts` for the stock inventory. +Inspect `node_modules/@tanstack/table-core/dist/types/TableFeatures.d.ts` for current slots and `FeatureSlotPrereqs`, and `dist/features/stockFeatures.d.ts` for the stock inventory. diff --git a/packages/table-core/skills/typescript/SKILL.md b/packages/table-core/skills/typescript/SKILL.md index 922c816417..70a097d891 100644 --- a/packages/table-core/skills/typescript/SKILL.md +++ b/packages/table-core/skills/typescript/SKILL.md @@ -123,4 +123,4 @@ Source: `docs/guide/table-and-column-meta.md` ## API Discovery -Inspect `node_modules/@tanstack/table-core/src/helpers/` and the signatures re-exported by `src/index.ts`; avoid copying deep internal generic signatures into application code. +Inspect `node_modules/@tanstack/table-core/dist/helpers/` and the signatures re-exported by `dist/index.d.ts`; avoid copying deep internal generic signatures into application code. diff --git a/packages/table-core/tsdown.config.ts b/packages/table-core/tsdown.config.ts index a5a685cd97..de1b293eed 100644 --- a/packages/table-core/tsdown.config.ts +++ b/packages/table-core/tsdown.config.ts @@ -9,10 +9,10 @@ export default defineConfig({ './src/store-reactivity-bindings.ts', './src/experimental-worker-plugin.ts', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/table-devtools/package.json b/packages/table-devtools/package.json index fc5dbdf3ac..3e68a9499e 100644 --- a/packages/table-devtools/package.json +++ b/packages/table-devtools/package.json @@ -43,8 +43,7 @@ "node": ">=20" }, "files": [ - "dist/", - "src", + "dist", "skills" ], "dependencies": { diff --git a/packages/table-devtools/skills/devtools/SKILL.md b/packages/table-devtools/skills/devtools/SKILL.md index 0518d6875d..a3fa2cbcd6 100644 --- a/packages/table-devtools/skills/devtools/SKILL.md +++ b/packages/table-devtools/skills/devtools/SKILL.md @@ -87,4 +87,4 @@ Source: TanStack/table:docs/devtools.md ## API Discovery -Inspect `node_modules/@tanstack/table-devtools/src/index.ts`, `tableTarget.ts`, and `production.ts`. Framework registration belongs to the matching `@tanstack/-table-devtools` package. +Inspect `node_modules/@tanstack/table-devtools/dist/index.d.ts`, `tableTarget.d.ts`, and `production.d.ts`. Framework registration belongs to the matching `@tanstack/-table-devtools` package. diff --git a/packages/table-devtools/tsdown.config.ts b/packages/table-devtools/tsdown.config.ts index 2c20a3d553..3961607d34 100644 --- a/packages/table-devtools/tsdown.config.ts +++ b/packages/table-devtools/tsdown.config.ts @@ -7,7 +7,7 @@ export default defineConfig({ format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/vue-table-devtools/package.json b/packages/vue-table-devtools/package.json index 4163d1a082..30cb9cb76f 100644 --- a/packages/vue-table-devtools/package.json +++ b/packages/vue-table-devtools/package.json @@ -33,18 +33,10 @@ "build": "tsdown" }, "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./production": { - "import": "./dist/production.js", - "require": "./dist/production.cjs" - }, + ".": "./dist/index.js", + "./production": "./dist/production.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -52,8 +44,7 @@ "node": ">=20" }, "files": [ - "dist/", - "src", + "dist", "skills" ], "dependencies": { diff --git a/packages/vue-table-devtools/skills/devtools/SKILL.md b/packages/vue-table-devtools/skills/devtools/SKILL.md index dbae415d78..3787219765 100644 --- a/packages/vue-table-devtools/skills/devtools/SKILL.md +++ b/packages/vue-table-devtools/skills/devtools/SKILL.md @@ -78,4 +78,4 @@ Source: TanStack/table:packages/vue-table-devtools/src/index.ts ## API Discovery -Inspect `node_modules/@tanstack/vue-table-devtools/src/index.ts` and `useTanStackTableDevtools.ts` for current ref handling. +Inspect `node_modules/@tanstack/vue-table-devtools/dist/index.d.ts` and `useTanStackTableDevtools.d.ts` for current ref handling. diff --git a/packages/vue-table-devtools/tsdown.config.ts b/packages/vue-table-devtools/tsdown.config.ts index fd0188f439..f925fcb99d 100644 --- a/packages/vue-table-devtools/tsdown.config.ts +++ b/packages/vue-table-devtools/tsdown.config.ts @@ -2,10 +2,10 @@ import { defineConfig } from 'tsdown' export default defineConfig({ entry: ['./src/index.ts', './src/production.ts'], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/packages/vue-table/package.json b/packages/vue-table/package.json index a71b7cbd7f..e97f204e7c 100644 --- a/packages/vue-table/package.json +++ b/packages/vue-table/package.json @@ -22,26 +22,12 @@ "tanstack-intent" ], "type": "module", - "types": "./dist/index.d.cts", - "main": "./dist/index.cjs", - "module": "./dist/index.js", + "types": "./dist/index.d.ts", "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs" - }, - "./experimental-worker-plugin": { - "import": "./dist/experimental-worker-plugin.js", - "require": "./dist/experimental-worker-plugin.cjs" - }, - "./flex-render": { - "import": "./dist/flex-render.js", - "require": "./dist/flex-render.cjs" - }, - "./static-functions": { - "import": "./dist/static-functions.js", - "require": "./dist/static-functions.cjs" - }, + ".": "./dist/index.js", + "./experimental-worker-plugin": "./dist/experimental-worker-plugin.js", + "./flex-render": "./dist/flex-render.js", + "./static-functions": "./dist/static-functions.js", "./package.json": "./package.json" }, "sideEffects": false, @@ -50,7 +36,6 @@ }, "files": [ "dist", - "src", "skills" ], "scripts": { diff --git a/packages/vue-table/skills/create-table-hook/SKILL.md b/packages/vue-table/skills/create-table-hook/SKILL.md index 8c16693e9d..ec23e76a0a 100644 --- a/packages/vue-table/skills/create-table-hook/SKILL.md +++ b/packages/vue-table/skills/create-table-hook/SKILL.md @@ -143,4 +143,4 @@ Source: `packages/vue-table/src/useTable.ts` ## API Discovery -Inspect `node_modules/@tanstack/vue-table/src/createTableHook.ts` for the returned helpers, wrapper props, registry types, and context contracts. +Inspect `node_modules/@tanstack/vue-table/dist/createTableHook.d.ts` for the returned helpers, wrapper props, registry types, and context contracts. diff --git a/packages/vue-table/skills/getting-started/SKILL.md b/packages/vue-table/skills/getting-started/SKILL.md index dc0e0bb35b..2789fef0d6 100644 --- a/packages/vue-table/skills/getting-started/SKILL.md +++ b/packages/vue-table/skills/getting-started/SKILL.md @@ -141,4 +141,4 @@ Source: `examples/vue/basic-use-table/src/App.tsx` ## API Discovery -Inspect `node_modules/@tanstack/vue-table/src/index.ts`, then `useTable.ts` and `FlexRender.ts`. Inspect core feature APIs in `node_modules/@tanstack/table-core/src/features//`. +Inspect `node_modules/@tanstack/vue-table/dist/index.d.ts`, then `useTable.d.ts` and `FlexRender.d.ts`. Inspect core feature APIs in `node_modules/@tanstack/table-core/dist/features//`. diff --git a/packages/vue-table/skills/migrate-v8-to-v9/SKILL.md b/packages/vue-table/skills/migrate-v8-to-v9/SKILL.md index 3d34f2823e..48e360efe6 100644 --- a/packages/vue-table/skills/migrate-v8-to-v9/SKILL.md +++ b/packages/vue-table/skills/migrate-v8-to-v9/SKILL.md @@ -182,4 +182,4 @@ For `table.Subscribe`, use `children={(atoms) => ...}` explicitly. ## API Discovery -Inspect `node_modules/@tanstack/vue-table/src/index.ts` and `useTable.ts`; verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/src`. Do not reconstruct v9 from v8 memory. +Inspect `node_modules/@tanstack/vue-table/dist/index.d.ts` and `useTable.d.ts`; verify feature slots and exact beta APIs in `node_modules/@tanstack/table-core/dist/`. Do not reconstruct v9 from v8 memory. diff --git a/packages/vue-table/skills/table-state/SKILL.md b/packages/vue-table/skills/table-state/SKILL.md index e1485a05be..8abbb1d8b6 100644 --- a/packages/vue-table/skills/table-state/SKILL.md +++ b/packages/vue-table/skills/table-state/SKILL.md @@ -188,4 +188,4 @@ Source: `packages/vue-table/src/useTable.ts` ## API Discovery -Inspect `node_modules/@tanstack/vue-table/src/useTable.ts` and `reactivity.ts`; inspect the exact state slice in the installed core feature directory. +Inspect `node_modules/@tanstack/vue-table/dist/useTable.d.ts` and `reactivity.d.ts`; inspect the exact state slice in the installed core feature directory. diff --git a/packages/vue-table/skills/with-tanstack-query/SKILL.md b/packages/vue-table/skills/with-tanstack-query/SKILL.md index 52268a9381..9da7fb0400 100644 --- a/packages/vue-table/skills/with-tanstack-query/SKILL.md +++ b/packages/vue-table/skills/with-tanstack-query/SKILL.md @@ -124,4 +124,4 @@ Source: `docs/framework/vue/guide/pagination.md` ## API Discovery -Inspect installed `@tanstack/vue-table/src/useTable.ts`, installed `@tanstack/vue-query/src`, and the relevant manual Table feature source for exact option types. +Inspect installed `@tanstack/vue-table/dist/useTable.d.ts`, installed `@tanstack/vue-query/dist/`, and the relevant manual Table feature source for exact option types. diff --git a/packages/vue-table/skills/with-tanstack-virtual/SKILL.md b/packages/vue-table/skills/with-tanstack-virtual/SKILL.md index aa579d71f3..1d43ea589e 100644 --- a/packages/vue-table/skills/with-tanstack-virtual/SKILL.md +++ b/packages/vue-table/skills/with-tanstack-virtual/SKILL.md @@ -113,4 +113,4 @@ Source: `examples/vue/virtualized-columns/src/App.vue` ## API Discovery -Inspect installed `@tanstack/vue-table/src` and `@tanstack/vue-virtual/src`; use the maintained Vue examples for exact row, column, and infinite layout combinations. +Inspect installed `@tanstack/vue-table/dist/` and `@tanstack/vue-virtual/dist/`; use the maintained Vue examples for exact row, column, and infinite layout combinations. diff --git a/packages/vue-table/tsdown.config.ts b/packages/vue-table/tsdown.config.ts index 7d795b74ed..5ffe19b363 100644 --- a/packages/vue-table/tsdown.config.ts +++ b/packages/vue-table/tsdown.config.ts @@ -7,10 +7,10 @@ export default defineConfig({ './src/experimental-worker-plugin.ts', './src/flex-render.ts', ], - format: ['esm', 'cjs'], + format: ['esm'], unbundle: true, dts: true, - sourcemap: true, + sourcemap: false, clean: true, minify: false, fixedExtension: false, diff --git a/scripts/rewrite-table-core-dts.mjs b/scripts/rewrite-table-core-dts.mjs index b338f61251..1d8846d39b 100644 --- a/scripts/rewrite-table-core-dts.mjs +++ b/scripts/rewrite-table-core-dts.mjs @@ -20,7 +20,7 @@ function walkDeclarationFiles(dir) { continue } - if (path.endsWith('.d.ts') || path.endsWith('.d.cts')) { + if (path.endsWith('.d.ts')) { files.push(path) } } @@ -184,8 +184,7 @@ function rewriteInternalImportSpecifiers(source) { } function getImportPath(fromFile, typeName) { - const runtimeExtension = fromFile.endsWith('.d.cts') ? '.cjs' : '.js' - const target = join(distDir, 'types', `${typeName}${runtimeExtension}`) + const target = join(distDir, 'types', `${typeName}.js`) let importPath = relative(dirname(fromFile), target).replaceAll('\\', '/') if (!importPath.startsWith('.')) { @@ -255,19 +254,11 @@ function ensureNamedImport(source, name, importPath) { function ensurePublicTypeImports(source, file) { let next = source - if ( - !file.endsWith('/types/Table.d.ts') && - !file.endsWith('/types/Table.d.cts') && - /\bTable