@kcconfigs/tsconfig 0.1.0 → 1.0.0-beta.1
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 +40 -0
- package/README.md +21 -1
- package/package.json +6 -3
- package/src/features/noDefaultTypes.json +10 -0
- package/src/features/types.json +2 -0
- package/src/presets/root.json +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.0-beta.1](https://github.com/kc-workspace/kcws/compare/@kcconfigs/tsconfig+v0.1.1...@kcconfigs/tsconfig+v1.0.0-beta.1) (2026-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **kcconfigs/tsconfig:** update root preset with monorepo structure layout ([73dc55d](https://github.com/kc-workspace/kcws/commit/73dc55dbf3f95702fd469340b2234a84e1e1b192))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* **kcconfigs/tsconfig:** force update v0.1.1 => v1.0.0-beta.1 ([707ae11](https://github.com/kc-workspace/kcws/commit/707ae116a0e7f534c054a6d4eca827b34191919f))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* The following workspace dependencies were updated
|
|
19
|
+
* devDependencies
|
|
20
|
+
* @kcconfigs/biome bumped to 1.0.0-beta.1
|
|
21
|
+
|
|
22
|
+
## [0.1.1](https://github.com/kc-workspace/kcws/compare/@kcconfigs/tsconfig+v0.1.0...@kcconfigs/tsconfig+v0.1.1) (2026-03-18)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **kcconfigs/tsconfig:** add @types/node as default types ([d3a748d](https://github.com/kc-workspace/kcws/commit/d3a748d3deb77fdd8d721b9447738bb8c2dfee54))
|
|
28
|
+
* **kcconfigs/tsconfig:** add noDefaultTypes feature to disable default type from presets ([070d13b](https://github.com/kc-workspace/kcws/commit/070d13b96fbcc24f0fffd607b4337210e4e15c8a))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Performance Improvements
|
|
32
|
+
|
|
33
|
+
* **deps:** bump tsdown from 0.18.4 to 0.20.1 ([#70](https://github.com/kc-workspace/kcws/issues/70)) ([24a3e06](https://github.com/kc-workspace/kcws/commit/24a3e0689e5b512d7a80fb6719387ab777662bb7))
|
|
34
|
+
* **deps:** update biome schema version from 2.3.10 to 2.4.6 across all packages ([909ff7e](https://github.com/kc-workspace/kcws/commit/909ff7ede64869a571dac9969169067e8d4b7fbc))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Dependencies
|
|
38
|
+
|
|
39
|
+
* The following workspace dependencies were updated
|
|
40
|
+
* devDependencies
|
|
41
|
+
* @kcconfigs/biome bumped to 0.2.2
|
|
42
|
+
|
|
3
43
|
## [0.1.0](https://github.com/kc-workspace/kcws/compare/@kcconfigs/tsconfig+v0.1.0-beta.2...@kcconfigs/tsconfig+v0.1.0) (2026-01-13)
|
|
4
44
|
|
|
5
45
|
|
package/README.md
CHANGED
|
@@ -8,12 +8,14 @@ Provides multiple tsconfig.json templates for different project types and use ca
|
|
|
8
8
|
- [Recommended settings](#recommended-settings)
|
|
9
9
|
- [Usage](#usage)
|
|
10
10
|
- [Presets](#presets)
|
|
11
|
+
- [Root](#root)
|
|
11
12
|
- [Environments](#environments)
|
|
12
13
|
- [Features](#features)
|
|
13
14
|
- [Custom settings](#custom-settings)
|
|
14
15
|
- [Compiler Options](#compiler-options)
|
|
15
16
|
- [Example](#example)
|
|
16
17
|
- [TSDown](#tsdown)
|
|
18
|
+
- [Investigate](#investigate)
|
|
17
19
|
- [References](#references)
|
|
18
20
|
|
|
19
21
|
## Prerequisites
|
|
@@ -41,7 +43,7 @@ This package provides multiple tsconfig presets, environments, and features:
|
|
|
41
43
|
| `@kcconfigs/tsconfig/base` | Base configuration for general typescript |
|
|
42
44
|
| `@kcconfigs/tsconfig` | Default configuration |
|
|
43
45
|
| `@kcconfigs/tsconfig/commonjs` | Default but for CommonJS (not recommended) |
|
|
44
|
-
| `@kcconfigs/tsconfig/root` | Use monorepo root
|
|
46
|
+
| `@kcconfigs/tsconfig/root` | Use monorepo root with /packages |
|
|
45
47
|
| `@kcconfigs/tsconfig/bundler` | Use for with bundler (vite, tsdown, etc.) |
|
|
46
48
|
| `@kcconfigs/tsconfig/dts` | Use for generate declaration and maps |
|
|
47
49
|
| `@kcconfigs/tsconfig/zshy` | Use with [zshy][zshy] |
|
|
@@ -54,6 +56,18 @@ Example use presets
|
|
|
54
56
|
}
|
|
55
57
|
```
|
|
56
58
|
|
|
59
|
+
#### Root
|
|
60
|
+
|
|
61
|
+
We are have some restriction:
|
|
62
|
+
|
|
63
|
+
1. Your packages must be on `packages` directory
|
|
64
|
+
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"extends": "@kcconfigs/tsconfig/root"
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
57
71
|
### Environments
|
|
58
72
|
|
|
59
73
|
| Name | Description |
|
|
@@ -79,6 +93,7 @@ Example use presets
|
|
|
79
93
|
| `@kcconfigs/tsconfig/features/declarationOnly` | Only emit declaration files |
|
|
80
94
|
| `@kcconfigs/tsconfig/features/diagnostics` | Add diagnostics output for debugging |
|
|
81
95
|
| `@kcconfigs/tsconfig/features/nodeRuntime` | Set typescript to support directly run from Node.js |
|
|
96
|
+
| `@kcconfigs/tsconfig/features/noDefaultTypes` | Disable small set of default types |
|
|
82
97
|
| `@kcconfigs/tsconfig/features/noIncremental` | Disable incremental from base config |
|
|
83
98
|
| `@kcconfigs/tsconfig/features/noSourcemap` | Disable source map and declaration maps output |
|
|
84
99
|
| `@kcconfigs/tsconfig/features/noStrict` | Disable strict mode when type checks |
|
|
@@ -140,6 +155,11 @@ Below are the example configuration per tools or frameworks.
|
|
|
140
155
|
|
|
141
156
|
<!-- TODO: Add more -->
|
|
142
157
|
|
|
158
|
+
## Investigate
|
|
159
|
+
|
|
160
|
+
You can use `tsc --showConfig` command to show the full config
|
|
161
|
+
after resolved **extends** path.
|
|
162
|
+
|
|
143
163
|
## References
|
|
144
164
|
|
|
145
165
|
- [TypeScript Configuration][tsconfig]
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kcconfigs/tsconfig",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Shared tsconfig.json",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@types/node": "^24.0.0"
|
|
7
|
+
},
|
|
5
8
|
"devDependencies": {
|
|
6
|
-
"@biomejs/biome": "2.
|
|
7
|
-
"@kcconfigs/biome": "0.
|
|
9
|
+
"@biomejs/biome": "2.4.6",
|
|
10
|
+
"@kcconfigs/biome": "1.0.0-beta.1"
|
|
8
11
|
},
|
|
9
12
|
"peerDependencies": {
|
|
10
13
|
"typescript": "^5.5.0"
|
package/src/features/types.json
CHANGED
package/src/presets/root.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
-
"extends": ["./default.json"]
|
|
3
|
+
"extends": ["./default.json"],
|
|
4
|
+
"include": ["${configDir}/package.json", "${configDir}/packages/**/*.ts"],
|
|
5
|
+
"exclude": [
|
|
6
|
+
"${configDir}/**/node_modules/**",
|
|
7
|
+
"${configDir}/**/*.config.ts",
|
|
8
|
+
"${configDir}/**/*.test.ts",
|
|
9
|
+
"${configDir}/**/*.spec.ts",
|
|
10
|
+
"${configDir}/**/*.test-d.ts",
|
|
11
|
+
"${configDir}/**/*.spec-d.ts"
|
|
12
|
+
],
|
|
13
|
+
"compilerOptions": {
|
|
14
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
15
|
+
"rootDir": "${configDir}/packages"
|
|
16
|
+
}
|
|
4
17
|
}
|