trails/pnpm-workspace.yaml
Ullrich Schäfer 374102e633
Make scripts/ a pnpm workspace + add README
render-legal.ts needs @types/node available to the TS language server
so editors (VS Code, cursor, etc.) don't complain about missing Node
globals. Without a tsconfig in this folder VS Code falls back to a
default config with no types and shows red squiggles on every
process/fs/path reference.

Solution: scripts/ becomes its own pnpm workspace (@trails-cool/scripts),
carrying @types/node as a devDep from the catalog, and a tiny
tsconfig.json with types: [node] and include *.ts. This also wires the
folder into `pnpm typecheck` as task #14, so CI type-checks scripts
alongside every other package. No runtime impact — the workspace is
never bundled or deployed.

README documents the layout, current contents (render-legal.ts +
check-dockerfiles.sh), and how to add new scripts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 07:56:01 +02:00

26 lines
540 B
YAML

packages:
- "apps/*"
- "packages/*"
- "scripts"
catalog:
react: ^19.2.5
react-dom: ^19.2.5
react-router: ^7.14.0
"@react-router/dev": ^7.14.0
"@react-router/node": ^7.14.0
"@react-router/serve": ^7.14.0
"@types/react": ^19.2.14
"@types/react-dom": ^19.2.3
tailwindcss: ^4.2.2
"@tailwindcss/vite": ^4.2.2
typescript: ^5.8.3
vite: ^8.0.8
drizzle-orm: ^0.45.2
drizzle-kit: ^0.31.10
drizzle-postgis: ^1.1.1
"@sentry/node": ^10.48.0
"@sentry/react": ^10.48.0
postgres: ^3.4.9
"@types/node": ^22.0.0