-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.ts-build.json
41 lines (41 loc) · 1.03 KB
/
tsconfig.ts-build.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
{
"extends": "./tsconfig.custom.json",
"compilerOptions": {
/**
* When we do a build, we want the output to be in `commonjs` so that plain
* Node.js can understand it.
*/
"module": "commonjs",
/**
* Emit
*
* Modify `tsconfig.json` to get it to emit.
*
* - emit `declaration`s
* - `noEmit` false so we get output
* - emit to `outDir` of `.dist`
* - convert `jsx` to React for a build (not Next.js expects this to
* be preserve when used with it but for a build this is correct)
*/
"declaration": true,
"noEmit": false,
"outDir": ".dist",
"jsx": "react-jsx"
},
/**
* Exclude `*.test.ts` files because they are not part of the output.
*/
"exclude": [
"**/*.test.ts",
"**/test/**/*",
"sample",
"lib",
"pages"
/**
* We don't actually want the `editor` folder in the build but we need it
* for now so that we get the `CustomTypes`. Otherwise, TypeScript fails
* build at the moment.
*/
// "editor"
]
}