@codecompose/typescript-config 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base.json +6 -4
- package/nextjs.json +9 -4
- package/package.json +1 -1
- package/react-library.json +1 -1
package/base.json
CHANGED
|
@@ -18,14 +18,16 @@
|
|
|
18
18
|
"noUncheckedIndexedAccess": true,
|
|
19
19
|
"noImplicitOverride": true,
|
|
20
20
|
|
|
21
|
-
/*
|
|
21
|
+
/* Opinion */
|
|
22
|
+
"incremental": true,
|
|
22
23
|
"module": "preserve",
|
|
23
|
-
"outDir": "
|
|
24
|
-
"rootDir": "${configDir}/src",
|
|
24
|
+
"outDir": "dist",
|
|
25
25
|
"baseUrl": "${configDir}",
|
|
26
|
+
"rootDir": "${configDir}/src",
|
|
26
27
|
"paths": {
|
|
27
28
|
"~/*": ["./src/*"]
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
|
-
"include": ["
|
|
31
|
+
"include": ["src", "src/**/*.json"],
|
|
32
|
+
"exclude": ["node_modules", "dist"]
|
|
31
33
|
}
|
package/nextjs.json
CHANGED
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
"display": "A Next.js App",
|
|
4
4
|
"extends": "./base.json",
|
|
5
5
|
"compilerOptions": {
|
|
6
|
-
"jsx": "preserve",
|
|
6
|
+
"jsx": "preserve", // next does its own jsx transformation
|
|
7
7
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
8
8
|
"noEmit": true,
|
|
9
|
-
"
|
|
9
|
+
"rootDir": "${configDir}", // nextjs targets files outside of src in root as well
|
|
10
|
+
"plugins": [
|
|
11
|
+
{
|
|
12
|
+
"name": "next" // plugin comes installed with nextjs
|
|
13
|
+
}
|
|
14
|
+
]
|
|
10
15
|
},
|
|
11
|
-
"include": ["
|
|
12
|
-
"exclude": ["node_modules"]
|
|
16
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
17
|
+
"exclude": ["node_modules"]
|
|
13
18
|
}
|
package/package.json
CHANGED