Skip to content

Commit 4d186a0

Browse files
ziggyclaude
andcommitted
Harden build: fix verify.ts, add postinstall bootstrap, expand typecheck
- Remove unused getPlatform() and os.homedir() calls from setup/verify.ts - Add postinstall script to bootstrap container/agent-runner on fresh clone - Add tsconfig.check.json covering setup/, scripts/, skills-engine/ - Wire extended typecheck into npm run typecheck Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4c7942f commit 4d186a0

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
"type": "module",
66
"main": "dist/index.js",
77
"scripts": {
8+
"postinstall": "cd container/agent-runner && npm install --ignore-scripts && npx tsc",
89
"build": "tsc",
910
"start": "node dist/index.js",
1011
"dev": "tsx src/index.ts",
1112
"auth": "tsx src/whatsapp-auth.ts",
12-
"typecheck": "tsc --noEmit",
13+
"typecheck": "tsc --noEmit && tsc -p tsconfig.check.json",
1314
"format": "prettier --write \"src/**/*.ts\"",
1415
"format:fix": "prettier --write \"src/**/*.ts\"",
1516
"format:check": "prettier --check \"src/**/*.ts\"",

setup/verify.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import { emitStatus } from './status.js';
1717

1818
export async function run(_args: string[]): Promise<void> {
1919
const projectRoot = process.cwd();
20-
const platform = getPlatform();
21-
const homeDir = os.homedir();
2220

2321
logger.info('Starting verification');
2422

tsconfig.check.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"outDir": "./dist-check",
6+
"noEmit": true
7+
},
8+
"include": ["src/**/*", "setup/**/*", "scripts/**/*", "skills-engine/**/*"],
9+
"exclude": ["node_modules", "dist", "dist-check", "**/*.test.ts"]
10+
}

0 commit comments

Comments
 (0)