**Problem:** Vercel deployments were failing during `pnpm install` because the `prepare` script tried to run `lefthook install`, which requires a git repository. Vercel's build environment doesn't have a proper `.git` directory, causing: ``` fatal: not a git repository (or any parent up to mount point /vercel) Error: exit status 128 ``` **Solution:** Skip Lefthook installation when running in CI or Vercel environments by checking `process.env.CI` and `process.env.VERCEL` before attempting to install git hooks. **Impact:** - Vercel deployments will now succeed - Local development still gets git hooks installed - GitHub Actions CI will skip hook installation (not needed in CI) - All previous tool execution fixes can now actually deploy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
1.4 KiB
JSON
41 lines
1.4 KiB
JSON
{
|
|
"name": "@tpmjs/monorepo",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"engines": {
|
|
"node": ">=22",
|
|
"pnpm": ">=8"
|
|
},
|
|
"packageManager": "pnpm@10.14.0",
|
|
"scripts": {
|
|
"dev": "turbo dev",
|
|
"build": "turbo build",
|
|
"test": "turbo test",
|
|
"test:ui": "turbo test:ui",
|
|
"lint": "turbo lint",
|
|
"format": "biome format --write .",
|
|
"format:check": "biome format .",
|
|
"type-check": "turbo type-check",
|
|
"type-coverage": "type-coverage --at-least 95",
|
|
"find-deadcode": "knip",
|
|
"check-architecture": "depcruise --validate --config .dependency-cruiser.js apps packages",
|
|
"clean": "turbo clean && rm -rf node_modules .turbo",
|
|
"changeset": "changeset",
|
|
"changeset:version": "changeset version && pnpm install --no-frozen-lockfile",
|
|
"changeset:publish": "pnpm build && changeset publish",
|
|
"prepare": "node -e \"if (!process.env.CI && !process.env.VERCEL && require('fs').existsSync('.git')) { require('child_process').execSync('lefthook install', {stdio: 'inherit'}) }\""
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^1.9.4",
|
|
"@changesets/cli": "^2.27.10",
|
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
"@types/node": "^22.10.2",
|
|
"dependency-cruiser": "^17.3.1",
|
|
"knip": "^5.70.2",
|
|
"lefthook": "^1.10.1",
|
|
"turbo": "^2.6.1",
|
|
"type-coverage": "^2.29.7",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|