Skip to content

Commit 4decba9

Browse files
fix(ci): remove prepare scripts — they trigger build during npm ci before deps are ready
The prepare lifecycle hook runs automatically during npm install/ci. In our monorepo it would invoke tsc + esbuild before workspace packages are fully linked, causing npm ci to fail on every CI run. The explicit 'Build all packages' step in the workflow handles this. Also restore npm ci (correct tool) now that prepare is gone. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6e4d4ba commit 4decba9

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
cache: 'npm'
2424

2525
- name: Install dependencies
26-
run: npm install --prefer-offline
26+
run: npm ci
2727

2828
- name: Build all packages
2929
run: npm run build

packages/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
},
1515
"scripts": {
1616
"build": "tsc --noEmit && node build.mjs",
17-
"prepare": "npm run build",
1817
"start": "node dist/index.js",
1918
"test": "vitest"
2019
},

packages/mcp-server/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"scripts": {
1818
"build": "tsc --noEmit && node build.mjs",
19-
"prepare": "npm run build",
2019
"start": "node dist/bin.js",
2120
"test": "vitest"
2221
},

0 commit comments

Comments
 (0)