@vitus-labs/tools-typescript 1.9.1-alpha.9 → 1.10.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.
Files changed (3) hide show
  1. package/README.md +50 -0
  2. package/lib.json +1 -0
  3. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @vitus-labs/tools-typescript
2
+
3
+ Shared TypeScript configuration presets.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ bun add -d @vitus-labs/tools-typescript
9
+ ```
10
+
11
+ **Peer dependency:** `typescript >= 5`
12
+
13
+ ## Presets
14
+
15
+ ### `lib` — for libraries
16
+
17
+ Strict TypeScript config targeting ES2024 with bundler module resolution.
18
+
19
+ ```json
20
+ {
21
+ "extends": "@vitus-labs/tools-typescript/lib"
22
+ }
23
+ ```
24
+
25
+ Key settings:
26
+ - `target: ES2024`, `module: Preserve`, `moduleResolution: Bundler`
27
+ - `strict: true`, `noUncheckedIndexedAccess: true`
28
+ - `jsx: react-jsx`
29
+ - `declaration: true`, `declarationMap: true`, `sourceMap: true`
30
+ - `verbatimModuleSyntax: true`
31
+ - Includes `src/`, excludes `node_modules`, `__stories__`, `lib`
32
+
33
+ ### `nextjs` — for Next.js applications
34
+
35
+ ```json
36
+ {
37
+ "extends": "@vitus-labs/tools-typescript/nextjs"
38
+ }
39
+ ```
40
+
41
+ Key settings:
42
+ - `target: ES2024`, `module: ESNext`, `moduleResolution: Bundler`
43
+ - `strict: true`, `noUncheckedIndexedAccess: true`
44
+ - `jsx: preserve` (Next.js handles the JSX transform)
45
+ - `incremental: true`
46
+ - Includes `next-env.d.ts`, `**/*.ts`, `**/*.tsx`
47
+
48
+ ## License
49
+
50
+ MIT
package/lib.json CHANGED
@@ -18,6 +18,7 @@
18
18
  "declaration": true,
19
19
  "declarationMap": true,
20
20
  "sourceMap": true,
21
+ "inlineSources": true,
21
22
  "noEmit": true
22
23
  },
23
24
  "include": ["src"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitus-labs/tools-typescript",
3
- "version": "1.9.1-alpha.9+b513757",
3
+ "version": "1.10.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,5 +30,5 @@
30
30
  "peerDependencies": {
31
31
  "typescript": ">=5"
32
32
  },
33
- "gitHead": "b51375767bb010559a1e11f6e4d6141b771c07a6"
33
+ "gitHead": "803c33304f997f9585590d1f66a755e553ea23e5"
34
34
  }