Skip to content

Commit 97f674b

Browse files
committed
Update cli to use typescript files from sdk directly in dev
1 parent e26d3ea commit 97f674b

File tree

5 files changed

+6
-33
lines changed

5 files changed

+6
-33
lines changed

cli/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@
1515
}
1616
},
1717
"scripts": {
18-
"dev": "./scripts/dev.sh",
19-
"prebuild": "bun run build:sdk",
20-
"build": "bun build src/index.tsx --outdir dist --target bun --format esm",
18+
"dev": "bun run src/index.tsx",
2119
"build:sdk": "cd ../sdk && bun run build",
22-
"build:sdk-types": "cd ../sdk && bun run build:types",
2320
"build:binary": "bun ./scripts/build-binary.ts codebuff $npm_package_version",
2421
"release": "bun run scripts/release.ts",
2522
"start": "bun run dist/index.js",
2623
"test": "bun test",
2724
"test:tmux-poc": "bun run src/__tests__/tmux-poc.ts",
28-
"pretypecheck": "bun run build:sdk-types",
2925
"typecheck": "tsc --noEmit -p ."
3026
},
3127
"sideEffects": false,

cli/scripts/dev.sh

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

cli/src/types.d.ts

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

cli/tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
"jsx": "react-jsx",
88
"jsxImportSource": "@opentui/react",
99
"outDir": "./dist",
10-
"rootDir": "./src",
1110
"declaration": true,
1211
"declarationMap": true,
1312
"esModuleInterop": true,
1413
"skipLibCheck": true,
15-
"preserveSymlinks": false
14+
"preserveSymlinks": false,
15+
"paths": {
16+
"@codebuff/sdk": ["../sdk/src/index.ts"]
17+
}
1618
},
1719
"include": ["src/**/*"],
1820
"exclude": ["node_modules", "dist"]

package.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,15 @@
1919
"scripts": {
2020
"dev": "bash scripts/dev.sh",
2121
"start-db": "bun --cwd packages/internal db:start",
22-
"start-bin": "bun --cwd npm-app start-bin",
2322
"start-web": "bun start-db && bun --cwd web dev",
2423
"start-studio": "bun --cwd packages/internal db:studio",
2524
"start-server": "bun --cwd backend dev",
26-
"start-manifold": "bun --cwd npm-app start-manifold",
27-
"start-codebuff-test": "bun --cwd npm-app start --cwd ../../codebuff-test",
28-
"start-litestar": "bun --cwd npm-app start-litestar",
29-
"start-jpcsp": "bun --cwd npm-app start-jpcsp",
30-
"start-vscode": "bun --cwd npm-app start-vscode",
31-
"start-nushell": "bun --cwd npm-app start-nushell",
3225
"format": "prettier --write \"**/*.{ts,tsx,json,md}\"",
3326
"release:cli": "bun run --cwd=cli release",
3427
"release:npm-app-legacy": "bun run --cwd=npm-app release-legacy",
3528
"release:sdk": "bun run --cwd=sdk release",
3629
"clean-ts": "find . -name '*.tsbuildinfo' -type f -delete && find . -name '.next' -type d -exec rm -rf {} + 2>/dev/null || true && find . -name 'node_modules' -type d -exec rm -rf {} + 2>/dev/null || true && bun install",
37-
"typecheck": "bun --cwd=sdk run build:types && bun --filter='*' run typecheck && echo '✅ All type checks passed!'",
30+
"typecheck": "bun --filter='*' run typecheck && echo '✅ All type checks passed!'",
3831
"test": "bun --filter='{@codebuff/backend,@codebuff/common,@codebuff/npm-app,@codebuff/agents}' run test",
3932
"init-worktree": "bun scripts/init-worktree.ts",
4033
"cleanup-worktree": "bash scripts/cleanup-worktree.sh",

0 commit comments

Comments
 (0)