Skip to content

Commit f393a6a

Browse files
authored
Merge pull request #6 from react18-tools/chore/fix-ts-build
chore: promptshield + tsconfig updates
2 parents 326e84c + e676319 commit f393a6a

File tree

4 files changed

+56
-43
lines changed

4 files changed

+56
-43
lines changed
Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"display": "Next.js",
4-
"extends": "./base.json",
5-
"compilerOptions": {
6-
"allowJs": true,
7-
"declaration": false,
8-
"declarationMap": false,
9-
"incremental": true,
10-
"jsx": "preserve",
11-
"lib": ["dom", "dom.iterable", "esnext"],
12-
"module": "esnext",
13-
"noEmit": true,
14-
"resolveJsonModule": true,
15-
"target": "es5"
16-
}
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "Next.js",
4+
"extends": "./base.json",
5+
"compilerOptions": {
6+
"allowJs": true,
7+
"declaration": false,
8+
"declarationMap": false,
9+
"incremental": true,
10+
"jsx": "preserve",
11+
"lib": [
12+
"dom",
13+
"dom.iterable",
14+
"esnext"
15+
],
16+
"module": "esnext",
17+
"noEmit": true,
18+
"resolveJsonModule": true,
19+
"target": "esnext"
20+
}
1721
}
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"display": "React Library",
4-
"extends": "./base.json",
5-
"compilerOptions": {
6-
"lib": ["ES2015"],
7-
"module": "ESNext",
8-
"target": "ES6",
9-
"jsx": "react-jsx",
10-
"noEmit": true
11-
}
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "React Library",
4+
"extends": "./base.json",
5+
"compilerOptions": {
6+
"lib": [
7+
"ES2015"
8+
],
9+
"module": "ESNext",
10+
"target": "esnext",
11+
"jsx": "react-jsx",
12+
"noEmit": true
13+
}
1214
}
Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
1-
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "./base.json",
4-
"Display": "Vite",
5-
"compilerOptions": {
6-
"allowJs": false,
7-
"esModuleInterop": false,
8-
"jsx": "react",
9-
"lib": ["dom", "dom.iterable", "esnext"],
10-
"module": "ESNext",
11-
"noEmit": true,
12-
"resolveJsonModule": true,
13-
"skipLibCheck": false,
14-
"target": "ESNext",
15-
"types": ["vite/client"]
16-
}
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "./base.json",
4+
"Display": "Vite",
5+
"compilerOptions": {
6+
"allowJs": false,
7+
"esModuleInterop": false,
8+
"jsx": "react",
9+
"lib": [
10+
"dom",
11+
"dom.iterable",
12+
"esnext"
13+
],
14+
"module": "ESNext",
15+
"noEmit": true,
16+
"resolveJsonModule": true,
17+
"skipLibCheck": false,
18+
"target": "esnext",
19+
"types": [
20+
"vite/client"
21+
]
22+
}
1723
}

packages/shared/tsconfig-build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// using tsc for type declarations as "Note that declaration files generated by any tool other than tsc are not guaranteed to be error-free, so it's a good idea to test the output with tsc" - https://tsup.egoist.dev/#generate-declaration-file
33
"extends": "@repo/typescript-config/react-library.json",
44
"compilerOptions": {
5+
"rootDir": "./src",
56
"outDir": "dist",
67
"noEmit": false,
78
"emitDeclarationOnly": true,

0 commit comments

Comments
 (0)