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>
This commit is contained in:
parent
e078250adf
commit
f8e31eb97f
1 changed files with 338 additions and 95 deletions
|
|
@ -49,13 +49,14 @@
|
|||
"generate:schemas": "tsx scripts/generate-schemas.ts && prettier --write \"src/generated/**/*\"",
|
||||
"build": "npm run generate:schemas && node scripts/run-bun.mjs build.bun.ts",
|
||||
"prepack": "npm run build",
|
||||
"build:all": "npm run build && npm run examples:build",
|
||||
"build:all": "npm run examples:build",
|
||||
"test": "bun test src",
|
||||
"test:e2e": "playwright test",
|
||||
"test:e2e:update": "playwright test --update-snapshots",
|
||||
"test:e2e:ui": "playwright test --ui",
|
||||
"test:e2e:docker": "docker run --rm -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'npm i -g bun && npm ci && npx playwright test'",
|
||||
"test:e2e:docker:update": "docker run --rm -v $(pwd):/work -w /work -it mcr.microsoft.com/playwright:v1.57.0-noble sh -c 'npm i -g bun && npm ci && npx playwright test --update-snapshots'",
|
||||
"preexamples:build": "npm run build",
|
||||
"examples:build": "bun examples/run-all.ts build",
|
||||
"examples:start": "NODE_ENV=development npm run build && bun examples/run-all.ts start",
|
||||
"examples:dev": "NODE_ENV=development bun examples/run-all.ts dev",
|
||||
|
|
@ -64,7 +65,8 @@
|
|||
"docs": "typedoc",
|
||||
"docs:watch": "typedoc --watch",
|
||||
"prettier": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --check",
|
||||
"prettier:fix": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write"
|
||||
"prettier:fix": "prettier -u \"**/*.{js,jsx,ts,tsx,mjs,json,md,yml,yaml}\" --write",
|
||||
"check:versions": "node scripts/check-versions.mjs"
|
||||
},
|
||||
"author": "Olivier Chafik",
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue