- ci.yml: actions/checkout into the runner workspace instead of cd-ing into a
hard-coded host path and `git reset --hard origin/main` on the live checkout;
install via `pnpm install:gitea` (self-contained, no sibling common-plat
checkout); E2E step left as a TODO pointer (ci-e2e-hardening, Phase 5 P2).
- Fix the same stale /opt/bytelyst/bytelyst-devops-tools path in deploy.sh,
scripts/deploy-hotcopy.sh, DEPLOYMENT.md, DEPLOYMENT_GUIDE.md.
- Replace the no-op `lint` echoes with real ESLint 9 flat configs (js +
typescript-eslint recommended) for backend and web; add a root `pnpm lint`.
- Fix the 10 errors lint surfaced, incl. require('os') in an ESM backend
(system/repository.ts -> import * as os), prefer-const x4, and a ternary
expression-statement in web vm/page.tsx.
Verified locally: secret-scan, lint (0 errors; correctly fails on bad code),
typecheck, unit tests (backend 9 / web 11), and build all green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
1.2 KiB
JSON
21 lines
1.2 KiB
JSON
{
|
|
"name": "@bytelyst/devops-workspace",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"packageManager": "pnpm@10.6.5",
|
|
"scripts": {
|
|
"dev": "pnpm --filter @bytelyst/devops-backend dev & pnpm --filter @bytelyst/devops-web dev",
|
|
"build": "pnpm --filter @bytelyst/devops-backend build && pnpm --filter @bytelyst/devops-web build",
|
|
"typecheck": "pnpm --filter @bytelyst/devops-backend typecheck && pnpm --filter @bytelyst/devops-web typecheck",
|
|
"lint": "pnpm --filter @bytelyst/devops-backend lint && pnpm --filter @bytelyst/devops-web lint",
|
|
"test": "pnpm --filter @bytelyst/devops-backend test && pnpm --filter @bytelyst/devops-web test",
|
|
"test:run": "pnpm --filter @bytelyst/devops-backend test:run && pnpm --filter @bytelyst/devops-web test:run",
|
|
"test:coverage": "pnpm --filter @bytelyst/devops-backend test:coverage && pnpm --filter @bytelyst/devops-web test:coverage",
|
|
"test:e2e": "pnpm --filter @bytelyst/devops-web test:e2e",
|
|
"test:e2e:ui": "pnpm --filter @bytelyst/devops-web test:e2e:ui",
|
|
"secret-scan": "bash scripts/secret-scan.sh",
|
|
"install:common-plat": "BYTELYST_PACKAGE_SOURCE=common-plat pnpm install -r",
|
|
"install:gitea": "BYTELYST_PACKAGE_SOURCE=gitea pnpm install -r"
|
|
}
|
|
}
|