Files
repomix-mirror/website/server/package.json
Kazuki Yamada b25f4446d8 test(server): Relocate server tests into website/server
intent(test-ownership): move tests into website/server/tests/ so they collocate with the code under test and stop reaching up through three parents; reviewer follow-up wanted dedicated coverage and the root vs. website/server package boundary makes collocation the right long-term layout
decision(vitest-config): give website/server its own vitest.config.ts + `test` script; root's existing tests/**/*.test.ts include no longer catches server tests since they moved outside that tree, so the two test runs stay independent
decision(tsconfig-test): add tsconfig.test.json extending the build config and lift lint-tsc to `-p tsconfig.test.json` — the build tsconfig's rootDir: "./src" excludes tests/, so a single lint command wouldn't have type-checked them
learned(valibot-instanceof): with tests now resolving valibot from the same website/server/node_modules as validateRequest, the cause-check can go back to `instanceof v.ValiError` — the duck-type workaround was only needed when the root harness and server pulled different valibot copies
constraint(ci-website): added a `test-website-server` job that links the local repomix build the same way lint-website-server does; tests don't actually import repomix today, but colocation means they easily could later and the link step keeps parity
2026-04-19 21:47:29 +09:00

40 lines
1.1 KiB
JSON

{
"name": "repomix-website-server",
"private": true,
"type": "module",
"scripts": {
"dev": "PORT=8080 tsx watch src/index.ts",
"build": "tsc",
"bundle": "node scripts/bundle.mjs",
"lint": "npm run lint-tsc",
"lint-tsc": "tsgo --noEmit -p tsconfig.test.json",
"test": "vitest",
"start": "node dist/index.js",
"start:bundle": "node dist-bundled/server.mjs",
"clean": "rimraf dist dist-bundled",
"cloud-deploy": "gcloud builds submit --config=cloudbuild.yaml ."
},
"dependencies": {
"@hono/node-server": "^1.19.13",
"@upstash/ratelimit": "^2.0.8",
"@upstash/redis": "^1.37.0",
"fflate": "^0.8.2",
"hono": "^4.12.14",
"isbot": "^5.1.37",
"repomix": "github:yamadashy/repomix#main",
"valibot": "^1.3.1",
"winston": "^3.19.0"
},
"devDependencies": {
"@swc/core": "^1.15.24",
"@types/node": "^24.12.2",
"@typescript/native-preview": "^7.0.0-dev.20260410.1",
"rimraf": "^6.1.3",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"vitest": "^4.1.4",
"rolldown": "^1.0.0-rc.15",
"rollup-plugin-swc3": "^0.12.1"
}
}