@sablier/devkit 1.4.1 → 1.5.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 (2) hide show
  1. package/just/base.just +11 -5
  2. package/package.json +1 -1
package/just/base.just CHANGED
@@ -77,7 +77,7 @@ alias bw := biome-write
77
77
  @full-check:
78
78
  just _run-with-status biome-check
79
79
  just _run-with-status prettier-check
80
- just _run-with-status tsc-check
80
+ just _run-with-status type-check
81
81
  echo ""
82
82
  echo '{{ GREEN }}All code checks passed!{{ NORMAL }}'
83
83
  alias fc := full-check
@@ -120,12 +120,18 @@ alias pc := prettier-check
120
120
  na prettier --write --cache --no-error-on-unmatched-pattern {{ globs }}
121
121
  alias pw := prettier-write
122
122
 
123
- # Type check with TypeScript
123
+ # Type check with TypeScript (tsgo default, falls back to tsc if unavailable)
124
124
  [group("checks")]
125
125
  [no-cd]
126
- @tsc-check project="tsconfig.json":
127
- na tsc --noEmit --project {{ project }}
128
- alias tc := tsc-check
126
+ [script("bash")]
127
+ type-check compiler="tsgo" project="tsconfig.json":
128
+ cmd="{{ compiler }}"
129
+ if [[ "$cmd" == "tsgo" ]] && [[ ! -x "node_modules/.bin/tsgo" ]]; then
130
+ cmd="tsc"
131
+ fi
132
+ na "$cmd" --noEmit --project {{ project }}
133
+ alias tc := type-check
134
+ alias tsc-check := type-check
129
135
 
130
136
  # Private recipe to run a check with formatted output
131
137
  [no-cd]
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Configuration files and reusable scripts for Sablier repositories",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
- "version": "1.4.1",
6
+ "version": "1.5.0",
7
7
  "author": {
8
8
  "name": "Sablier Labs Ltd",
9
9
  "url": "https://sablier.com"