Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/consolidate-tsdown-configs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@perstack/provider-core": patch
"@perstack/anthropic-provider": patch
"@perstack/azure-openai-provider": patch
"@perstack/bedrock-provider": patch
"@perstack/deepseek-provider": patch
"@perstack/google-provider": patch
"@perstack/ollama-provider": patch
"@perstack/openai-provider": patch
"@perstack/vertex-provider": patch
"@perstack/runtime": patch
---

Remove redundant tsdown configs and use shared root config
4 changes: 2 additions & 2 deletions apps/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup",
"build": "pnpm run clean && tsdown",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -37,7 +37,7 @@
"devDependencies": {
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/base/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"resolveJsonModule": true
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "tsdown.config.ts"]
}
12 changes: 12 additions & 0 deletions apps/base/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig, type UserConfig } from "tsdown"
import { baseConfig } from "../../tsdown.config.ts"

export const baseSkillConfig: UserConfig = {
...baseConfig,
entry: {
"bin/server": "bin/server.ts",
"src/index": "src/index.ts",
},
}

export default defineConfig(baseSkillConfig)
12 changes: 0 additions & 12 deletions apps/base/tsup.config.ts

This file was deleted.

4 changes: 2 additions & 2 deletions apps/create-expert-skill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup",
"build": "pnpm run clean && tsdown",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -35,7 +35,7 @@
"@perstack/tui": "workspace:*",
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/create-expert-skill/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"resolveJsonModule": true
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "tsdown.config.ts"]
}
12 changes: 12 additions & 0 deletions apps/create-expert-skill/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { defineConfig, type UserConfig } from "tsdown"
import { baseConfig } from "../../tsdown.config.ts"

export const createExpertSkillConfig: UserConfig = {
...baseConfig,
entry: {
"bin/server": "bin/server.ts",
"src/index": "src/index.ts",
},
}

export default defineConfig(createExpertSkillConfig)
12 changes: 0 additions & 12 deletions apps/create-expert-skill/tsup.config.ts

This file was deleted.

4 changes: 2 additions & 2 deletions apps/create-expert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ./tsup.config.ts && cp perstack.toml dist/",
"build": "pnpm run clean && tsdown --config ./tsdown.config.ts && cp perstack.toml dist/",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -32,7 +32,7 @@
"@perstack/tui": "workspace:*",
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion apps/create-expert/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"jsx": "react-jsx"
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "tsdown.config.ts"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from "tsup"
import { baseConfig } from "../../tsup.config.js"
import { defineConfig } from "tsdown"
import { baseConfig } from "../../tsdown.config.ts"

export default defineConfig({
...baseConfig,
Expand Down
4 changes: 2 additions & 2 deletions apps/perstack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ./tsup.config.ts",
"build": "pnpm run clean && tsdown --config ./tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -30,7 +30,7 @@
"@perstack/tui": "workspace:*",
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/perstack/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"jsx": "react-jsx"
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "tsdown.config.ts"]
}
11 changes: 11 additions & 0 deletions apps/perstack/tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig, type UserConfig } from "tsdown"
import { baseConfig } from "../../tsdown.config.ts"

export const cliConfig: UserConfig = {
...baseConfig,
dts: false,
entry: { "bin/cli": "bin/cli.ts" },
external: ["react-devtools-core"],
}

export default defineConfig(cliConfig)
13 changes: 0 additions & 13 deletions apps/perstack/tsup.config.ts

This file was deleted.

4 changes: 2 additions & 2 deletions e2e/create-expert/create-expert.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function runCreateExpert(
let stdout = ""
let stderr = ""
const proc = spawn(
"npx",
["tsx", path.join(PROJECT_ROOT, "apps/perstack/bin/cli.ts"), ...args],
"node",
[path.join(PROJECT_ROOT, "apps/perstack/dist/bin/cli.js"), ...args],
{
cwd,
env: { ...process.env },
Expand Down
2 changes: 1 addition & 1 deletion e2e/lib/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function runCli(args: string[], options?: RunOptions): Promise<Comm
return new Promise((resolve, reject) => {
let stdout = ""
let stderr = ""
const proc = spawn("npx", ["tsx", "./apps/perstack/bin/cli.ts", ...finalArgs], {
const proc = spawn("node", ["./apps/perstack/dist/bin/cli.js", ...finalArgs], {
cwd,
env,
stdio: ["pipe", "pipe", "pipe"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"jsdom": "^28.0.0",
"knip": "5.83.1",
"smol-toml": "^1.6.0",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"tsx": "^4.21.0",
"turbo": "latest",
"typescript": "^5.9.3",
Expand Down
7 changes: 5 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ../../tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -32,8 +32,11 @@
"devDependencies": {
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"engines": {
"node": ">=22.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/filesystem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ../../tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -33,7 +33,7 @@
"@paralleldrive/cuid2": "^3.3.0",
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/installer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ../../tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -36,7 +36,7 @@
"@perstack/tui": "workspace:*",
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/log/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ../../tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -33,7 +33,7 @@
"devDependencies": {
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/perstack-toml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ../../tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -34,7 +34,7 @@
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"memfs": "^4.56.10",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/providers/anthropic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ./tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -34,7 +34,7 @@
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"ai": "^6.0.86",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
10 changes: 0 additions & 10 deletions packages/providers/anthropic/tsup.config.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/providers/azure-openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ./tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -34,7 +34,7 @@
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"ai": "^6.0.86",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
10 changes: 0 additions & 10 deletions packages/providers/azure-openai/tsup.config.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/providers/bedrock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"scripts": {
"clean": "rm -rf dist",
"build": "pnpm run clean && tsup --config ./tsup.config.ts",
"build": "pnpm run clean && tsdown --config ../../../tsdown.config.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand All @@ -34,7 +34,7 @@
"@tsconfig/node22": "^22.0.5",
"@types/node": "^25.2.3",
"ai": "^6.0.86",
"tsup": "^8.5.1",
"tsdown": "^0.14.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
Expand Down
Loading