@sablier/devkit 1.1.3 → 1.2.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 +1 -1
- package/just/base.just +13 -0
- package/just/evm.just +1 -1
- package/just/tsv.just +36 -2
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The files are meant to be extended and customized as needed.
|
|
|
10
10
|
| --------------- | :------------------------------------ |
|
|
11
11
|
| 🔍 Biome | [`biome.jsonc`](./biome.jsonc) |
|
|
12
12
|
| 📝 EditorConfig | [`.editorconfig`](./.editorconfig) |
|
|
13
|
-
| 🛠 Just
|
|
13
|
+
| 🛠 Just | [`just/`](./just/) |
|
|
14
14
|
| ✨ Prettier | [`prettier.json`](./.prettierrc.json) |
|
|
15
15
|
| 📦 TSConfig | [`tsconfig/`](./tsconfig/) |
|
|
16
16
|
|
package/just/base.just
CHANGED
|
@@ -67,9 +67,22 @@ alias bw := biome-write
|
|
|
67
67
|
[group("checks")]
|
|
68
68
|
[no-cd]
|
|
69
69
|
full-check:
|
|
70
|
+
@echo '{{ CYAN }}→ Running biome-check...{{ NORMAL }}'
|
|
70
71
|
just biome-check
|
|
72
|
+
@echo '{{ GREEN }}✓ biome-check completed{{ NORMAL }}'
|
|
73
|
+
|
|
74
|
+
@echo ""
|
|
75
|
+
@echo '{{ CYAN }}→ Running prettier-check...{{ NORMAL }}'
|
|
71
76
|
just prettier-check
|
|
77
|
+
@echo '{{ GREEN }}✓ prettier-check completed{{ NORMAL }}'
|
|
78
|
+
|
|
79
|
+
@echo ""
|
|
80
|
+
@echo '{{ CYAN }}→ Running tsc-check...{{ NORMAL }}'
|
|
72
81
|
just tsc-check
|
|
82
|
+
@echo '{{ GREEN }}✓ tsc-check completed{{ NORMAL }}'
|
|
83
|
+
|
|
84
|
+
@echo ""
|
|
85
|
+
@echo '{{ GREEN }}✓ All checks passed!{{ NORMAL }}'
|
|
73
86
|
alias fc := full-check
|
|
74
87
|
|
|
75
88
|
# Run all code fixes
|
package/just/evm.just
CHANGED
|
@@ -36,7 +36,7 @@ GLOBS_CLEAN := ```
|
|
|
36
36
|
echo "${arr[*]}"
|
|
37
37
|
```
|
|
38
38
|
GLOBS_PRETTIER := "**/*.{md,mdx,yaml,yml}"
|
|
39
|
-
GLOBS_SOLIDITY := "{
|
|
39
|
+
GLOBS_SOLIDITY := "{scripts,src,tests}/**/*.sol"
|
|
40
40
|
|
|
41
41
|
# ---------------------------------------------------------------------------- #
|
|
42
42
|
# RECIPES #
|
package/just/tsv.just
CHANGED
|
@@ -28,9 +28,43 @@ _tsv-check globs="data/*/*.tsv" schema="":
|
|
|
28
28
|
[ -e "$file" ] || continue
|
|
29
29
|
|
|
30
30
|
found=$((found + 1))
|
|
31
|
-
|
|
31
|
+
schema_arg="{{ schema }}"
|
|
32
|
+
if ! qsv validate "$file" ${schema_arg:+"$schema_arg"} > /dev/null 2>&1; then
|
|
32
33
|
echo "❌ Validation failed for: $file"
|
|
33
|
-
|
|
34
|
+
error_file="$file.validation-errors.tsv"
|
|
35
|
+
|
|
36
|
+
if [ -f "$error_file" ]; then
|
|
37
|
+
# Try to count total errors (subtract 1 for header row)
|
|
38
|
+
total_errors=$(qsv count "$error_file" 2>/dev/null || echo "0")
|
|
39
|
+
if [ "$total_errors" != "0" ]; then
|
|
40
|
+
total_errors=$((total_errors - 1))
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
echo ""
|
|
44
|
+
if [ "$total_errors" != "0" ] && [ "$total_errors" -gt 0 ]; then
|
|
45
|
+
echo "First 20 validation errors (${total_errors} total):"
|
|
46
|
+
else
|
|
47
|
+
echo "Validation errors:"
|
|
48
|
+
fi
|
|
49
|
+
echo ""
|
|
50
|
+
|
|
51
|
+
# Try to use qsv table for nice formatting, fall back to basic display
|
|
52
|
+
if qsv slice --start 0 --len 21 "$error_file" 2>/dev/null | qsv table 2>/dev/null; then
|
|
53
|
+
: # Success, output already shown
|
|
54
|
+
else
|
|
55
|
+
head -n 21 "$error_file"
|
|
56
|
+
fi
|
|
57
|
+
|
|
58
|
+
if [ "$total_errors" != "0" ] && [ "$total_errors" -gt 20 ]; then
|
|
59
|
+
echo ""
|
|
60
|
+
echo "... and $((total_errors - 20)) more errors"
|
|
61
|
+
fi
|
|
62
|
+
echo ""
|
|
63
|
+
echo "Full details: $error_file"
|
|
64
|
+
else
|
|
65
|
+
echo "Error file not found: $error_file"
|
|
66
|
+
fi
|
|
67
|
+
|
|
34
68
|
exit 1
|
|
35
69
|
fi
|
|
36
70
|
done
|
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.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sablier Labs Ltd",
|
|
7
7
|
"url": "https://sablier.com"
|
|
@@ -42,5 +42,8 @@
|
|
|
42
42
|
"type": "git",
|
|
43
43
|
"url": "git+https://github.com/sablier-labs/devkit.git"
|
|
44
44
|
},
|
|
45
|
-
"type": "module"
|
|
45
|
+
"type": "module",
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"prettier": "^3.6.2"
|
|
48
|
+
}
|
|
46
49
|
}
|