Skip to content

Commit 1318ccc

Browse files
committed
core package name fixes
1 parent 489709d commit 1318ccc

4 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/libraries/libraries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const table: LibrarySlim = {
130130
scarfId: 'dc8b39e1-3fe9-4f3a-8e56-d4e2cf420a9e',
131131
ogImage: 'https://github.com/tanstack/table/raw/main/media/repo-header.png',
132132
defaultDocs: 'introduction',
133-
corePackageName: 'table-core',
133+
corePackageName: '@tanstack/table-core',
134134
legacyPackages: ['react-table'],
135135
}
136136

src/libraries/table.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const tableProject = {
1414
bgRadial: 'from-cyan-500 via-blue-600/50 to-transparent',
1515
textColor: 'text-blue-600',
1616
defaultDocs: 'introduction',
17-
corePackageName: 'table-core',
1817
legacyPackages: ['react-table'],
1918
handleRedirects: (href: string) => {
2019
handleRedirects(

src/routes/$libraryId/$version.docs.framework.index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ function getPackageName(
2020
): string {
2121
if (frameworkValue === 'vanilla') {
2222
// For vanilla, use corePackageName if provided, otherwise just libraryId
23-
const coreName = library.corePackageName || libraryId
24-
return `@tanstack/${coreName}`
23+
return library.corePackageName ?? `@tanstack/${libraryId}`
2524
}
2625
// Special case: Angular Query uses experimental package
2726
if (frameworkValue === 'angular' && libraryId === 'query') {

src/utils/npm-packages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export function getLibraryMainPackage(library: LibrarySlim): string {
112112

113113
// Use corePackageName if specified (e.g., table-core)
114114
if (library.corePackageName) {
115-
return `@tanstack/${library.corePackageName}`
115+
return library.corePackageName
116116
}
117117

118118
return `@tanstack/${library.id}`

0 commit comments

Comments
 (0)