Files
crosscode-platform/package.json
T
joshuaandClaude Opus 5.5 c442fe0d42 crosscode script: deploy, status, install, adopt (Events 2.2.0, plan §4-5)
One script for installing, updating and moving church installs, replacing
hope-events' scripts/deploy.sh and install.sh:

- deploy <church> [events] / --every-church, with --version, --main, --check
  and --allow-local-changes: checks every product first (files changed by
  hand, Node, release requirements from WHATS-NEW.md headings), then each
  product in order with backup, checkout, install, migrate, build, PM2 reload
  and a /health version check; a failure rolls that product back and stops.
- status [<church>]: checked-out and latest release, /health, and the old
  folder kept after adopt.
- install <church> --products events --domain <address>: a new church under
  /var/www/sites/<church>, writing church.env.
- adopt <church> --events-dir <old> builds the monorepo checkout next to the
  running install and switches PM2 over; adopt --undo goes back to it.

Product hooks live in scripts/products/events.sh. shellcheck (lint:scripts)
and 47 bats tests (test:scripts) are part of npm run check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:17:06 +02:00

91 lines
2.8 KiB
JSON

{
"name": "crosscode-platform",
"version": "0.0.0",
"private": true,
"description": "Cross Code platform monorepo: Cross Events, Accounts, Church Website, Church App and the shared contracts (see docs/ROADMAP-v3.md)",
"workspaces": [
"packages/*",
"apps/*",
"!apps/events",
"apps/events/backend",
"apps/events/frontend"
],
"scripts": {
"build": "npm run build --workspaces --if-present",
"test": "npm test --workspaces --if-present",
"test:scripts": "bats scripts/tests",
"typecheck": "npm run typecheck --workspaces --if-present",
"lint": "eslint .",
"lint:scripts": "shellcheck -x scripts/crosscode scripts/products/events.sh",
"check": "npm run lint && npm run lint:scripts && npm run typecheck && npm test && npm run test:scripts && npm run build"
},
"engines": {
"node": ">=20"
},
"devDependencies": {
"@axe-core/playwright": "^4.14.0",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.0",
"@types/jest": "^30.0.0",
"@types/node": "^20.19.43",
"bats": "^1.13.0",
"concurrently": "^9.2.1",
"eslint": "^10.13.0",
"jest": "^30.5.2",
"shellcheck": "^4.1.0",
"ts-jest": "^29.4.15",
"tsup": "^9.0.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.72.1"
},
"overrides": {
"shell-quote": "^1.12.0",
"axios": "1.20.0",
"cors": "2.8.5",
"cron-parser": "5.10.2",
"express-rate-limit": "8.6.2",
"ics": "3.12.0",
"nodemailer": "10.3.0",
"pdfkit": "0.17.1",
"supertest": "7.3.1",
"swagger-ui-dist": "5.34.0",
"@eslint/eslintrc": "3.3.6",
"@hookform/resolvers": "5.9.1",
"@radix-ui/react-accordion": "1.2.20",
"@radix-ui/react-alert-dialog": "1.1.23",
"@radix-ui/react-avatar": "1.2.6",
"@radix-ui/react-checkbox": "1.3.11",
"@radix-ui/react-dialog": "1.1.23",
"@radix-ui/react-dropdown-menu": "2.1.24",
"@radix-ui/react-label": "2.1.15",
"@radix-ui/react-navigation-menu": "1.2.22",
"@radix-ui/react-radio-group": "1.4.7",
"@radix-ui/react-select": "2.3.7",
"@radix-ui/react-separator": "1.1.15",
"@radix-ui/react-slider": "1.4.7",
"@radix-ui/react-slot": "1.3.3",
"@radix-ui/react-switch": "1.3.7",
"@radix-ui/react-tabs": "1.1.21",
"@radix-ui/react-toast": "1.2.23",
"@radix-ui/react-tooltip": "1.2.16",
"autoprefixer": "10.5.4",
"eslint-config-next": "16.4.3",
"next": "16.4.3",
"postcss": "8.5.26",
"react-hook-form": "7.86.0",
"tailwind-merge": "3.6.0",
"@crosscode/events-backend": {
"@sentry/node": "10.71.0"
}
},
"allowScripts": {
"prisma@7.10.1": true,
"@prisma/engines@7.10.1": true,
"unrs-resolver@1.12.2": true,
"@parcel/watcher": false,
"@scarf/scarf": false,
"esbuild": false,
"@sentry/cli@2.58.6": true
}
}