feat: T1 scaffold — package.json, tsconfig (backend+web), vitest, dirs

- All deps declared once (express5, ws, node-pty, @xterm/xterm6, addon-fit;
  dev: typescript6, tsx, vitest4, @types/node|ws|express)
- postinstall chmod +x node-pty spawn-helper (prebuild ships it non-exec → posix_spawnp fails)
- node-pty verified: require + real PTY spawn (exitCode 0)
- npm test passes with no tests (passWithNoTests)
- tsconfig.web.json type-checks frontend; browser bundling strategy still TBD (see log)

T1 of docs/PLAN.md
This commit is contained in:
Yaojia Wang
2026-06-16 07:21:42 +02:00
parent 91d0a7189f
commit b126cf0e42
13 changed files with 2910 additions and 0 deletions

21
tsconfig.json Normal file
View File

@@ -0,0 +1,21 @@
{
"// note": "Backend (Node) config. Used by `npm run build` (emits dist/) and `npm start` via tsx. Tests are transpiled by vitest (esbuild), not tsc.",
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2022"],
"types": ["node"],
"strict": true,
"noUncheckedIndexedAccess": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"rootDir": "src",
"outDir": "dist",
"declaration": false,
"sourceMap": true
},
"include": ["src"]
}