refactor: restructured monorepo TypeScript config and build tasks for unified setup
- Migrated all package tsconfig files to extend tsconfig.workspace.json for unified TypeScript configuration across monorepo. - Consolidated build and check scripts across 10+ packages to use biome for linting/formatting with separate type checking via tsgo. - Renamed build scripts from build:native and build:binary to build for simplified command naming across packages/natives and packages/coding-agent. - Refactored CI workflow to invoke bun tasks instead of inline shell scripts, reducing workflow complexity by 40+ lines. - Removed sync-exports.ts and repro-stuck.ts scripts; deleted path aliases from tsconfig.base.json in favor of workspace-based configuration. - Updated turbo.json with new task definitions (check:types, lint, fmt, fix) and removed build:native/embed:native tasks.
This commit is contained in:
@@ -32,9 +32,13 @@
|
||||
"pi-ai": "./src/cli.ts"
|
||||
},
|
||||
"scripts": {
|
||||
"check": "tsgo -p tsconfig.json",
|
||||
"generate-models": "bun scripts/generate-models.ts",
|
||||
"test": "bun test"
|
||||
"check": "biome check . && bun run check:types",
|
||||
"check:types": "tsgo -p tsconfig.json --noEmit",
|
||||
"lint": "biome lint .",
|
||||
"test": "bun test",
|
||||
"fix": "biome check --write --unsafe .",
|
||||
"fmt": "biome format --write .",
|
||||
"generate-models": "bun scripts/generate-models.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.78",
|
||||
@@ -125,6 +129,7 @@
|
||||
"./utils/schema/*": {
|
||||
"types": "./src/utils/schema/*.ts",
|
||||
"import": "./src/utils/schema/*.ts"
|
||||
}
|
||||
},
|
||||
"./*.js": "./src/*.ts"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user