-
Notifications
You must be signed in to change notification settings - Fork 8
/
tsconfig.json
34 lines (30 loc) · 1.17 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
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
// NOTE: We need to figure out a way to create .js files for the .ts files
// in the src/background process but the current work around with `npm run tsc`
// will suffice. Perhaps specifying a tsconfig inside the subfolder will work?
// Regardless, noEmit = true is required for create-react-app.
"noEmit": true,
"jsx": "react-jsx"
// NOTE: Why is the baseUrl only allowed to be ./src or ./node_modules?
// "baseUrl": "./src",
// NOTE: If we can figure out a way to set noEmit = false, then we will want
// to send the compiled .js files to the dist folder. Leave as is for now.
// "outDir": "./dist",
},
"include": ["./src/background/*", "./src/renderer/**/*"],
"exclude": ["./node_modules", "./dist", "./build"]
}