- Add --filter=@t3tools/desktop to the dev mode in dev-runner so 'bun run dev' also spins up the Electron app alongside contracts, web, and server. - Add OPENAI_API_KEY to globalPassThroughEnv in turbo.json so the Codex CLI receives the key when spawned by the server process (turbo strict env mode strips undeclared vars from child processes). Co-authored-by: Theo Browne <[email protected]>
39 lines
807 B
JSON
39 lines
807 B
JSON
{
|
|
"$schema": "https://turbo.build/schema.json",
|
|
"globalEnv": [
|
|
"PORT",
|
|
"VITE_WS_URL",
|
|
"VITE_DEV_SERVER_URL",
|
|
"ELECTRON_RENDERER_PORT",
|
|
"T3CODE_LOG_WS_EVENTS",
|
|
"T3CODE_MODE",
|
|
"T3CODE_PORT",
|
|
"T3CODE_NO_BROWSER",
|
|
"T3CODE_STATE_DIR",
|
|
"T3CODE_AUTH_TOKEN",
|
|
"T3CODE_DESKTOP_WS_URL"
|
|
],
|
|
"globalPassThroughEnv": ["OPENAI_API_KEY"],
|
|
"tasks": {
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**", "dist-electron/**"]
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["@t3tools/contracts#build"],
|
|
"cache": false,
|
|
"persistent": true
|
|
},
|
|
"typecheck": {
|
|
"dependsOn": ["^typecheck"],
|
|
"outputs": [],
|
|
"cache": false
|
|
},
|
|
"test": {
|
|
"dependsOn": ["^build"],
|
|
"cache": false,
|
|
"outputs": []
|
|
}
|
|
}
|
|
}
|