@codecompose/typescript-config 3.0.2 → 3.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecompose/typescript-config",
3
3
  "description": "Opinionated reusable TypeScript configurations",
4
- "version": "3.0.2",
4
+ "version": "3.2.0",
5
5
  "license": "MIT",
6
6
  "author": "Thijs Koerselman",
7
7
  "homepage": "https://typescript-config.codecompose.dev",
@@ -34,6 +34,7 @@
34
34
  "./react-library": "./src/react-library.json",
35
35
  "./service": "./src/service.json",
36
36
  "./shared-library": "./src/shared-library.json",
37
+ "./infra": "./src/infra.json",
37
38
  "./shared-react-library": "./src/shared-react-library.json"
38
39
  },
39
40
  "peerDependencies": {
package/src/infra.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Infrastructure as Code (Pulumi)",
4
+ "compilerOptions": {
5
+ /* Base Options */
6
+ "skipLibCheck": true,
7
+ "target": "ES2022",
8
+ "lib": ["esnext"],
9
+ "allowJs": true,
10
+ "resolveJsonModule": true,
11
+ "moduleDetection": "force",
12
+
13
+ /* Module */
14
+ "module": "ESNext",
15
+ "moduleResolution": "bundler",
16
+
17
+ /* Strictness */
18
+ "strict": true,
19
+ "noUncheckedIndexedAccess": true,
20
+ "noImplicitOverride": true,
21
+
22
+ /* Pulumi */
23
+ "experimentalDecorators": true,
24
+ "sourceMap": true,
25
+ "noEmit": true,
26
+ /** TypeScript 6 no longer auto-includes @types packages. Infra code always
27
+ * runs on Node.js so we explicitly include @types/node. */
28
+ "types": ["node"]
29
+ },
30
+ "files": ["${configDir}/index.ts"]
31
+ }
package/src/service.json CHANGED
@@ -5,5 +5,8 @@
5
5
  "compilerOptions": {
6
6
  /* Assuming your bundler will output everything. */
7
7
  "noEmit": true,
8
+ /** TypeScript 6 no longer auto-includes @types packages. Services always
9
+ * run on Node.js so we explicitly include @types/node. */
10
+ "types": ["node"]
8
11
  }
9
12
  }