forked from pegasystems/react-sdk-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.json
44 lines (38 loc) · 1.58 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"extends": "@pega/tsconfig/index.json",
"include": ["./**/*"],
"exclude": ["**/lib/**/*", "**/node_modules/**", "**/dist/**/*", "**/tests/**", "playwright.config.js"],
"compilerOptions": {
// Copied from SDK-R - JEA
"experimentalDecorators": true,
"strict": true,
"sourceMap": true,
"module": "ES2022",
"target": "ES2022",
"lib": ["ES2022", "DOM"],
"moduleResolution": "Node",
"jsx": "react-jsx", // May be different options for this with newer versions of React
"allowJs": true, // must be false for @pega/pcore-pconnect-typedefs
"noImplicitAny": false,
"allowSyntheticDefaultImports": true,
// End of copied from SDK-R
// Need to add this to remove errors of .js files trying to compile to the same path
"outDir": "./lib",
// Declare all ambient type declarations here for VSCode.
// Override with only specific types for other configurations.
"typeRoots": ["node_modules/@types", "node_modules/@pega"],
"types": ["jest", "@testing-library/jest-dom", "pcore-pconnect-typedefs"],
"noEmit": false, // JEA - was false
"incremental": true,
"inlineSources": true, // JEA - was true
// Update to usage of "import type" so these can inherit "error" and true from @pega/tsconfig.
"importsNotUsedAsValues": "remove",
"isolatedModules": false,
"baseUrl": "./",
// JEA - The "paths" may be for VS Code
"paths": {
// JEA - Bob thinks this may have been necessary for some VS Code intellisense but not sure.
"react-sdk-components": ["packages/react-sdk-components/src/*.jsx"]
}
}
}