@4mbl/tsconfig 4.3.0 → 5.0.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @4mbl/tsconfig Changelog
2
2
 
3
+ ## 5.0.0-beta.0
4
+
5
+ ### Major Changes
6
+
7
+ - e651e24: Enable `noUncheckedSideEffectImports` on all templates. This is the default in TypeScript 6/7, we set it explicitly to ensure consistent behavior for templates that already enabled it.
8
+ - e651e24: Disable automatic type discovery to align with TypeScript 6/7 behavior. Node.js types are now explicitly enabled for Node.js related templates.
9
+ - e651e24: All templates now have `rootDir` option set to './src' to align with TypeScript 6/7 behavior.
10
+ - e651e24: Drop explicit "dom.iterable" from `lib` as it is included in "dom" by default in TypeScript 6/7.
11
+ - e651e24: Remove explicit `target` from all templates to use the latest ECMAScript version in TypeScript 6/7. The ES version on `lib` is now "ESNext" all templates.
12
+
13
+ ## 4.4.0
14
+
15
+ ### Minor Changes
16
+
17
+ - 05ab9ba: [browser,node,node-ts] Replace `baseUrl` with `paths` catch-all to improve TypeScript 7 support.
18
+
3
19
  ## 4.3.0
4
20
 
5
21
  ### Minor Changes
package/dist/base.json CHANGED
@@ -3,7 +3,8 @@
3
3
  "display": "Base",
4
4
  "compilerOptions": {
5
5
  /* Base Options */
6
- "lib": ["ESNext"],
6
+ "rootDir": "${configDir}/src",
7
+ "lib": ["esnext"],
7
8
  "allowJs": true,
8
9
  "skipLibCheck": true,
9
10
  "resolveJsonModule": true,
@@ -11,9 +12,12 @@
11
12
  "paths": {
12
13
  "@/*": ["${configDir}/src/*"]
13
14
  },
15
+ "types": [],
14
16
 
15
17
  /* Output */
16
- "target": "ES6",
18
+ //* "target" is omitted here intentionally, typescript
19
+ //* defaults to current year's ecmascript standard
20
+
17
21
  "outDir": "${configDir}/dist",
18
22
  "sourceMap": true,
19
23
  "declarationMap": true,
@@ -36,7 +40,8 @@
36
40
  "noImplicitReturns": false,
37
41
  "noUnusedLocals": true,
38
42
  "noUnusedParameters": true,
39
- "noUncheckedIndexedAccess": true
43
+ "noUncheckedIndexedAccess": true,
44
+ "noUncheckedSideEffectImports": true
40
45
  },
41
46
  "include": ["${configDir}/src/**/*"],
42
47
  "exclude": ["${configDir}/node_modules"]
package/dist/browser.json CHANGED
@@ -3,11 +3,12 @@
3
3
  "display": "Browser",
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
6
+ "lib": ["esnext", "dom"],
7
7
  "jsx": "react-jsx",
8
8
  "module": "ESNext",
9
9
  "moduleResolution": "Bundler",
10
- "baseUrl": "${configDir}/src",
10
+ "paths": { "*": ["${configDir}/src/*"] },
11
+ "types": [],
11
12
  "noEmit": true,
12
13
  "sourceMap": true
13
14
  }
package/dist/next.json CHANGED
@@ -3,8 +3,7 @@
3
3
  "display": "Next.js",
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
- "target": "ES2017",
7
- "lib": ["dom", "dom.iterable", "esnext"],
6
+ "lib": ["esnext", "dom"],
8
7
  "allowJs": true,
9
8
  "skipLibCheck": true,
10
9
  "strict": true,
@@ -23,7 +22,8 @@
23
22
  ],
24
23
  "paths": {
25
24
  "@/*": ["${configDir}/src/*"]
26
- }
25
+ },
26
+ "types": ["node"]
27
27
  },
28
28
  "include": [
29
29
  "${configDir}/next-env.d.ts",
package/dist/node-ts.json CHANGED
@@ -4,10 +4,10 @@
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
6
  // same options as node template
7
- "target": "ESNext",
8
7
  "moduleResolution": "NodeNext",
9
8
  "module": "NodeNext",
10
- "baseUrl": "${configDir}/src",
9
+ "paths": { "*": ["${configDir}/src/*"] },
10
+ "types": ["node"],
11
11
 
12
12
  // options for typescript-only
13
13
  // https://nodejs.org/api/typescript.html#type-stripping
package/dist/node.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "display": "Node",
4
4
  "extends": "./base.json",
5
5
  "compilerOptions": {
6
- "target": "ESNext",
7
6
  "moduleResolution": "NodeNext",
8
7
  "module": "NodeNext",
9
- "baseUrl": "${configDir}/src"
8
+ "paths": { "*": ["${configDir}/src/*"] },
9
+ "types": ["node"]
10
10
  }
11
11
  }
@@ -4,19 +4,16 @@
4
4
  "extends": "../base.json",
5
5
  "compilerOptions": {
6
6
  "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.app.tsbuildinfo",
7
- "target": "ES2022",
8
7
  "useDefineForClassFields": true,
9
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
8
+ "lib": ["esnext", "dom"],
10
9
  "module": "ESNext",
10
+ "types": [],
11
11
 
12
12
  /* Bundler mode */
13
13
  "moduleResolution": "bundler",
14
14
  "allowImportingTsExtensions": true,
15
15
  "noEmit": true,
16
- "jsx": "react-jsx",
17
-
18
- /* Linting */
19
- "noUncheckedSideEffectImports": true
16
+ "jsx": "react-jsx"
20
17
  },
21
18
  "include": ["${configDir}/src"]
22
19
  }
@@ -4,17 +4,14 @@
4
4
  "extends": "../base.json",
5
5
  "compilerOptions": {
6
6
  "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.node.tsbuildinfo",
7
- "target": "ES2023",
8
- "lib": ["ES2023"],
7
+ "lib": ["esnext"],
9
8
  "module": "ESNext",
9
+ "types": ["node"],
10
10
 
11
11
  /* Bundler mode */
12
12
  "moduleResolution": "bundler",
13
13
  "allowImportingTsExtensions": true,
14
- "noEmit": true,
15
-
16
- /* Linting */
17
- "noUncheckedSideEffectImports": true
14
+ "noEmit": true
18
15
  },
19
16
  "include": ["${configDir}/vite.config.ts"]
20
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4mbl/tsconfig",
3
- "version": "4.3.0",
3
+ "version": "5.0.0-beta.0",
4
4
  "description": "Strict TypeScript configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
@@ -30,7 +30,7 @@
30
30
  "tsconfig"
31
31
  ],
32
32
  "peerDependencies": {
33
- "typescript": ">=5.8.0"
33
+ "typescript": ">=6.0.0"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "typescript": {