Skip to content

Commit f194769

Browse files
committed
fix: removing code-router for sentry
1 parent b12f2c7 commit f194769

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

frameworks/react-cra/add-ons/sentry/info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"phase": "setup",
44
"description": "Add Sentry for error monitoring, tracing, and session replays (requires Start).",
55
"link": "https://sentry.com/",
6-
"modes": ["file-router", "code-router"],
6+
"modes": ["file-router"],
77
"type": "add-on",
88
"routes": [
99
{

frameworks/react-cra/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ export function createFrameworkDefinition(): FrameworkDefinition {
3434
supportedModes: {
3535
'code-router': {
3636
displayName: 'Code Router',
37-
description: 'TanStack Router using code to define the routes',
37+
description: 'TanStack Router using code to define routes',
3838
forceTypescript: false,
3939
},
4040
'file-router': {
4141
displayName: 'File Router',
42-
description: 'TanStack Router using files to define the routes',
42+
description: 'TanStack Router using files to define routes',
4343
forceTypescript: true,
4444
},
4545
},

packages/cta-cli/src/mcp.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
createApp,
1212
createDefaultEnvironment,
1313
finalizeAddOns,
14-
getFrameworkById,
1514
getFrameworkByName,
1615
getFrameworks,
1716
} from '@tanstack/cta-engine'
@@ -29,14 +28,18 @@ function createServer({
2928
version: '1.0.0',
3029
})
3130

32-
const frameworks = getFrameworks();
33-
const frameworkNames = frameworks.map((framework) => framework.name);
31+
const frameworks = getFrameworks()
32+
const frameworkNames = frameworks.map((framework) => framework.name)
3433

3534
server.tool(
3635
'listTanStackAddOns',
3736
'List the available add-ons for creating TanStack applications',
3837
{
39-
framework: z.string().describe(`The framework to use. Available frameworks: ${frameworkNames.join(', ')}`),
38+
framework: z
39+
.string()
40+
.describe(
41+
`The framework to use. Available frameworks: ${frameworkNames.join(', ')}`,
42+
),
4043
},
4144
({ framework: frameworkName }) => {
4245
const framework = getFrameworkByName(frameworkName)!
@@ -63,7 +66,11 @@ function createServer({
6366
'createTanStackApplication',
6467
'Create a new TanStack application',
6568
{
66-
framework: z.string().describe(`The framework to use. Available frameworks: ${frameworkNames.join(', ')}`),
69+
framework: z
70+
.string()
71+
.describe(
72+
`The framework to use. Available frameworks: ${frameworkNames.join(', ')}`,
73+
),
6774
projectName: z
6875
.string()
6976
.describe(
@@ -77,7 +84,13 @@ function createServer({
7784
'The directory to create the application in. Use the absolute path of the directory you want the application to be created in',
7885
),
7986
},
80-
async ({ framework:frameworkName, projectName, addOns, cwd, targetDir }) => {
87+
async ({
88+
framework: frameworkName,
89+
projectName,
90+
addOns,
91+
cwd,
92+
targetDir,
93+
}) => {
8194
const framework = getFrameworkByName(frameworkName)!
8295
try {
8396
process.chdir(cwd)

0 commit comments

Comments
 (0)