@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.
Files changed (3) hide show
  1. package/README.md +2 -14
  2. package/base.json +1 -0
  3. 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
- ### Node.js
15
+ ### Base
16
16
 
17
17
  ```json
18
18
  {
19
- "extends": "@yuu1111/tsconfig/node.json",
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
@@ -2,6 +2,7 @@
2
2
  "$schema": "https://json.schemastore.org/tsconfig",
3
3
  "compilerOptions": {
4
4
  "strict": true,
5
+ "lib": ["ESNext"],
5
6
  "target": "ESNext",
6
7
  "module": "ESNext",
7
8
  "moduleResolution": "bundler",
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@yuu1111/tsconfig",
3
- "version": "1.0.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": [