-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
52 lines (52 loc) · 1.33 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
45
46
47
48
49
50
51
52
{
"compilerOptions": {
"target": "es2018",
"module": "esnext",
"lib": ["esnext", "DOM", "DOM.Iterable"],
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"types": ["vitest/globals"],
"jsx": "preserve",
"experimentalDecorators": true,
"noEmit": true,
"paths": {
// gain typescript inference
"@contextmenu/core": ["./packages/core/src/index.ts"],
"@contextmenu/vue": ["./packages/vue/src/index.ts"],
"@contextmenu/react": ["./packages/react/src/index.ts"],
"@contextmenu/angular": ["./packages/angular/src/index.ts"],
"@contextmenu/shared": ["./packages/shared/src/index.ts"],
// stub react as empty
"react": ["./stub/types__react"]
}
},
"include": [
"packages/**/*.ts",
"packages/**/*.tsx",
"packages/**/*.vue",
"playground/**/*.ts",
"playground/**/*.tsx",
"playground/**/*.vue",
"meta",
"vitest.config.ts",
// "tests/**/*.ts",
"tests",
"scripts/*.ts",
"docs"
],
"exclude": [
"node_modules",
"**/**/dist",
"**/**/*.md",
"tests/**/*.d.ts"
]
// "references": [
// { "path": "./playground/react" },
// { "path": "./packages/react" }
// ]
}