@jterrazz/typescript 6.0.4 → 6.1.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @jterrazz/typescript
2
2
 
3
- The complete TypeScript toolchain — build, run, check, and document with zero configuration. Powered by tsdown, Oxlint, Oxfmt, tsgo, and Knip.
3
+ The complete TypeScript toolchain — build, run, check, and document with zero configuration. Powered by tsdown, Oxlint, Oxfmt, TypeScript 7, and Knip.
4
4
 
5
5
  ## Installation
6
6
 
@@ -86,12 +86,12 @@ your-project/
86
86
 
87
87
  | Tool | Purpose |
88
88
  | ------ | -------------------- |
89
- | tsgo | Type checking |
89
+ | tsc | Type checking |
90
90
  | oxlint | Linting |
91
91
  | oxfmt | Formatting |
92
92
  | knip | Unused code analysis |
93
93
 
94
- `typescript fix` runs tsgo, oxlint (with `--fix`), and oxfmt in parallel (knip excluded).
94
+ `typescript fix` runs tsc, oxlint (with `--fix`), and oxfmt in parallel (knip excluded).
95
95
 
96
96
  ### Lint presets
97
97
 
@@ -153,16 +153,16 @@ jobs:
153
153
 
154
154
  The toolchain is fully compiled — no JavaScript in the hot path:
155
155
 
156
- | Step | Tool | Language |
157
- | ------------ | -------------------------------------------------- | -------- |
158
- | Transpile | [Oxc](https://oxc.rs) (via tsdown) | Rust |
159
- | Bundle | [Rolldown](https://rolldown.rs) | Rust |
160
- | Declarations | [tsdown](https://tsdown.dev) built-in | Rust |
161
- | Type check | [tsgo](https://github.com/microsoft/typescript-go) | Go |
162
- | Lint | [Oxlint](https://oxc.rs/docs/guide/usage/linter) | Rust |
163
- | Format | [Oxfmt](https://oxc.rs/docs/guide/usage/formatter) | Rust |
164
- | Unused code | [Knip](https://knip.dev) | Node |
165
- | API docs | [Typedoc](https://typedoc.org) | Node |
156
+ | Step | Tool | Language |
157
+ | ------------ | ---------------------------------------------------------------- | -------- |
158
+ | Transpile | [Oxc](https://oxc.rs) (via tsdown) | Rust |
159
+ | Bundle | [Rolldown](https://rolldown.rs) | Rust |
160
+ | Declarations | [tsdown](https://tsdown.dev) built-in | Rust |
161
+ | Type check | [tsc (TypeScript 7)](https://github.com/microsoft/typescript-go) | Go |
162
+ | Lint | [Oxlint](https://oxc.rs/docs/guide/usage/linter) | Rust |
163
+ | Format | [Oxfmt](https://oxc.rs/docs/guide/usage/formatter) | Rust |
164
+ | Unused code | [Knip](https://knip.dev) | Node |
165
+ | API docs | [Typedoc](https://typedoc.org) | Node |
166
166
 
167
167
  ## License
168
168
 
@@ -1,5 +1,5 @@
1
1
  #!/bin/bash
2
- # Quality checks: runs tsgo, oxlint, oxfmt, and knip in parallel.
2
+ # Quality checks: runs tsc, oxlint, oxfmt, and knip in parallel.
3
3
  # Called by: typescript check | typescript fix
4
4
 
5
5
  # Colors for output
@@ -33,7 +33,22 @@ find_binary() {
33
33
  fi
34
34
  }
35
35
 
36
- TSGO=$(find_binary tsgo)
36
+ # The Go compiler (official typescript@7) is installed under the
37
+ # "typescript-go" npm alias: typedoc and eslint-plugin-perfectionist need the
38
+ # JS-API typescript 5/6 to resolve under the name "typescript", so the two
39
+ # must coexist. Resolve the aliased package's binary directly — both packages
40
+ # link a `tsc` bin, so .bin/tsc would be ambiguous.
41
+ find_tsc() {
42
+ if [ -x "$PACKAGE_ROOT/node_modules/typescript-go/bin/tsc" ]; then
43
+ echo "$PACKAGE_ROOT/node_modules/typescript-go/bin/tsc"
44
+ elif [ -x "$PACKAGE_ROOT/../../typescript-go/bin/tsc" ]; then
45
+ echo "$PACKAGE_ROOT/../../typescript-go/bin/tsc"
46
+ else
47
+ find_binary tsc
48
+ fi
49
+ }
50
+
51
+ TSC=$(find_tsc)
37
52
  OXLINT=$(find_binary oxlint)
38
53
  OXFMT=$(find_binary oxfmt)
39
54
  KNIP=$(find_binary knip)
@@ -81,7 +96,7 @@ run_checks() {
81
96
  printf "${CYAN_BG}${BRIGHT_WHITE} START ${NC} ${LABEL}\n"
82
97
 
83
98
  # Run all tools in parallel
84
- "$TSGO" --noEmit > "$tmp_dir/type.log" 2>&1 &
99
+ "$TSC" --noEmit > "$tmp_dir/type.log" 2>&1 &
85
100
  local type_pid=$!
86
101
 
87
102
  if [ "$FIX_MODE" = true ]; then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jterrazz/typescript",
3
- "version": "6.0.4",
3
+ "version": "6.1.0",
4
4
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,18 +42,19 @@
42
42
  "test": "vitest --run"
43
43
  },
44
44
  "dependencies": {
45
- "@typescript/native-preview": "^7.0.0-dev.20260327.2",
46
- "eslint-plugin-perfectionist": "^5.7.0",
47
- "knip": "^6.2.0",
48
- "oxfmt": "^0.42.0",
49
- "oxlint": "^1.57.0",
50
- "tsdown": "^0.21.5",
51
- "typedoc": "^0.28.19",
52
- "typedoc-plugin-markdown": "^4.11.0"
45
+ "eslint-plugin-perfectionist": "^5.10.0",
46
+ "knip": "^6.27.0",
47
+ "oxfmt": "^0.59.0",
48
+ "oxlint": "^1.74.0",
49
+ "tsdown": "^0.22.9",
50
+ "typedoc": "^0.28.20",
51
+ "typedoc-plugin-markdown": "^4.12.0",
52
+ "typescript": "^6.0.0",
53
+ "typescript-go": "npm:typescript@^7.0.2"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@jterrazz/test": "^8.0.0",
56
- "@types/node": "^25.5.0",
57
- "vitest": "^4.1.2"
57
+ "@types/node": "^26.1.1",
58
+ "vitest": "^4.1.10"
58
59
  }
59
60
  }