@btravstack/tsconfig 0.1.0 → 0.2.0
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/README.md +7 -2
- package/base.json +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,12 @@ pnpm add -D @btravstack/tsconfig
|
|
|
17
17
|
|
|
18
18
|
`base.json` enables `strict`, `exactOptionalPropertyTypes`,
|
|
19
19
|
`noUncheckedIndexedAccess`, `noPropertyAccessFromIndexSignature`,
|
|
20
|
-
`noImplicitOverride`, `noImplicitReturns`,
|
|
21
|
-
`
|
|
20
|
+
`noImplicitOverride`, `noImplicitReturns`, `verbatimModuleSyntax`,
|
|
21
|
+
`moduleDetection: "force"`, and friends, on `NodeNext` / `ES2022`. Override
|
|
22
|
+
anything in your own `compilerOptions`.
|
|
23
|
+
|
|
24
|
+
It does **not** set `types` — TypeScript auto-includes every reachable
|
|
25
|
+
`@types/*` package (Node included). This avoids forcing each consuming package to
|
|
26
|
+
declare a direct `@types/node` just to satisfy a `types: ["node"]` list.
|
|
22
27
|
|
|
23
28
|
MIT © Benoit Travers
|
package/base.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
"target": "ES2022",
|
|
8
8
|
"lib": ["ES2023"],
|
|
9
|
-
"
|
|
9
|
+
"moduleDetection": "force",
|
|
10
10
|
|
|
11
11
|
"resolveJsonModule": true,
|
|
12
12
|
"allowJs": true,
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"esModuleInterop": true,
|
|
18
18
|
"forceConsistentCasingInFileNames": true,
|
|
19
19
|
"isolatedModules": true,
|
|
20
|
+
"verbatimModuleSyntax": true,
|
|
20
21
|
"skipLibCheck": true,
|
|
21
22
|
"strict": true,
|
|
22
23
|
"noUnusedLocals": true,
|