- Prisma 7: prisma.config.ts com datasource.url (API correta); schema gerado em CJS - WorkspacePrismaPool: LRU cache (max 10) de PrismaClient por workspace (ADR 0006) PrismaPg adapter + pg.Pool por workspace; getOrCreate/health/onModuleDestroy - JwtAuthGuard: global APP_GUARD, jose HS256, popula CLS com workspace_id/userId/prisma @Public() decorator marca ping/health/dev-auth como rotas abertas - DevAuthController: POST /auth/dev/token — emite JWT dev (404 em produção) - AuthTokenResponseSchema + DevTokenRequestSchema em @sar/api-interface - WorkspacePoolHealthIndicator: health/ready reporta amostra LRU top-3 (nunca O(N)) - .npmrc: hoist @prisma/client-runtime-utils (requerido pelo Prisma 7 isolated mode) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
11 lines
303 B
Plaintext
11 lines
303 B
Plaintext
# pnpm config — STACK.md JCS v2.2
|
|
engine-strict=true
|
|
auto-install-peers=true
|
|
strict-peer-dependencies=false
|
|
shamefully-hoist=false
|
|
public-hoist-pattern[]=*types*
|
|
public-hoist-pattern[]=*eslint*
|
|
public-hoist-pattern[]=*prettier*
|
|
public-hoist-pattern[]=@prisma/client-runtime-utils
|
|
node-linker=isolated
|