Skip to content

Commit f8f4bfb

Browse files
committed
chore: more package smashing
1 parent 475e6eb commit f8f4bfb

File tree

14 files changed

+31
-208
lines changed

14 files changed

+31
-208
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
"create-tanstack": "workspace:*",
3030
"create-tsrouter-app": "workspace:*",
3131
"@tanstack/cta-cli": "workspace:*",
32-
"@tanstack/cta-custom-add-on": "workspace:*",
3332
"@tanstack/cta-engine": "workspace:*",
34-
"@tanstack/cta-mcp": "workspace:*",
3533
"@tanstack/cta-ui": "workspace:*",
3634
"@tanstack/cta-framework-react-cra": "workspace:*",
3735
"@tanstack/cta-framework-solid": "workspace:*"

packages/cta-cli/package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,17 @@
3333
"packageManager": "[email protected]",
3434
"dependencies": {
3535
"@clack/prompts": "^0.10.0",
36-
"@tanstack/cta-custom-add-on": "workspace:*",
36+
"@modelcontextprotocol/sdk": "^1.6.0",
3737
"@tanstack/cta-engine": "workspace:*",
38-
"@tanstack/cta-mcp": "workspace:*",
3938
"@tanstack/cta-ui": "workspace:*",
4039
"chalk": "^5.4.1",
41-
"commander": "^13.1.0"
40+
"commander": "^13.1.0",
41+
"express": "^4.21.2",
42+
"zod": "^3.24.2"
4243
},
4344
"devDependencies": {
4445
"@tanstack/config": "^0.16.2",
46+
"@types/express": "^5.0.1",
4547
"@types/node": "^22.13.4",
4648
"@vitest/coverage-v8": "3.1.1",
4749
"eslint": "^9.20.0",

packages/cta-cli/src/cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
getFrameworkById,
1212
getFrameworkByName,
1313
getFrameworks,
14+
initAddOn,
1415
} from '@tanstack/cta-engine'
15-
import { initAddOn } from '@tanstack/cta-custom-add-on'
16-
17-
import { runMCPServer } from '@tanstack/cta-mcp'
1816

1917
import { launchUI } from '@tanstack/cta-ui'
2018

19+
import { runMCPServer } from './mcp.js'
20+
2121
import { promptForOptions } from './options.js'
2222
import { normalizeOptions } from './command-line.js'
2323

File renamed without changes.

packages/cta-custom-add-on/package.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

packages/cta-custom-add-on/src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/cta-custom-add-on/tsconfig.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

packages/cta-custom-add-on/src/custom-add-on.ts renamed to packages/cta-engine/src/custom-add-on.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,15 @@ import { readFile, readdir } from 'node:fs/promises'
22
import { existsSync, mkdirSync, writeFileSync } from 'node:fs'
33
import { basename, dirname, resolve } from 'node:path'
44

5-
import {
6-
createApp,
7-
createMemoryEnvironment,
8-
finalizeAddOns,
9-
getFrameworkById,
10-
readConfigFile,
11-
readFileHelper,
12-
} from '@tanstack/cta-engine'
13-
14-
import type {
15-
Environment,
16-
Mode,
17-
Options,
18-
PersistedOptions,
19-
} from '@tanstack/cta-engine'
5+
import { createApp } from './create-app'
6+
import { createMemoryEnvironment } from './environment'
7+
import { finalizeAddOns } from './add-ons'
8+
import { getFrameworkById } from './frameworks'
9+
import { readConfigFile } from './config-file'
10+
import { readFileHelper } from './file-helpers'
11+
12+
import type { Environment, Mode, Options } from './types'
13+
import type { PersistedOptions } from './config-file'
2014

2115
type AddOnMode = 'add-on' | 'starter'
2216

packages/cta-engine/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export { readFileHelper, getBinaryFile, relativePath } from './file-helpers.js'
2929

3030
export { formatCommand } from './utils.js'
3131

32+
export { initAddOn } from './custom-add-on.js'
33+
3234
export type {
3335
AddOn,
3436
Environment,

packages/cta-mcp/package.json

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)