From 093c79009d5b24d2659178f6d8524dc8473c2bc6 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Sun, 28 Jun 2026 11:43:20 +0200 Subject: [PATCH] Get type feedback in sub project --- pi-test-status/extensions/index.ts | 2 +- pi-test-status/package.json | 3 ++- pi-test-status/tsconfig.json | 13 +++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 pi-test-status/tsconfig.json diff --git a/pi-test-status/extensions/index.ts b/pi-test-status/extensions/index.ts index e68d081..9556bc8 100644 --- a/pi-test-status/extensions/index.ts +++ b/pi-test-status/extensions/index.ts @@ -17,7 +17,7 @@ export default function testStatusExtension(pi: ExtensionAPI) { const testsPassed = /Tests\s+.+passed/.test(output) && !/Tests\s+.+failed/.test(output); const testsFailed = - /Tests\s+.+failed/.test(output) || event.details?.exitCode !== 0; + /Tests\s+.+failed/.test(output) || event.isError; if (testsPassed) { // Extract summary line for inline detail (e.g., "1 passed (242ms)") diff --git a/pi-test-status/package.json b/pi-test-status/package.json index e9bafe9..2c6ec7a 100644 --- a/pi-test-status/package.json +++ b/pi-test-status/package.json @@ -10,7 +10,8 @@ "README.md" ], "scripts": { - "test": "echo \"No tests yet\"" + "test": "echo \"No tests yet\"", + "typecheck": "tsc --noEmit" }, "peerDependencies": { "@earendil-works/pi-coding-agent": "*" diff --git a/pi-test-status/tsconfig.json b/pi-test-status/tsconfig.json new file mode 100644 index 0000000..4c2b960 --- /dev/null +++ b/pi-test-status/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "outDir": "dist", + "noEmit": true + }, + "include": ["extensions"] +} \ No newline at end of file