@yuu1111/tsconfig 1.0.0 → 1.0.2
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/README.md +2 -14
- package/base.json +1 -0
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -12,14 +12,11 @@ bun add -D @yuu1111/tsconfig
|
|
|
12
12
|
|
|
13
13
|
Extend one of the presets in your `tsconfig.json`:
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Base
|
|
16
16
|
|
|
17
17
|
```json
|
|
18
18
|
{
|
|
19
|
-
"extends": "@yuu1111/tsconfig/
|
|
20
|
-
"compilerOptions": {
|
|
21
|
-
"outDir": "dist"
|
|
22
|
-
}
|
|
19
|
+
"extends": "@yuu1111/tsconfig/base.json"
|
|
23
20
|
}
|
|
24
21
|
```
|
|
25
22
|
|
|
@@ -34,18 +31,9 @@ Extend one of the presets in your `tsconfig.json`:
|
|
|
34
31
|
}
|
|
35
32
|
```
|
|
36
33
|
|
|
37
|
-
### Base (custom setup)
|
|
38
|
-
|
|
39
|
-
```json
|
|
40
|
-
{
|
|
41
|
-
"extends": "@yuu1111/tsconfig/base.json"
|
|
42
|
-
}
|
|
43
|
-
```
|
|
44
|
-
|
|
45
34
|
## Presets
|
|
46
35
|
|
|
47
36
|
| Preset | Use case |
|
|
48
37
|
|--------|----------|
|
|
49
38
|
| `base.json` | Strict shared base |
|
|
50
|
-
| `node.json` | Node.js (Node16 module resolution) |
|
|
51
39
|
| `react.json` | React (JSX + DOM types) |
|
package/base.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuu1111/tsconfig",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Shared TypeScript configurations",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"tsconfig": "./base.json",
|
|
7
7
|
"files": [
|
|
8
8
|
"base.json",
|
|
9
|
-
"node.json",
|
|
10
9
|
"react.json"
|
|
11
10
|
],
|
|
12
11
|
"keywords": [
|