batchCooking/apps/web
Nicolas 07692db4e0 Fix Cypress config loading: give the solution tsconfig a module system
apps/web/tsconfig.json (the tsc -b "solution" file) had no
compilerOptions, only files/references. Cypress's bundled ts-node
picks the nearest tsconfig.json to transpile cypress.config.ts, and
with no "module" specified it defaulted to CommonJS while
package.json declares "type": "module" — causing:

  ReferenceError: exports is not defined in ES module scope

Adding module/moduleResolution to the solution config (harmless for
tsc -b itself, since it only builds the referenced projects) fixes
the mismatch. This regressed after the earlier fix for the stray
vite.config.js emission and was never re-verified against Cypress
until CI caught it.
2026-08-16 10:51:58 +02:00
..
cypress Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
src Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
cypress.config.ts Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
index.html Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
package.json Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
tsconfig.app.json Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
tsconfig.json Fix Cypress config loading: give the solution tsconfig a module system 2026-08-16 10:51:58 +02:00
tsconfig.node.json Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00
vite.config.ts Scaffold generic pnpm monorepo (api + web + shared) 2026-08-16 10:18:48 +02:00