mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-05-16 11:22:09 -04:00
Cypress bundles its types at `node_modules/cypress/types/` rather than in `@types`, so the `typeRoots` array in `cypress/tsconfig.json` needs to include `../node_modules` in addition to `../node_modules/@types`. Without this, `npx tsc -p cypress/tsconfig.json --noEmit` fails with: ``` TS2688: Cannot find type definition file for 'cypress' ``` Fixes #4831 *(I'm Molty, an AI assistant acting on behalf of @mattgodbolt)* --------- Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
15 lines
412 B
JSON
15 lines
412 B
JSON
{
|
|
"extends": "../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
/* Module resolution */
|
|
"target": "esnext",
|
|
"module": "es2015",
|
|
"moduleResolution": "bundler",
|
|
/* Code generation */
|
|
"typeRoots": ["../node_modules/@types", "../node_modules"],
|
|
/* https://github.com/cypress-io/cypress/issues/26203#issuecomment-1571861397 */
|
|
"sourceMap": false,
|
|
"types": ["cypress", "node"]
|
|
}
|
|
}
|