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.
This commit is contained in:
parent
17c98bda94
commit
07692db4e0
1 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler"
|
||||
},
|
||||
"files": [],
|
||||
"references": [{ "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" }]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue