Files
vercel__chat/package.json
Ben Sabic 1bdbc31039 chore: integrate commitlint to enforce Conventional Commits
- Add @commitlint/cli and @commitlint/config-conventional (pinned to 21.0.0)
  and husky as root devDependencies.
- commitlint.config.js extends config-conventional, allows free-form scopes,
  and ignores auto-generated Merge / Revert commits.
- .husky/commit-msg runs commitlint on every local commit; husky installs
  automatically via the `prepare` script on `pnpm install`.
- New `commitlint` CI job in .github/workflows/ci.yml lints PR commits
  (--from base.sha --to head.sha) and the most recent commit on direct
  pushes to main (--last). SHAs are passed via `env:` rather than direct
  `${{ … }}` interpolation to avoid the script-injection class of bug.
- CI uses `pnpm install --frozen-lockfile`, so the commitlint binary that
  runs is exactly the version pinned in pnpm-lock.yaml.
- .github/CONTRIBUTING.md documents the local hook + CI enforcement.
2026-05-12 21:56:44 +10:00

47 lines
1.8 KiB
JSON

{
"name": "chat-sdk-monorepo",
"private": true,
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/vercel/chat.git"
},
"homepage": "https://github.com/vercel/chat#readme",
"bugs": {
"url": "https://github.com/vercel/chat/issues"
},
"license": "MIT",
"scripts": {
"build": "turbo build",
"build:validate": "SLACK_BOT_TOKEN=xoxb-mock SLACK_SIGNING_SECRET=mock TEAMS_APP_ID=mock TEAMS_APP_PASSWORD=mock TEAMS_APP_TENANT_ID=mock GOOGLE_CHAT_CREDENTIALS='{\"type\":\"service_account\",\"project_id\":\"mock\",\"private_key\":\"-----BEGIN RSA PRIVATE KEY-----\\nMOCK\\n-----END RSA PRIVATE KEY-----\",\"client_email\":\"mock@mock.iam.gserviceaccount.com\"}' REDIS_URL=redis://localhost:6379 RECORDING_ENABLED=false turbo build",
"dev": "turbo dev",
"test": "turbo test --filter='!example-nextjs-chat' --filter='!docs'",
"test:workspace": "vitest run",
"typecheck": "turbo typecheck",
"knip": "knip",
"validate": "pnpm knip && pnpm check && turbo typecheck && pnpm test && pnpm build:validate",
"clean": "turbo clean && rm -rf node_modules",
"check": "ultracite check",
"fix": "ultracite fix",
"sync-resources": "npx tsx scripts/sync-resources.ts",
"konsistent": "konsistent --config-path .github/konsistent.json",
"commitlint": "commitlint",
"prepare": "husky"
},
"devDependencies": {
"@biomejs/biome": "^2.4.4",
"@changesets/cli": "^2.29.8",
"@commitlint/cli": "21.0.0",
"@commitlint/config-conventional": "21.0.0",
"@vitest/coverage-v8": "^4.0.18",
"husky": "^9.1.7",
"knip": "^5.85.0",
"konsistent": "0.0.1-alpha.20",
"turbo": "^2.8.12",
"typescript": "^5.9.3",
"ultracite": "7.2.4",
"vitest": "^4.0.18"
},
"packageManager": "pnpm@10.30.3"
}