Skip to content

Commit f8e31eb

Browse files
ochafikclaude
andauthored
fix: ensure lib is built before examples:build (#185)
* fix: ensure lib is built before examples:build Add preexamples:build hook to automatically run `npm run build` before `examples:build`. This ensures examples always type-check against the latest library code, catching breaking changes during development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: add version consistency check for examples Add scripts/check-versions.mjs to verify that example package.json files reference the correct version of @modelcontextprotocol/ext-apps. - Allows "../.." (local dev) or "^{root-version}" as valid dependencies - Runs in CI before npm install to catch mismatches early - Available locally via `npm run check:versions` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: regenerate package-lock.json for cross-platform compatibility --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent e078250 commit f8e31eb

File tree

4 files changed

+338
-95
lines changed

4 files changed

+338
-95
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
shell: bash
3737
run: '! grep -E "\"resolved\": \"https?://" package-lock.json | grep -v registry.npmjs.org'
3838

39+
- name: Verify example dependency versions
40+
shell: bash
41+
run: node scripts/check-versions.mjs
42+
3943
- uses: actions/setup-node@v4
4044
with:
4145
node-version: "20"

0 commit comments

Comments
 (0)