@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.
Files changed (3) hide show
  1. package/README.md +7 -2
  2. package/base.json +2 -1
  3. 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`, and friends, on `NodeNext` /
21
- `ES2022`. Override anything in your own `compilerOptions`.
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
- "types": ["node"],
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btravstack/tsconfig",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared strict TypeScript configuration for btravstack packages",
5
5
  "keywords": [
6
6
  "config",