@aryaemami59/tsconfig 0.0.6 → 0.0.8

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 (30) hide show
  1. package/README.md +1 -1
  2. package/package.json +75 -143
  3. package/scripts/build.ts +192 -182
  4. package/scripts/typeHelpers.ts +17 -11
  5. package/scripts/types.ts +302 -157
  6. package/src/bundler/commonjs/tsconfig.json +8 -0
  7. package/src/bundler/commonjs/with-js/tsconfig.json +9 -0
  8. package/src/bundler/esnext/tsconfig.json +1 -1
  9. package/src/bundler/preserve/tsconfig.json +1 -1
  10. package/src/create-react-app/tsconfig.json +2 -2
  11. package/src/node/commonjs/tsconfig.json +30 -0
  12. package/src/node/commonjs/with-js/tsconfig.json +9 -0
  13. package/src/node/{with-js → esnext/with-js}/tsconfig.json +1 -1
  14. package/src/node-10/commonjs/tsconfig.json +8 -0
  15. package/src/node-10/commonjs/with-js/tsconfig.json +9 -0
  16. package/src/node-10/{tsconfig.json → esnext/tsconfig.json} +1 -1
  17. package/src/node-10/{with-js → esnext/with-js}/tsconfig.json +1 -1
  18. package/src/node-16/{tsconfig.json → node16/tsconfig.json} +1 -1
  19. package/src/node-16/{with-js → node16/with-js}/tsconfig.json +1 -1
  20. package/src/node-16/node18/tsconfig.json +9 -0
  21. package/src/node-16/node18/with-js/tsconfig.json +9 -0
  22. package/src/node-16/node20/tsconfig.json +9 -0
  23. package/src/node-16/node20/with-js/tsconfig.json +9 -0
  24. package/src/node-next/node18/tsconfig.json +9 -0
  25. package/src/node-next/node18/with-js/tsconfig.json +9 -0
  26. package/src/node-next/node20/tsconfig.json +9 -0
  27. package/src/node-next/node20/with-js/tsconfig.json +9 -0
  28. package/src/node-next/{tsconfig.json → nodenext/tsconfig.json} +1 -1
  29. package/src/node-next/{with-js → nodenext/with-js}/tsconfig.json +1 -1
  30. /package/src/node/{tsconfig.json → esnext/tsconfig.json} +0 -0
package/README.md CHANGED
@@ -34,7 +34,7 @@ bun add --dev @aryaemami59/tsconfig
34
34
 
35
35
  ```json
36
36
  {
37
- "extends": "@aryaemami59/tsconfig/node",
37
+ "extends": "@aryaemami59/tsconfig/node/esnext",
38
38
  "compilerOptions": {
39
39
  "outDir": "./dist",
40
40
  "rootDir": "./src"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aryaemami59/tsconfig",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "TypeScript configuration",
5
5
  "keywords": [
6
6
  "config",
@@ -27,82 +27,62 @@
27
27
  "sideEffects": false,
28
28
  "type": "module",
29
29
  "exports": {
30
- ".": "./src/node/tsconfig.json",
31
- "./tsconfig.json": "./src/node/tsconfig.json",
32
- "./node": "./src/node/tsconfig.json",
33
- "./node/tsconfig.json": "./src/node/tsconfig.json",
34
- "./Node": "./src/node/tsconfig.json",
35
- "./node/with-js": "./src/node/with-js/tsconfig.json",
36
- "./Node/with-js": "./src/node/with-js/tsconfig.json",
37
- "./bundler": "./src/bundler/esnext/tsconfig.json",
38
- "./bundler/tsconfig.json": "./src/bundler/esnext/tsconfig.json",
39
- "./Bundler": "./src/bundler/esnext/tsconfig.json",
40
- "./bundler/with-js": "./src/bundler/esnext/with-js/tsconfig.json",
41
- "./Bundler/with-js": "./src/bundler/esnext/with-js/tsconfig.json",
30
+ ".": "./src/node/esnext/tsconfig.json",
31
+ "./tsconfig.json": "./src/node/esnext/tsconfig.json",
32
+ "./node/commonjs": "./src/node/commonjs/tsconfig.json",
33
+ "./node/commonjs/with-js": "./src/node/commonjs/with-js/tsconfig.json",
34
+ "./node/esnext": "./src/node/esnext/tsconfig.json",
35
+ "./node/esnext/with-js": "./src/node/esnext/with-js/tsconfig.json",
36
+ "./bundler/commonjs": "./src/bundler/commonjs/tsconfig.json",
37
+ "./bundler/commonjs/with-js": "./src/bundler/commonjs/with-js/tsconfig.json",
42
38
  "./bundler/esnext": "./src/bundler/esnext/tsconfig.json",
43
- "./Bundler/esnext": "./src/bundler/esnext/tsconfig.json",
44
- "./Bundler/ESNext": "./src/bundler/esnext/tsconfig.json",
45
39
  "./bundler/esnext/with-js": "./src/bundler/esnext/with-js/tsconfig.json",
46
- "./Bundler/esnext/with-js": "./src/bundler/esnext/with-js/tsconfig.json",
47
- "./Bundler/ESNext/with-js": "./src/bundler/esnext/with-js/tsconfig.json",
48
40
  "./bundler/preserve": "./src/bundler/preserve/tsconfig.json",
49
- "./Bundler/preserve": "./src/bundler/preserve/tsconfig.json",
50
- "./Bundler/Preserve": "./src/bundler/preserve/tsconfig.json",
51
41
  "./bundler/preserve/with-js": "./src/bundler/preserve/with-js/tsconfig.json",
52
- "./Bundler/preserve/with-js": "./src/bundler/preserve/with-js/tsconfig.json",
53
- "./Bundler/Preserve/with-js": "./src/bundler/preserve/with-js/tsconfig.json",
54
42
  "./cra": "./src/create-react-app/tsconfig.json",
55
43
  "./create-react-app": "./src/create-react-app/tsconfig.json",
56
- "./node-10": "./src/node-10/tsconfig.json",
57
- "./node10": "./src/node-10/tsconfig.json",
58
- "./node10/tsconfig.json": "./src/node-10/tsconfig.json",
59
- "./Node10": "./src/node-10/tsconfig.json",
60
- "./node-10/with-js": "./src/node-10/with-js/tsconfig.json",
61
- "./node10/with-js": "./src/node-10/with-js/tsconfig.json",
62
- "./Node10/with-js": "./src/node-10/with-js/tsconfig.json",
63
- "./node-16": "./src/node-16/tsconfig.json",
64
- "./node16": "./src/node-16/tsconfig.json",
65
- "./node16/tsconfig.json": "./src/node-16/tsconfig.json",
66
- "./Node16": "./src/node-16/tsconfig.json",
67
- "./node-16/with-js": "./src/node-16/with-js/tsconfig.json",
68
- "./node16/with-js": "./src/node-16/with-js/tsconfig.json",
69
- "./Node16/with-js": "./src/node-16/with-js/tsconfig.json",
70
- "./node-next": "./src/node-next/tsconfig.json",
71
- "./nodenext": "./src/node-next/tsconfig.json",
72
- "./nodenext/tsconfig.json": "./src/node-next/tsconfig.json",
73
- "./NodeNext": "./src/node-next/tsconfig.json",
74
- "./node-next/with-js": "./src/node-next/with-js/tsconfig.json",
75
- "./nodenext/with-js": "./src/node-next/with-js/tsconfig.json",
76
- "./NodeNext/with-js": "./src/node-next/with-js/tsconfig.json",
44
+ "./node10/commonjs": "./src/node-10/commonjs/tsconfig.json",
45
+ "./node10/commonjs/with-js": "./src/node-10/commonjs/with-js/tsconfig.json",
46
+ "./node10/esnext": "./src/node-10/esnext/tsconfig.json",
47
+ "./node10/esnext/with-js": "./src/node-10/esnext/with-js/tsconfig.json",
48
+ "./node16/node16": "./src/node-16/node16/tsconfig.json",
49
+ "./node16/node16/with-js": "./src/node-16/node16/with-js/tsconfig.json",
50
+ "./node16/node18": "./src/node-16/node18/tsconfig.json",
51
+ "./node16/node18/with-js": "./src/node-16/node18/with-js/tsconfig.json",
52
+ "./node16/node20": "./src/node-16/node20/tsconfig.json",
53
+ "./node16/node20/with-js": "./src/node-16/node20/with-js/tsconfig.json",
54
+ "./nodenext/nodenext": "./src/node-next/nodenext/tsconfig.json",
55
+ "./nodenext/nodenext/with-js": "./src/node-next/nodenext/with-js/tsconfig.json",
56
+ "./nodenext/node18": "./src/node-next/node18/tsconfig.json",
57
+ "./nodenext/node18/with-js": "./src/node-next/node18/with-js/tsconfig.json",
58
+ "./nodenext/node20": "./src/node-next/node20/tsconfig.json",
59
+ "./nodenext/node20/with-js": "./src/node-next/node20/with-js/tsconfig.json",
77
60
  "./package.json": "./package.json"
78
61
  },
79
- "main": "./src/node/tsconfig.json",
80
- "types": "./src/node/tsconfig.json",
62
+ "main": "./src/node/esnext/tsconfig.json",
63
+ "types": "./src/node/esnext/tsconfig.json",
81
64
  "typesVersions": {
82
65
  "*": {
83
66
  "tsconfig.json": [
84
- "src/node/tsconfig.json"
67
+ "src/node/esnext/tsconfig.json"
85
68
  ],
86
- "node": [
87
- "src/node/tsconfig.json"
69
+ "node/commonjs": [
70
+ "src/node/commonjs/tsconfig.json"
88
71
  ],
89
- "node/tsconfig.json": [
90
- "src/node/tsconfig.json"
72
+ "node/commonjs/with-js": [
73
+ "src/node/commonjs/with-js/tsconfig.json"
91
74
  ],
92
- "node/with-js": [
93
- "src/node/with-js/tsconfig.json"
75
+ "node/esnext": [
76
+ "src/node/esnext/tsconfig.json"
94
77
  ],
95
- "Node": [
96
- "src/node/tsconfig.json"
78
+ "node/esnext/with-js": [
79
+ "src/node/esnext/with-js/tsconfig.json"
97
80
  ],
98
- "Node/with-js": [
99
- "src/node/with-js/tsconfig.json"
81
+ "bundler/commonjs": [
82
+ "src/bundler/commonjs/tsconfig.json"
100
83
  ],
101
- "bundler": [
102
- "src/bundler/esnext/tsconfig.json"
103
- ],
104
- "bundler/tsconfig.json": [
105
- "src/bundler/esnext/tsconfig.json"
84
+ "bundler/commonjs/with-js": [
85
+ "src/bundler/commonjs/with-js/tsconfig.json"
106
86
  ],
107
87
  "bundler/esnext": [
108
88
  "src/bundler/esnext/tsconfig.json"
@@ -110,113 +90,65 @@
110
90
  "bundler/esnext/with-js": [
111
91
  "src/bundler/esnext/with-js/tsconfig.json"
112
92
  ],
113
- "bundler/with-js": [
114
- "src/bundler/esnext/with-js/tsconfig.json"
115
- ],
116
93
  "bundler/preserve": [
117
94
  "src/bundler/preserve/tsconfig.json"
118
95
  ],
119
96
  "bundler/preserve/with-js": [
120
97
  "src/bundler/preserve/with-js/tsconfig.json"
121
98
  ],
122
- "Bundler": [
123
- "src/bundler/esnext/tsconfig.json"
124
- ],
125
- "Bundler/esnext": [
126
- "src/bundler/esnext/tsconfig.json"
127
- ],
128
- "Bundler/esnext/with-js": [
129
- "src/bundler/esnext/with-js/tsconfig.json"
130
- ],
131
- "Bundler/ESNext": [
132
- "src/bundler/esnext/tsconfig.json"
133
- ],
134
- "Bundler/ESNext/with-js": [
135
- "src/bundler/esnext/with-js/tsconfig.json"
136
- ],
137
- "Bundler/with-js": [
138
- "src/bundler/esnext/with-js/tsconfig.json"
139
- ],
140
- "Bundler/preserve": [
141
- "src/bundler/preserve/tsconfig.json"
142
- ],
143
- "Bundler/Preserve": [
144
- "src/bundler/preserve/tsconfig.json"
145
- ],
146
- "Bundler/preserve/with-js": [
147
- "src/bundler/preserve/with-js/tsconfig.json"
148
- ],
149
- "Bundler/Preserve/with-js": [
150
- "src/bundler/preserve/with-js/tsconfig.json"
151
- ],
152
99
  "cra": [
153
100
  "src/create-react-app/tsconfig.json"
154
101
  ],
155
102
  "create-react-app": [
156
103
  "src/create-react-app/tsconfig.json"
157
104
  ],
158
- "node-10": [
159
- "src/node-10/tsconfig.json"
160
- ],
161
- "node-10/with-js": [
162
- "src/node-10/with-js/tsconfig.json"
163
- ],
164
- "node10": [
165
- "src/node-10/tsconfig.json"
166
- ],
167
- "node10/tsconfig.json": [
168
- "src/node-10/tsconfig.json"
169
- ],
170
- "node10/with-js": [
171
- "src/node-10/with-js/tsconfig.json"
172
- ],
173
- "Node10": [
174
- "src/node-10/tsconfig.json"
105
+ "node10/commonjs": [
106
+ "src/node-10/commonjs/tsconfig.json"
175
107
  ],
176
- "Node10/with-js": [
177
- "src/node-10/with-js/tsconfig.json"
108
+ "node10/commonjs/with-js": [
109
+ "src/node-10/commonjs/with-js/tsconfig.json"
178
110
  ],
179
- "node-16": [
180
- "src/node-16/tsconfig.json"
111
+ "node10/esnext": [
112
+ "src/node-10/esnext/tsconfig.json"
181
113
  ],
182
- "node-16/with-js": [
183
- "src/node-16/with-js/tsconfig.json"
114
+ "node10/esnext/with-js": [
115
+ "src/node-10/esnext/with-js/tsconfig.json"
184
116
  ],
185
- "node16": [
186
- "src/node-16/tsconfig.json"
117
+ "node16/node16": [
118
+ "src/node-16/node16/tsconfig.json"
187
119
  ],
188
- "node16/tsconfig.json": [
189
- "src/node-16/tsconfig.json"
120
+ "node16/node16/with-js": [
121
+ "src/node-16/node16/with-js/tsconfig.json"
190
122
  ],
191
- "node16/with-js": [
192
- "src/node-16/with-js/tsconfig.json"
123
+ "node16/node18": [
124
+ "src/node-16/node18/tsconfig.json"
193
125
  ],
194
- "Node16": [
195
- "src/node-16/tsconfig.json"
126
+ "node16/node18/with-js": [
127
+ "src/node-16/node18/with-js/tsconfig.json"
196
128
  ],
197
- "Node16/with-js": [
198
- "src/node-16/with-js/tsconfig.json"
129
+ "node16/node20": [
130
+ "src/node-16/node20/tsconfig.json"
199
131
  ],
200
- "node-next": [
201
- "src/node-next/tsconfig.json"
132
+ "node16/node20/with-js": [
133
+ "src/node-16/node20/with-js/tsconfig.json"
202
134
  ],
203
- "node-next/with-js": [
204
- "src/node-next/with-js/tsconfig.json"
135
+ "nodenext/nodenext": [
136
+ "src/node-next/nodenext/tsconfig.json"
205
137
  ],
206
- "nodenext": [
207
- "src/node-next/tsconfig.json"
138
+ "nodenext/nodenext/with-js": [
139
+ "src/node-next/nodenext/with-js/tsconfig.json"
208
140
  ],
209
- "nodenext/tsconfig.json": [
210
- "src/node-next/tsconfig.json"
141
+ "nodenext/node18": [
142
+ "src/node-next/node18/tsconfig.json"
211
143
  ],
212
- "nodenext/with-js": [
213
- "src/node-next/with-js/tsconfig.json"
144
+ "nodenext/node18/with-js": [
145
+ "src/node-next/node18/with-js/tsconfig.json"
214
146
  ],
215
- "NodeNext": [
216
- "src/node-next/tsconfig.json"
147
+ "nodenext/node20": [
148
+ "src/node-next/node20/tsconfig.json"
217
149
  ],
218
- "NodeNext/with-js": [
219
- "src/node-next/with-js/tsconfig.json"
150
+ "nodenext/node20/with-js": [
151
+ "src/node-next/node20/with-js/tsconfig.json"
220
152
  ]
221
153
  }
222
154
  },
@@ -233,10 +165,10 @@
233
165
  },
234
166
  "devDependencies": {
235
167
  "@arethetypeswrong/cli": "^0.18.2",
236
- "@types/node": "^25.2.1",
168
+ "@types/node": "^25.5.2",
237
169
  "prettier": "^3.8.1",
238
- "publint": "^0.3.17",
239
- "typescript": "^5.9.3"
170
+ "publint": "^0.3.18",
171
+ "typescript": "^6.0.2"
240
172
  },
241
173
  "publishConfig": {
242
174
  "access": "public",