@sablier/devkit 1.5.0 → 1.5.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.
- package/just/base.just +29 -26
- package/just/evm.just +1 -2
- package/just/npm.just +1 -2
- package/just/tsv.just +2 -4
- package/package.json +1 -1
package/just/base.just
CHANGED
|
@@ -28,9 +28,8 @@ _clean +globs:
|
|
|
28
28
|
nlx del-cli "{{ globs }}"
|
|
29
29
|
|
|
30
30
|
# Clear node_modules recursively
|
|
31
|
-
[confirm("Are you sure you want to delete all node_modules, including in subdirectories? Y/n")]
|
|
32
|
-
|
|
33
|
-
clean-modules +globs="node_modules **/node_modules":
|
|
31
|
+
[confirm("Are you sure you want to delete all node_modules, including in subdirectories? Y/n"), no-cd]
|
|
32
|
+
clean-modules +globs="**/node_modules":
|
|
34
33
|
nlx del-cli {{ globs }}
|
|
35
34
|
|
|
36
35
|
# Install the Node.js dependencies; run with --frozen to install the dependencies with the frozen lockfile
|
|
@@ -49,31 +48,27 @@ alias tb := tsc-build
|
|
|
49
48
|
# ---------------------------------------------------------------------------- #
|
|
50
49
|
|
|
51
50
|
# Check code with Biome - runs both the checker and the linter
|
|
52
|
-
[group("checks")]
|
|
53
|
-
[no-cd]
|
|
51
|
+
[group("checks"), no-cd]
|
|
54
52
|
@biome-check +globs=".":
|
|
55
53
|
na biome check {{ globs }}
|
|
56
54
|
alias bc := biome-check
|
|
57
55
|
|
|
58
56
|
# Lint code with Biome
|
|
59
|
-
[group("checks")]
|
|
60
|
-
[no-cd]
|
|
57
|
+
[group("checks"), no-cd]
|
|
61
58
|
@biome-lint +globs=".":
|
|
62
59
|
na biome lint {{ globs }}
|
|
63
60
|
alias bl := biome-lint
|
|
64
61
|
|
|
65
62
|
# Fix code with Biome
|
|
66
63
|
# The `noUnusedImports` rule is disabled by default to allow unused imports during development
|
|
67
|
-
[group("checks")]
|
|
68
|
-
[no-cd]
|
|
64
|
+
[group("checks"), no-cd]
|
|
69
65
|
@biome-write +globs=".":
|
|
70
66
|
na biome check --write {{ globs }}
|
|
71
67
|
na biome lint --unsafe --write --only correctness/noUnusedImports {{ globs }}
|
|
72
68
|
alias bw := biome-write
|
|
73
69
|
|
|
74
70
|
# Run all code checks
|
|
75
|
-
[group("checks")]
|
|
76
|
-
[no-cd]
|
|
71
|
+
[group("checks"), no-cd]
|
|
77
72
|
@full-check:
|
|
78
73
|
just _run-with-status biome-check
|
|
79
74
|
just _run-with-status prettier-check
|
|
@@ -83,8 +78,7 @@ alias bw := biome-write
|
|
|
83
78
|
alias fc := full-check
|
|
84
79
|
|
|
85
80
|
# Run all code fixes
|
|
86
|
-
[group("checks")]
|
|
87
|
-
[no-cd]
|
|
81
|
+
[group("checks"), no-cd]
|
|
88
82
|
@full-write:
|
|
89
83
|
just _run-with-status biome-write
|
|
90
84
|
just _run-with-status prettier-write
|
|
@@ -93,37 +87,41 @@ alias fc := full-check
|
|
|
93
87
|
alias fw := full-write
|
|
94
88
|
|
|
95
89
|
# Run knip checks
|
|
96
|
-
[group("checks")]
|
|
97
|
-
[no-cd]
|
|
90
|
+
[group("checks"), no-cd]
|
|
98
91
|
@knip-check:
|
|
99
92
|
na knip
|
|
100
93
|
alias kc := knip-check
|
|
101
94
|
|
|
102
95
|
# Run knip fix
|
|
103
|
-
[group("checks")]
|
|
104
|
-
[no-cd]
|
|
96
|
+
[group("checks"), no-cd]
|
|
105
97
|
@knip-write:
|
|
106
98
|
na knip --fix
|
|
107
99
|
alias kw := knip-write
|
|
108
100
|
|
|
109
101
|
# Check Prettier formatting
|
|
110
|
-
[group("checks")]
|
|
111
|
-
[no-cd]
|
|
102
|
+
[group("checks"), no-cd]
|
|
112
103
|
@prettier-check +globs=GLOBS_PRETTIER:
|
|
113
|
-
na prettier
|
|
104
|
+
na prettier \
|
|
105
|
+
--check \
|
|
106
|
+
--cache \
|
|
107
|
+
--log-level warn \
|
|
108
|
+
--no-error-on-unmatched-pattern \
|
|
109
|
+
{{ globs }}
|
|
114
110
|
alias pc := prettier-check
|
|
115
111
|
|
|
116
112
|
# Format using Prettier
|
|
117
|
-
[group("checks")]
|
|
118
|
-
[no-cd]
|
|
113
|
+
[group("checks"), no-cd]
|
|
119
114
|
@prettier-write +globs=GLOBS_PRETTIER:
|
|
120
|
-
na prettier
|
|
115
|
+
na prettier \
|
|
116
|
+
--write \
|
|
117
|
+
--cache \
|
|
118
|
+
--log-level warn \
|
|
119
|
+
--no-error-on-unmatched-pattern \
|
|
120
|
+
{{ globs }}
|
|
121
121
|
alias pw := prettier-write
|
|
122
122
|
|
|
123
123
|
# Type check with TypeScript (tsgo default, falls back to tsc if unavailable)
|
|
124
|
-
[group("checks")]
|
|
125
|
-
[no-cd]
|
|
126
|
-
[script("bash")]
|
|
124
|
+
[group("checks"), no-cd, script("bash")]
|
|
127
125
|
type-check compiler="tsgo" project="tsconfig.json":
|
|
128
126
|
cmd="{{ compiler }}"
|
|
129
127
|
if [[ "$cmd" == "tsgo" ]] && [[ ! -x "node_modules/.bin/tsgo" ]]; then
|
|
@@ -133,6 +131,10 @@ type-check compiler="tsgo" project="tsconfig.json":
|
|
|
133
131
|
alias tc := type-check
|
|
134
132
|
alias tsc-check := type-check
|
|
135
133
|
|
|
134
|
+
# ---------------------------------------------------------------------------- #
|
|
135
|
+
# UTILITIES #
|
|
136
|
+
# ---------------------------------------------------------------------------- #
|
|
137
|
+
|
|
136
138
|
# Private recipe to run a check with formatted output
|
|
137
139
|
[no-cd]
|
|
138
140
|
@_run-with-status recipe *args:
|
|
@@ -141,3 +143,4 @@ alias tsc-check := type-check
|
|
|
141
143
|
just {{ recipe }} {{ args }}
|
|
142
144
|
echo '{{ GREEN }}✓ {{ recipe }} completed{{ NORMAL }}'
|
|
143
145
|
alias rws := _run-with-status
|
|
146
|
+
alias _rws := _run-with-status
|
package/just/evm.just
CHANGED
|
@@ -115,8 +115,7 @@ build-optimized *args:
|
|
|
115
115
|
forge build --extra-output-files metadata {{ args }}
|
|
116
116
|
|
|
117
117
|
# Dump code coverage to an html file
|
|
118
|
-
[group("foundry")]
|
|
119
|
-
[script]
|
|
118
|
+
[group("foundry"), script("bash")]
|
|
120
119
|
coverage:
|
|
121
120
|
if ! command -v genhtml >/dev/null 2>&1; then
|
|
122
121
|
echo "✗ genhtml CLI not found"
|
package/just/npm.just
CHANGED
|
@@ -38,8 +38,7 @@ tag *version:
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
# Check that package.json version includes -beta.x suffix
|
|
41
|
-
[private]
|
|
42
|
-
[script]
|
|
41
|
+
[private, script("bash")]
|
|
43
42
|
@check-beta-version:
|
|
44
43
|
# Extract version from package.json using jq for reliable JSON parsing
|
|
45
44
|
version=$(jq -r '.version' package.json)
|
package/just/tsv.just
CHANGED
|
@@ -5,8 +5,7 @@ import "./settings.just"
|
|
|
5
5
|
# ---------------------------------------------------------------------------- #
|
|
6
6
|
|
|
7
7
|
# Check TSV files using qsv: https://github.com/dathere/qsv
|
|
8
|
-
[group("checks")]
|
|
9
|
-
[script]
|
|
8
|
+
[group("checks"), script("bash")]
|
|
10
9
|
_tsv-check globs="data/*/*.tsv" schema="" ignore="*.tsv.invalid|*.tsv.valid|*validation-errors.tsv":
|
|
11
10
|
if ! command -v qsv >/dev/null 2>&1; then
|
|
12
11
|
echo "✗ qsv CLI not found"
|
|
@@ -43,8 +42,7 @@ _tsv-check globs="data/*/*.tsv" schema="" ignore="*.tsv.invalid|*.tsv.valid|*val
|
|
|
43
42
|
fi
|
|
44
43
|
|
|
45
44
|
# Show validation errors for a TSV file
|
|
46
|
-
[group("checks")]
|
|
47
|
-
[script]
|
|
45
|
+
[group("checks"), script("bash")]
|
|
48
46
|
_tsv-show-errors file:
|
|
49
47
|
error_file="{{ file }}.validation-errors.tsv"
|
|
50
48
|
|
package/package.json
CHANGED