@kcconfigs/tsconfig 0.1.0-beta.1 → 0.1.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 +73 -2
- package/README.md +144 -6
- package/package.json +8 -13
- package/src/envs/node.json +8 -0
- package/src/envs/web.json +11 -0
- package/src/features/bundler.json +11 -0
- package/src/features/commonjs.json +10 -0
- package/src/features/declaration.json +14 -0
- package/src/features/declarationOnly.json +10 -0
- package/src/features/diagnostics.json +8 -0
- package/src/{tsconfig.root.json → features/empty.json} +1 -1
- package/src/features/es5.json +7 -0
- package/src/features/es6.json +7 -0
- package/src/features/js.json +11 -0
- package/src/features/noIncremental.json +7 -0
- package/src/features/noSourcemap.json +8 -0
- package/src/features/noStrict.json +13 -0
- package/src/features/nodeRuntime.json +12 -0
- package/src/features/tslib.json +7 -0
- package/src/features/types.json +10 -0
- package/src/presets/base.json +50 -0
- package/src/presets/bundler.json +8 -0
- package/src/presets/commonjs.json +4 -0
- package/src/presets/default.json +19 -0
- package/src/presets/dts.json +4 -0
- package/src/presets/root.json +4 -0
- package/src/presets/zshy.json +8 -0
- package/src/base/tsconfig.json +0 -31
- package/src/tsconfig.base.json +0 -8
- package/src/tsconfig.bundler.json +0 -12
- package/src/tsconfig.default.json +0 -18
- package/src/tsconfig.dts.json +0 -10
- package/src/tsconfig.zshy.json +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,82 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.1.0
|
|
3
|
+
## [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
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **kcconfigs/tsconfig:** remove default types and kctypes, user must install themselves
|
|
9
|
+
* **kcconfigs/tsconfig:** remove /default and use `@kcconfigs/tsconfig` instead
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **kcconfigs/tsconfig:** remove default types and kctypes, user must install themselves ([5f2989d](https://github.com/kc-workspace/kcws/commit/5f2989d1c091a3ae78f43ce5320ff232246e035f))
|
|
14
|
+
* **kcconfigs/tsconfig:** rewrite the config and utilize ts5.5 features ([cf661d5](https://github.com/kc-workspace/kcws/commit/cf661d5c52e23d4a3e6d0c3ea5fe33e7cbd56060))
|
|
15
|
+
* **kcconfigs/tsconfig:** utilize typescript v5.5 features to support relative from root config ([48cd74a](https://github.com/kc-workspace/kcws/commit/48cd74a3a0e4a5e64530a22865d8c5a2f948cf5e))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Performance Improvements
|
|
19
|
+
|
|
20
|
+
* **kcconfigs/tsconfig:** remove /default and use `@kcconfigs/tsconfig` instead ([bfec7e6](https://github.com/kc-workspace/kcws/commit/bfec7e6ea78c38019b267376e2f576cd6c9b79d5))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bugfixes
|
|
24
|
+
|
|
25
|
+
* **kcconfigs/tsconfig:** move checkJs to features/js instead of base preset ([0316897](https://github.com/kc-workspace/kcws/commit/0316897d7533a2eddf6c5510c1eb59d7731e1341))
|
|
26
|
+
* **kcconfigs/tsconfig:** update docs ([89a39e1](https://github.com/kc-workspace/kcws/commit/89a39e1f30db14854bbfe56b2c8a5163db84d96d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Documentation
|
|
30
|
+
|
|
31
|
+
* add package version and changelog to documentation site ([722fab5](https://github.com/kc-workspace/kcws/commit/722fab5e2472b7d4e4fd5ba446c369f36bd1b4f1))
|
|
32
|
+
* **kcconfigs/tsconfig:** add readme for installation, usage, and example ([87e9069](https://github.com/kc-workspace/kcws/commit/87e90699de4f26bb0c4c934f30894b2b640fc060))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Miscellaneous Chores
|
|
36
|
+
|
|
37
|
+
* **kcconfigs/tsconfig:** force update v0.1.0-beta.2 => v0.1.0 ([6a2d78d](https://github.com/kc-workspace/kcws/commit/6a2d78dec4efaaf9a816618a558179a39d6c4e15))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* The following workspace dependencies were updated
|
|
43
|
+
* devDependencies
|
|
44
|
+
* @kcconfigs/biome bumped to 0.2.1
|
|
45
|
+
|
|
46
|
+
## [0.1.0-beta.2](https://github.com/kc-workspace/kcws/compare/@kcconfigs/tsconfig+v0.1.0-beta.1...@kcconfigs/tsconfig+v0.1.0-beta.2) (2026-01-10)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### ⚠ BREAKING CHANGES
|
|
50
|
+
|
|
51
|
+
* **kcconfigs/biome:** Use @kcconfigs/biome instead of @kcconfigs/biome/default when use shared config
|
|
52
|
+
|
|
53
|
+
### Performance Improvements
|
|
54
|
+
|
|
55
|
+
* **kcconfigs/biome:** remove /default exports and add typedoc conditions ([5e1ab7d](https://github.com/kc-workspace/kcws/commit/5e1ab7d9be478fedbb29d2e68801c7689cd39882))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Bugfixes
|
|
59
|
+
|
|
60
|
+
* **config:** update schema version from 2.3.8 to 2.3.10 across all biome configuration files ([751ee20](https://github.com/kc-workspace/kcws/commit/751ee207527ed05720ad415927e0b0f27bdf9bdf))
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### Documentation
|
|
64
|
+
|
|
65
|
+
* update changelog to fix invalid url ([7f14bb5](https://github.com/kc-workspace/kcws/commit/7f14bb520342dc1dfb546a166bf64ef8a357451e))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Dependencies
|
|
69
|
+
|
|
70
|
+
* The following workspace dependencies were updated
|
|
71
|
+
* devDependencies
|
|
72
|
+
* @kcconfigs/biome bumped to 0.2.0
|
|
73
|
+
|
|
74
|
+
## 0.1.0-beta.1 (2025-12-28)
|
|
4
75
|
|
|
5
76
|
|
|
6
77
|
### Bugfixes
|
|
7
78
|
|
|
8
|
-
* update all
|
|
79
|
+
* update all `@kcconfigs` description so it trigger new deployment with new tag separator ([cf5be8c](https://github.com/kc-workspace/kcws/commit/cf5be8cc02fba8becb7e8f31fd6f3a741c0f0b95))
|
|
9
80
|
|
|
10
81
|
|
|
11
82
|
### Dependencies
|
package/README.md
CHANGED
|
@@ -1,11 +1,149 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kcconfigs/tsconfig
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared TypeScript configuration presets for the kc-workspace monorepo.
|
|
4
|
+
Provides multiple tsconfig.json templates for different project types and use cases.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
- [Prerequisites](#prerequisites)
|
|
7
|
+
- [Installation](#installation)
|
|
8
|
+
- [Recommended settings](#recommended-settings)
|
|
9
|
+
- [Usage](#usage)
|
|
10
|
+
- [Presets](#presets)
|
|
11
|
+
- [Environments](#environments)
|
|
12
|
+
- [Features](#features)
|
|
13
|
+
- [Custom settings](#custom-settings)
|
|
14
|
+
- [Compiler Options](#compiler-options)
|
|
15
|
+
- [Example](#example)
|
|
16
|
+
- [TSDown](#tsdown)
|
|
17
|
+
- [References](#references)
|
|
6
18
|
|
|
7
|
-
|
|
19
|
+
## Prerequisites
|
|
8
20
|
|
|
9
|
-
|
|
21
|
+
- **TypeScript**: 5.5.0 or higher (as peer dependency)
|
|
10
22
|
|
|
11
|
-
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pnpm add --save-dev typescript @kcconfigs/tsconfig
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Recommended settings
|
|
30
|
+
|
|
31
|
+
- `"type": "module"` on package.json ([learn more][package.json#type])
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
|
|
35
|
+
This package provides multiple tsconfig presets, environments, and features:
|
|
36
|
+
|
|
37
|
+
### Presets
|
|
38
|
+
|
|
39
|
+
| Name | Description |
|
|
40
|
+
| ------------------------------ | ------------------------------------------ |
|
|
41
|
+
| `@kcconfigs/tsconfig/base` | Base configuration for general typescript |
|
|
42
|
+
| `@kcconfigs/tsconfig` | Default configuration |
|
|
43
|
+
| `@kcconfigs/tsconfig/commonjs` | Default but for CommonJS (not recommended) |
|
|
44
|
+
| `@kcconfigs/tsconfig/root` | Use monorepo root |
|
|
45
|
+
| `@kcconfigs/tsconfig/bundler` | Use for with bundler (vite, tsdown, etc.) |
|
|
46
|
+
| `@kcconfigs/tsconfig/dts` | Use for generate declaration and maps |
|
|
47
|
+
| `@kcconfigs/tsconfig/zshy` | Use with [zshy][zshy] |
|
|
48
|
+
|
|
49
|
+
Example use presets
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"extends": "@kcconfigs/tsconfig"
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Environments
|
|
58
|
+
|
|
59
|
+
| Name | Description |
|
|
60
|
+
| ------------------------------- | ----------------------- |
|
|
61
|
+
| `@kcconfigs/tsconfig/envs/node` | For node environment |
|
|
62
|
+
| `@kcconfigs/tsconfig/envs/web` | For browser environment |
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"extends": [
|
|
67
|
+
"@kcconfigs/tsconfig",
|
|
68
|
+
"@kcconfigs/tsconfig/envs/node"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Features
|
|
74
|
+
|
|
75
|
+
| Name | Description |
|
|
76
|
+
| ---------------------------------------------- | --------------------------------------------------- |
|
|
77
|
+
| `@kcconfigs/tsconfig/features/bundler` | Set for bundler mode |
|
|
78
|
+
| `@kcconfigs/tsconfig/features/declaration` | Add declaration files |
|
|
79
|
+
| `@kcconfigs/tsconfig/features/declarationOnly` | Only emit declaration files |
|
|
80
|
+
| `@kcconfigs/tsconfig/features/diagnostics` | Add diagnostics output for debugging |
|
|
81
|
+
| `@kcconfigs/tsconfig/features/nodeRuntime` | Set typescript to support directly run from Node.js |
|
|
82
|
+
| `@kcconfigs/tsconfig/features/noIncremental` | Disable incremental from base config |
|
|
83
|
+
| `@kcconfigs/tsconfig/features/noSourcemap` | Disable source map and declaration maps output |
|
|
84
|
+
| `@kcconfigs/tsconfig/features/noStrict` | Disable strict mode when type checks |
|
|
85
|
+
| `@kcconfigs/tsconfig/features/tslib` | Enable using helpers from `tslib` |
|
|
86
|
+
| `@kcconfigs/tsconfig/features/types` | Support custom `@kctypes/*` packages as types |
|
|
87
|
+
| `@kcconfigs/tsconfig/features/js` | Allow JavaScript files to be imported |
|
|
88
|
+
| `@kcconfigs/tsconfig/features/es5` | Set target to ES5 (2009) for backward compatible |
|
|
89
|
+
| `@kcconfigs/tsconfig/features/es6` | Set target to ES6 (ES2015) for backward compatible |
|
|
90
|
+
| `@kcconfigs/tsconfig/features/empty` | Starting point for new features |
|
|
91
|
+
|
|
92
|
+
Example use features
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"extends": [
|
|
97
|
+
"@kcconfigs/tsconfig",
|
|
98
|
+
"@kcconfigs/tsconfig/envs/node",
|
|
99
|
+
"@kcconfigs/tsconfig/features/noSourcemap"
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Custom settings
|
|
105
|
+
|
|
106
|
+
To extend configurations with custom settings:
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
{
|
|
110
|
+
"extends": ["@kcconfigs/tsconfig", "@kcconfigs/tsconfig/envs/node"],
|
|
111
|
+
"include": ["src/**/*"],
|
|
112
|
+
"exclude": ["node_modules", "dist", "**/*.test.ts"],
|
|
113
|
+
"compilerOptions": {
|
|
114
|
+
"declaration": true
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Compiler Options
|
|
120
|
+
|
|
121
|
+
All configurations inherit base settings:
|
|
122
|
+
|
|
123
|
+
- **Target**: ESNext
|
|
124
|
+
- **Module**: ESNext
|
|
125
|
+
- **Strict Mode**: Enabled
|
|
126
|
+
- **Source Maps**: Enabled
|
|
127
|
+
- **Check Js**: Enabled
|
|
128
|
+
|
|
129
|
+
## Example
|
|
130
|
+
|
|
131
|
+
Below are the example configuration per tools or frameworks.
|
|
132
|
+
|
|
133
|
+
### TSDown
|
|
134
|
+
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"extends": "@kcconfigs/tsconfig/bundler"
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
<!-- TODO: Add more -->
|
|
142
|
+
|
|
143
|
+
## References
|
|
144
|
+
|
|
145
|
+
- [TypeScript Configuration][tsconfig]
|
|
146
|
+
|
|
147
|
+
[package.json#type]: https://nodejs.org/api/packages.html#type
|
|
148
|
+
[zshy]: https://github.com/colinhacks/zshy
|
|
149
|
+
[tsconfig]: https://www.typescriptlang.org/tsconfig
|
package/package.json
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kcconfigs/tsconfig",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Shared tsconfig.json",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@types/node": "^24.0.0",
|
|
7
6
|
"@biomejs/biome": "2.3.10",
|
|
8
|
-
"@kcconfigs/biome": "0.
|
|
9
|
-
"@kctypes/generic": "1.30.3",
|
|
10
|
-
"@kctypes/package_json": "1.30.4"
|
|
7
|
+
"@kcconfigs/biome": "0.2.1"
|
|
11
8
|
},
|
|
12
9
|
"peerDependencies": {
|
|
13
|
-
"typescript": "^5.
|
|
10
|
+
"typescript": "^5.5.0"
|
|
14
11
|
},
|
|
15
|
-
"main": "./src/
|
|
12
|
+
"main": "./src/presets/default.json",
|
|
16
13
|
"exports": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"./
|
|
20
|
-
"./
|
|
21
|
-
"./bundler": "./src/tsconfig.bundler.json",
|
|
22
|
-
"./zshy": "./src/tsconfig.zshy.json"
|
|
14
|
+
".": "./src/presets/default.json",
|
|
15
|
+
"./*": "./src/presets/*.json",
|
|
16
|
+
"./envs/*": "./src/envs/*.json",
|
|
17
|
+
"./features/*": "./src/features/*.json"
|
|
23
18
|
},
|
|
24
19
|
"license": "AGPL-3.0-only",
|
|
25
20
|
"homepage": "https://github.com/kc-workspace/kcws/tree/main/packages/@kcconfigs/tsconfig",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
5
|
+
"allowArbitraryExtensions": true,
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
|
|
8
|
+
// Language and Environment - https://www.typescriptlang.org/tsconfig/#Language_and_Environment_6254
|
|
9
|
+
"lib": ["ESNext", "DOM"]
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
5
|
+
"customConditions": ["source"],
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
|
|
8
|
+
// Emit - https://www.typescriptlang.org/tsconfig/#Emit_6205
|
|
9
|
+
"noEmit": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
5
|
+
"module": "commonjs",
|
|
6
|
+
|
|
7
|
+
// Interop Constraints - https://www.typescriptlang.org/tsconfig/#Interop_Constraints_6252
|
|
8
|
+
"verbatimModuleSyntax": false
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Projects - https://www.typescriptlang.org/tsconfig/#Projects_6255
|
|
5
|
+
"composite": true,
|
|
6
|
+
|
|
7
|
+
// Emit - https://www.typescriptlang.org/tsconfig/#Emit_6246
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationMap": true,
|
|
10
|
+
|
|
11
|
+
// Interop Constraints - https://www.typescriptlang.org/tsconfig/#Interop_Constraints_6252
|
|
12
|
+
"isolatedDeclarations": true
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Projects - https://www.typescriptlang.org/tsconfig/#Projects_6255
|
|
5
|
+
"composite": true,
|
|
6
|
+
|
|
7
|
+
// Emit - https://www.typescriptlang.org/tsconfig/#Emit_6246
|
|
8
|
+
"emitDeclarationOnly": true
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Interop Constraints - https://www.typescriptlang.org/tsconfig/#Interop_Constraints_6252
|
|
5
|
+
"isolatedDeclarations": false,
|
|
6
|
+
|
|
7
|
+
// JavaScript Support - https://www.typescriptlang.org/tsconfig/#JavaScript_Support_6247
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"checkJs": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Type Checking - https://www.typescriptlang.org/tsconfig/#Type_Checking_6248
|
|
5
|
+
"strict": false,
|
|
6
|
+
"exactOptionalPropertyTypes": false,
|
|
7
|
+
"noFallthroughCasesInSwitch": false,
|
|
8
|
+
"noImplicitOverride": false,
|
|
9
|
+
"noImplicitReturns": false,
|
|
10
|
+
"noPropertyAccessFromIndexSignature": false,
|
|
11
|
+
"noUncheckedIndexedAccess": false
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
/** This will disable all features not support by node runtime */
|
|
3
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
6
|
+
"rewriteRelativeImportExtensions": true,
|
|
7
|
+
|
|
8
|
+
// Interop Constraints - https://www.typescriptlang.org/tsconfig/#Interop_Constraints_6252
|
|
9
|
+
"erasableSyntaxOnly": true,
|
|
10
|
+
"verbatimModuleSyntax": true
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
// Type Checking - https://www.typescriptlang.org/tsconfig/#Type_Checking_6248
|
|
5
|
+
"strict": true,
|
|
6
|
+
"exactOptionalPropertyTypes": true,
|
|
7
|
+
"noFallthroughCasesInSwitch": true,
|
|
8
|
+
"noImplicitOverride": true,
|
|
9
|
+
"noImplicitReturns": true,
|
|
10
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
11
|
+
"noUncheckedIndexedAccess": true,
|
|
12
|
+
"noUnusedLocals": true,
|
|
13
|
+
"noUnusedParameters": true,
|
|
14
|
+
|
|
15
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
16
|
+
"module": "preserve",
|
|
17
|
+
"noUncheckedSideEffectImports": true,
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
|
|
20
|
+
// Emit - https://www.typescriptlang.org/tsconfig/#Emit_6246
|
|
21
|
+
"sourceMap": true,
|
|
22
|
+
|
|
23
|
+
// Editor Support - https://www.typescriptlang.org/tsconfig/#Editor_Support_6249
|
|
24
|
+
|
|
25
|
+
// Interop Constraints - https://www.typescriptlang.org/tsconfig/#Interop_Constraints_6252
|
|
26
|
+
"allowSyntheticDefaultImports": true,
|
|
27
|
+
"esModuleInterop": true,
|
|
28
|
+
"forceConsistentCasingInFileNames": true,
|
|
29
|
+
"isolatedModules": true,
|
|
30
|
+
"verbatimModuleSyntax": true,
|
|
31
|
+
|
|
32
|
+
// Language and Environment - https://www.typescriptlang.org/tsconfig/#Language_and_Environment_6254
|
|
33
|
+
"moduleDetection": "force",
|
|
34
|
+
"target": "esnext",
|
|
35
|
+
|
|
36
|
+
// Compiler Diagnostics - https://www.typescriptlang.org/tsconfig/#Compiler_Diagnostics_6251
|
|
37
|
+
"extendedDiagnostics": false,
|
|
38
|
+
"listEmittedFiles": false,
|
|
39
|
+
|
|
40
|
+
// Projects - https://www.typescriptlang.org/tsconfig/#Projects_6255
|
|
41
|
+
"composite": false,
|
|
42
|
+
"incremental": true,
|
|
43
|
+
|
|
44
|
+
// Output Formatting - https://www.typescriptlang.org/tsconfig/#Output_Formatting_6256
|
|
45
|
+
"noErrorTruncation": true,
|
|
46
|
+
|
|
47
|
+
// Completeness - https://www.typescriptlang.org/tsconfig/#Completeness_6257
|
|
48
|
+
"skipLibCheck": true
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
+
"extends": ["./base.json", "../features/types.json"],
|
|
4
|
+
"include": ["${configDir}/package.json", "${configDir}/src/**/*.ts"],
|
|
5
|
+
"exclude": [
|
|
6
|
+
"${configDir}/**/node_modules/**",
|
|
7
|
+
"${configDir}/**/*.test.ts",
|
|
8
|
+
"${configDir}/**/*.spec.ts",
|
|
9
|
+
"${configDir}/**/*.test-d.ts",
|
|
10
|
+
"${configDir}/**/*.spec-d.ts"
|
|
11
|
+
],
|
|
12
|
+
"compilerOptions": {
|
|
13
|
+
// Modules - https://www.typescriptlang.org/tsconfig/#Modules_6244
|
|
14
|
+
"rootDir": "${configDir}/src",
|
|
15
|
+
|
|
16
|
+
// Emit - https://www.typescriptlang.org/tsconfig/#Emit_6246
|
|
17
|
+
"outDir": "${configDir}/dist"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/src/base/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
// Project performance optimizations
|
|
5
|
-
"incremental": true,
|
|
6
|
-
"composite": true,
|
|
7
|
-
|
|
8
|
-
// Environment setup & latest features
|
|
9
|
-
"target": "ESNext",
|
|
10
|
-
"module": "Preserve",
|
|
11
|
-
"moduleDetection": "force",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
|
|
14
|
-
// Output settings
|
|
15
|
-
"isolatedModules": true,
|
|
16
|
-
"esModuleInterop": true,
|
|
17
|
-
"forceConsistentCasingInFileNames": true,
|
|
18
|
-
|
|
19
|
-
// Best practices
|
|
20
|
-
"strict": true,
|
|
21
|
-
"skipLibCheck": true,
|
|
22
|
-
"noFallthroughCasesInSwitch": true,
|
|
23
|
-
"noUncheckedIndexedAccess": true,
|
|
24
|
-
"noImplicitOverride": true,
|
|
25
|
-
|
|
26
|
-
// Some stricter flags (disabled by default)
|
|
27
|
-
"noUnusedLocals": true,
|
|
28
|
-
"noUnusedParameters": true,
|
|
29
|
-
"noPropertyAccessFromIndexSignature": true
|
|
30
|
-
}
|
|
31
|
-
}
|
package/src/tsconfig.base.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
-
"extends": "./tsconfig.default.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
// Bundler mode
|
|
6
|
-
"moduleResolution": "bundler",
|
|
7
|
-
"allowImportingTsExtensions": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
|
|
10
|
-
"isolatedDeclarations": true
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
-
"extends": "./tsconfig.base.json",
|
|
4
|
-
"include": ["../../../../package.json", "../../../../src/**/*.ts"],
|
|
5
|
-
"exclude": ["../../../../src/**/*.test.ts"],
|
|
6
|
-
"compilerOptions": {
|
|
7
|
-
"rootDir": "../../../..",
|
|
8
|
-
"outDir": "../../../../dist",
|
|
9
|
-
"typeRoots": [
|
|
10
|
-
"../node_modules/@types",
|
|
11
|
-
"../node_modules/@kctypes",
|
|
12
|
-
"../../../../node_modules/@types",
|
|
13
|
-
"../../../../node_modules/@kctypes"
|
|
14
|
-
],
|
|
15
|
-
|
|
16
|
-
"verbatimModuleSyntax": true
|
|
17
|
-
}
|
|
18
|
-
}
|
package/src/tsconfig.dts.json
DELETED
package/src/tsconfig.zshy.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://www.schemastore.org/tsconfig",
|
|
3
|
-
"extends": "./tsconfig.default.json",
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"incremental": false,
|
|
6
|
-
"sourceMap": true,
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"isolatedDeclarations": true,
|
|
10
|
-
"emitDeclarationOnly": true
|
|
11
|
-
}
|
|
12
|
-
}
|