playwright/tsconfig.json

41 lines
1.3 KiB
JSON
Raw Normal View History

2019-11-19 05:18:28 +03:00
{
"compilerOptions": {
"target": "ES2019",
2019-11-19 05:18:28 +03:00
"module": "commonjs",
"lib": ["esnext", "dom", "DOM.Iterable"],
2021-10-11 17:52:17 +03:00
"baseUrl": ".",
"paths": {
/*
The following two serve different purposes:
- @foo/* is for importing types only,
- .../lib/* means require dependency
*/
"@html-reporter/*": ["./packages/html-reporter/src/*"],
"@injected/*": ["./packages/playwright-core/src/server/injected/*"],
"@isomorphic/*": ["./packages/playwright-core/src/utils/isomorphic/*"],
"@protocol/*": ["./packages/protocol/src/*"],
"@recorder/*": ["./packages/recorder/src/*"],
"@testIsomorphic/*": ["./packages/playwright/src/isomorphic/*"],
"@trace/*": ["./packages/trace/src/*"],
"@web/*": ["./packages/web/src/*"],
"playwright-core/lib/*": ["./packages/playwright-core/src/*"],
"playwright/lib/*": ["./packages/playwright/src/*"],
2021-10-11 17:52:17 +03:00
},
"esModuleInterop": true,
"strict": true,
chore: roll stable-test-runner to 1.28.1 (#19310) This required `allowJs: false` in our `tsconfig.json` due to the following error: ``` Error: Cannot find module './utilsBundleImpl' Require stack: - <playwright>/packages/playwright-core/src/utilsBundle.ts - <playwright>/packages/playwright-test/lib/reporters/html.js - <playwright>/tests/playwright-test/reporter-html.spec.ts - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/loader.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/runner.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/lib/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/playwright-core/lib/cli/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/playwright-core/cli.js - <playwright>/tests/playwright-test/stable-test-runner/node_modules/@playwright/test/cli.js at ../../packages/playwright-core/src/utilsBundle.ts:20 18 | import path from 'path'; 19 | > 20 | export const colors: typeof import('../bundles/utils/node_modules/colors/safe') = require('./utilsBundleImpl').colors; | ^ 21 | export const debug: typeof import('../bundles/utils/node_modules/@types/debug') = require('./utilsBundleImpl').debug; 22 | export const getProxyForUrl: typeof import('../bundles/utils/node_modules/@types/proxy-from-env').getProxyForUrl = require('./utilsBundleImpl').getProxyForUrl; 23 | export const HttpsProxyAgent: typeof import('../bundles/utils/node_modules/https-proxy-agent').HttpsProxyAgent = require('./utilsBundleImpl').HttpsProxyAgent; at Object.<anonymous> (<playwright>/packages/playwright-core/src/utilsBundle.ts:20:83) at Object.<anonymous> (<playwright>/packages/playwright-test/src/reporters/html.ts:17:1) ```
2022-12-07 02:46:19 +03:00
"allowJs": false,
"jsx": "react-jsx",
"resolveJsonModule": true,
"noEmit": true,
"noImplicitOverride": true,
"useUnknownInCatchVariables": false,
"skipLibCheck": true,
2019-11-19 05:18:28 +03:00
},
"compileOnSave": true,
2021-10-11 17:52:17 +03:00
"include": ["packages"],
"exclude": [
"packages/*/lib",
"packages/html-reporter/",
]
2019-11-19 05:18:28 +03:00
}