Skip to content

The open-source agent harness - the runtime layer that turns an LLM into a working agent.

Fix tsconfig for local-sandbox (#273)

Chirag Jaineb406cdd57d2
diff --git a/packages/local-sandbox/tsconfig.build.json b/packages/local-sandbox/tsconfig.build.json
index 719f4cee2..829cd0426 100644
--- a/packages/local-sandbox/tsconfig.build.json
+++ b/packages/local-sandbox/tsconfig.build.json
@@ -1,7 +1,18 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
- "types": ["node"]
+ "types": ["node"],
+ "noEmit": false,
+ "module": "NodeNext",
+ "moduleResolution": "NodeNext",
+ "customConditions": [],
+ "target": "ES2022",
+ "lib": ["ES2022"],
+ "outDir": "dist",
+ "rootDir": ".",
+ "sourceMap": true,
+ "declaration": true,
+ "declarationMap": true
},
"include": ["src/**/*.ts"],
"exclude": ["dist", "node_modules", "test", "scripts"]
diff --git a/packages/local-sandbox/tsconfig.json b/packages/local-sandbox/tsconfig.json
index 2bd98076d..c73f1c2e4 100644
--- a/packages/local-sandbox/tsconfig.json
+++ b/packages/local-sandbox/tsconfig.json
@@ -1,30 +1,9 @@
{
+ "extends": "../../tsconfig.base.json",
"compilerOptions": {
- "strict": true,
- "noUncheckedIndexedAccess": true,
- "exactOptionalPropertyTypes": true,
- "noImplicitOverride": true,
- "noImplicitReturns": true,
- "noFallthroughCasesInSwitch": true,
- "noPropertyAccessFromIndexSignature": true,
- "noUnusedLocals": true,
- "noUnusedParameters": true,
- "allowUnreachableCode": false,
- "allowUnusedLabels": false,
- "verbatimModuleSyntax": true,
- "isolatedModules": true,
- "noUncheckedSideEffectImports": true,
- "target": "ES2022",
- "module": "NodeNext",
- "moduleResolution": "NodeNext",
- "lib": ["ES2022"],
"types": ["node"],
- "skipLibCheck": true,
- "outDir": "dist",
- "rootDir": ".",
- "sourceMap": true,
- "declaration": true,
- "declarationMap": true
+ "noEmit": true,
+ "customConditions": ["trueforge-dev"]
},
"include": ["src/**/*.ts", "scripts/**/*.ts"],
"exclude": ["dist", "test", "node_modules"]
diff --git a/packages/local-sandbox/tsconfig.smoke.json b/packages/local-sandbox/tsconfig.smoke.json
index ddf5cd4bd..2f185cb86 100644
--- a/packages/local-sandbox/tsconfig.smoke.json
+++ b/packages/local-sandbox/tsconfig.smoke.json
@@ -2,6 +2,15 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"],
+ "noEmit": false,
+ "module": "NodeNext",
+ "moduleResolution": "NodeNext",
+ "customConditions": [],
+ "target": "ES2022",
+ "lib": ["ES2022"],
+ "outDir": "dist",
+ "rootDir": ".",
+ "sourceMap": true,
"declaration": false,
"declarationMap": false,
"noUnusedLocals": false,