@sablier/devkit 1.2.0 → 1.2.1

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 +29 -28
  2. package/package.json +1 -1
package/just/base.just CHANGED
@@ -40,8 +40,9 @@ install *args:
40
40
 
41
41
  # Build with TypeScript
42
42
  [no-cd]
43
- tsc-build:
44
- na tsc -p tsconfig.build.json
43
+ tsc-build project="tsconfig.json":
44
+ na tsc -p {{ project }}
45
+ alias tb := tsc-build
45
46
 
46
47
  # ---------------------------------------------------------------------------- #
47
48
  # CHECKS #
@@ -50,7 +51,7 @@ tsc-build:
50
51
  # Check code with Biome
51
52
  [group("checks")]
52
53
  [no-cd]
53
- biome-check +globs=".":
54
+ @biome-check +globs=".":
54
55
  na biome check {{ globs }}
55
56
  alias bc := biome-check
56
57
 
@@ -58,7 +59,7 @@ alias bc := biome-check
58
59
  # The `noUnusedImports` rule is disabled by default to allow unused imports during development
59
60
  [group("checks")]
60
61
  [no-cd]
61
- biome-write +globs=".":
62
+ @biome-write +globs=".":
62
63
  na biome check --write {{ globs }}
63
64
  na biome lint --unsafe --write --only correctness/noUnusedImports {{ globs }}
64
65
  alias bw := biome-write
@@ -66,58 +67,49 @@ alias bw := biome-write
66
67
  # Run all code checks
67
68
  [group("checks")]
68
69
  [no-cd]
69
- full-check:
70
- @echo '{{ CYAN }}→ Running biome-check...{{ NORMAL }}'
71
- just biome-check
72
- @echo '{{ GREEN }}✓ biome-check completed{{ NORMAL }}'
73
-
74
- @echo ""
75
- @echo '{{ CYAN }}→ Running prettier-check...{{ NORMAL }}'
76
- just prettier-check
77
- @echo '{{ GREEN }}✓ prettier-check completed{{ NORMAL }}'
78
-
79
- @echo ""
80
- @echo '{{ CYAN }}→ Running tsc-check...{{ NORMAL }}'
81
- just tsc-check
82
- @echo '{{ GREEN }}✓ tsc-check completed{{ NORMAL }}'
83
-
84
- @echo ""
85
- @echo '{{ GREEN }}✓ All checks passed!{{ NORMAL }}'
70
+ @full-check:
71
+ just _run-with-status biome-check
72
+ just _run-with-status prettier-check
73
+ just _run-with-status tsc-check
74
+ echo ""
75
+ echo '{{ GREEN }}✓ All code checks passed!{{ NORMAL }}'
86
76
  alias fc := full-check
87
77
 
88
78
  # Run all code fixes
89
79
  [group("checks")]
90
80
  [no-cd]
91
- full-write:
92
- just biome-write
93
- just prettier-write
81
+ @full-write:
82
+ just _run-with-status biome-write
83
+ just _run-with-status prettier-write
84
+ echo ""
85
+ echo '{{ GREEN }}✓ All code fixes applied!{{ NORMAL }}'
94
86
  alias fw := full-write
95
87
 
96
88
  # Run knip checks
97
89
  [group("checks")]
98
90
  [no-cd]
99
- knip-check:
91
+ @knip-check:
100
92
  na knip
101
93
  alias kc := knip-check
102
94
 
103
95
  # Run knip fix
104
96
  [group("checks")]
105
97
  [no-cd]
106
- knip-write:
98
+ @knip-write:
107
99
  na knip --fix
108
100
  alias kw := knip-write
109
101
 
110
102
  # Check Prettier formatting
111
103
  [group("checks")]
112
104
  [no-cd]
113
- prettier-check +globs=GLOBS_PRETTIER:
105
+ @prettier-check +globs=GLOBS_PRETTIER:
114
106
  na prettier --check --cache --no-error-on-unmatched-pattern {{ globs }}
115
107
  alias pc := prettier-check
116
108
 
117
109
  # Format using Prettier
118
110
  [group("checks")]
119
111
  [no-cd]
120
- prettier-write +globs=GLOBS_PRETTIER:
112
+ @prettier-write +globs=GLOBS_PRETTIER:
121
113
  na prettier --write --cache --no-error-on-unmatched-pattern {{ globs }}
122
114
  alias pw := prettier-write
123
115
 
@@ -126,3 +118,12 @@ alias pw := prettier-write
126
118
  [no-cd]
127
119
  @tsc-check project="tsconfig.json":
128
120
  na tsc --noEmit --project {{ project }}
121
+ alias tc := tsc-check
122
+
123
+ # Private recipe to run a check with formatted output
124
+ [no-cd]
125
+ @_run-with-status recipe:
126
+ @echo ""
127
+ @echo '{{ CYAN }}→ Running {{ recipe }}...{{ NORMAL }}'
128
+ just {{ recipe }}
129
+ @echo '{{ GREEN }}✓ {{ recipe }} completed{{ NORMAL }}'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sablier/devkit",
3
3
  "description": "Configuration files and reusable scripts for Sablier repositories",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "author": {
6
6
  "name": "Sablier Labs Ltd",
7
7
  "url": "https://sablier.com"