@tofrankie/tsconfig 0.0.1 → 0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## tsconfig@0.0.2 (2026-03-29)
4
+
5
+ - Add `node.lib.tsdown.json` preset
6
+
3
7
  ## tsconfig@0.0.1 (2026-03-29)
4
8
 
5
9
  - Initial release
package/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  Shared [tsconfig](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) configuration.
6
6
 
7
+ > [!IMPORTANT]
8
+ > Presets are not yet stable and may change.
9
+
7
10
  ## Usage
8
11
 
9
12
  ```bash
@@ -23,22 +26,23 @@ Create a `tsconfig.json` in your project root:
23
26
 
24
27
  Use `@tofrankie/tsconfig/<filename>` in `extends`. If the last column of the table is not `—`, also add those packages to this project's devDependencies.
25
28
 
26
- | Preset | Purpose (how to choose) | Extra dependencies |
27
- | --------------------- | -------------------------------------------------- | ----------------------- |
28
- | `strict.json` | Stricter rules | — |
29
- | `dom.json` | Web App / DOM API | — |
30
- | `node.json` | Node scripts / services / CLI (`@tsconfig/node20`) | — |
31
- | `lib.json` | npm packages to publish (independent of runtime) | — |
32
- | `node.lib.json` | Node packages to publish | — |
33
- | `react.json` | React App (bundler-agnostic) | — |
34
- | `react.vite.json` | React + Vite | `vite` |
35
- | `react.lib.json` | React component libraries to publish | |
36
- | `react.lib.vite.json` | React component libraries developed with Vite | `vite` |
37
- | `vue.json` | Vue 3 App (bundler-agnostic) | |
38
- | `vue.vite.json` | Vue 3 + Vite | `vite` |
39
- | `vue.lib.json` | Vue 3 component libraries to publish | |
40
- | `vue.lib.vite.json` | Vue 3 component libraries developed with Vite | `vite` |
41
- | `vitest.json` | Testing with Vitest | `@types/node`, `vitest` |
29
+ | Preset | Purpose (how to choose) | Extra dependencies |
30
+ | ---------------------- | -------------------------------------------------------- | ----------------------- |
31
+ | `strict.json` | Stricter rules | — |
32
+ | `dom.json` | Web App / DOM API | — |
33
+ | `node.json` | Node scripts / services / CLI (`@tsconfig/node20`) | — |
34
+ | `lib.json` | npm packages to publish (independent of runtime) | — |
35
+ | `node.lib.json` | Node packages to publish | — |
36
+ | `node.lib.tsdown.json` | Node libraries for tsdown (bundler resolution, `noEmit`) | — |
37
+ | `react.json` | React App (bundler-agnostic) | |
38
+ | `react.vite.json` | React + Vite | `vite` |
39
+ | `react.lib.json` | React component libraries to publish | |
40
+ | `react.lib.vite.json` | React component libraries developed with Vite | `vite` |
41
+ | `vue.json` | Vue 3 App (bundler-agnostic) | |
42
+ | `vue.vite.json` | Vue 3 + Vite | `vite` |
43
+ | `vue.lib.json` | Vue 3 component libraries to publish | |
44
+ | `vue.lib.vite.json` | Vue 3 component libraries developed with Vite | `vite` |
45
+ | `vitest.json` | Testing with Vitest | `@types/node`, `vitest` |
42
46
 
43
47
  Dependency relationships between them: **[DEPENDENCY_GRAPH](./DEPENDENCY_GRAPH.md)**.
44
48
 
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": ["./node.json", "./lib.json"],
3
+ "compilerOptions": {
4
+ "noEmit": true,
5
+ "module": "ESNext",
6
+ "moduleResolution": "bundler"
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tofrankie/tsconfig",
3
3
  "type": "module",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "description": "Shared tsconfig configuration",
6
6
  "author": "Frankie <1426203851@qq.com>",
7
7
  "license": "MIT",
@@ -23,6 +23,7 @@
23
23
  "lib.json",
24
24
  "node.json",
25
25
  "node.lib.json",
26
+ "node.lib.tsdown.json",
26
27
  "react.json",
27
28
  "react.lib.json",
28
29
  "react.lib.vite.json",