Skip to content

Commit 14915c1

Browse files
cameroncookeclaude
andcommitted
build: Add wireit for incremental build caching
Wrap the build script with wireit to skip redundant rebuilds when source files have not changed. Add a convenience `run` script, gitignore the `.wireit/` cache directory, and add the `glob` dependency. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f580529 commit 14915c1

File tree

3 files changed

+212
-3
lines changed

3 files changed

+212
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ yarn-error.log*
88
dist/
99
/build/
1010
*.tsbuildinfo
11+
.wireit/
1112

1213
# Auto-generated files
1314
src/version.ts

package-lock.json

Lines changed: 194 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
"xcodebuildmcp-doctor": "build/doctor-cli.js"
1515
},
1616
"scripts": {
17-
"build": "npm run build:tsup",
17+
"build": "wireit",
1818
"dev": "npm run build:tsup && node build/cli.js mcp",
1919
"build:tsup": "npm run generate:version && tsup",
2020
"dev:tsup": "npm run build:tsup && tsup --watch",
21+
"run": "npm run build -s >/dev/null 2>&1 && node build/cli.js",
2122
"prepare": "node scripts/install-git-hooks.js",
2223
"hooks:install": "node scripts/install-git-hooks.js",
2324
"generate:version": "npx tsx scripts/generate-version.ts",
@@ -108,6 +109,20 @@
108109
"tsx": "^4.20.4",
109110
"typescript": "^5.8.2",
110111
"typescript-eslint": "^8.28.0",
111-
"vitest": "^3.2.4"
112+
"vitest": "^3.2.4",
113+
"wireit": "^0.14.12"
114+
},
115+
"wireit": {
116+
"build": {
117+
"command": "npm run build:tsup",
118+
"files": [
119+
"src/**/*.ts",
120+
"tsup.config.ts",
121+
"package.json"
122+
],
123+
"output": [
124+
"build/**"
125+
]
126+
}
112127
}
113128
}

0 commit comments

Comments
 (0)