@sablier/devkit 1.10.3 → 1.12.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/.prettierrc.js +13 -0
- package/just/base.just +26 -5
- package/just/evm.just +12 -0
- package/just/npm.just +3 -2
- package/package.json +3 -2
package/.prettierrc.js
ADDED
package/just/base.just
CHANGED
|
@@ -29,19 +29,28 @@ _clean +globs:
|
|
|
29
29
|
nlx del-cli "{{ globs }}"
|
|
30
30
|
|
|
31
31
|
# Clear node_modules recursively
|
|
32
|
-
[confirm("Are you sure you want to delete all node_modules, including in subdirectories?
|
|
33
|
-
clean-modules +globs="**/node_modules":
|
|
34
|
-
|
|
32
|
+
[confirm("Are you sure you want to delete all node_modules, including in subdirectories? [y/N]"), no-cd]
|
|
33
|
+
@clean-modules +globs="**/node_modules":
|
|
34
|
+
echo "🧹 Deleting node_modules recursively..."
|
|
35
|
+
nlx del-cli --verbose {{ globs }}
|
|
35
36
|
|
|
36
37
|
# Install the Node.js dependencies; run with --frozen to install the dependencies with the frozen lockfile
|
|
37
38
|
[no-cd]
|
|
38
|
-
install *args:
|
|
39
|
+
@install *args:
|
|
39
40
|
ni {{ args }}
|
|
40
41
|
|
|
42
|
+
# Install mdformat with plugins
|
|
43
|
+
[no-cd]
|
|
44
|
+
@install-mdformat:
|
|
45
|
+
uv tool install mdformat \
|
|
46
|
+
--with mdformat-frontmatter \
|
|
47
|
+
--with mdformat-gfm
|
|
48
|
+
alias im := install-mdformat
|
|
49
|
+
|
|
41
50
|
# Build with TypeScript
|
|
42
51
|
[no-cd]
|
|
43
52
|
[arg("project", long, short="p", help="Path to tsconfig.json")]
|
|
44
|
-
tsc-build project="tsconfig.json":
|
|
53
|
+
@tsc-build project="tsconfig.json":
|
|
45
54
|
na tsc -p {{ project }}
|
|
46
55
|
alias tb := tsc-build
|
|
47
56
|
|
|
@@ -100,6 +109,18 @@ alias kc := knip-check
|
|
|
100
109
|
na knip --fix
|
|
101
110
|
alias kw := knip-write
|
|
102
111
|
|
|
112
|
+
# Check Markdown formatting with mdformat
|
|
113
|
+
[group("checks"), no-cd]
|
|
114
|
+
@mdformat-check +paths=".":
|
|
115
|
+
mdformat --check {{ paths }}
|
|
116
|
+
alias mc := mdformat-check
|
|
117
|
+
|
|
118
|
+
# Format Markdown files with mdformat
|
|
119
|
+
[group("checks"), no-cd]
|
|
120
|
+
@mdformat-write +paths=".":
|
|
121
|
+
mdformat {{ paths }}
|
|
122
|
+
alias mw := mdformat-write
|
|
123
|
+
|
|
103
124
|
# Check Prettier formatting
|
|
104
125
|
[group("checks"), no-cd]
|
|
105
126
|
@prettier-check +globs=GLOBS_PRETTIER:
|
package/just/evm.just
CHANGED
|
@@ -54,6 +54,7 @@ clean-modules:
|
|
|
54
54
|
|
|
55
55
|
# Run all code checks
|
|
56
56
|
full-check:
|
|
57
|
+
just mdformat-check
|
|
57
58
|
just solhint-check
|
|
58
59
|
just fmt-check
|
|
59
60
|
just prettier-check
|
|
@@ -61,6 +62,7 @@ alias fc := full-check
|
|
|
61
62
|
|
|
62
63
|
# Run all code fixes
|
|
63
64
|
full-write:
|
|
65
|
+
just mdformat-write
|
|
64
66
|
just solhint-write
|
|
65
67
|
just fmt-write
|
|
66
68
|
just prettier-write
|
|
@@ -71,6 +73,16 @@ install *args:
|
|
|
71
73
|
just base::install {{ args }}
|
|
72
74
|
alias i := install
|
|
73
75
|
|
|
76
|
+
# Check Markdown formatting with mdformat
|
|
77
|
+
@mdformat-check +paths=".":
|
|
78
|
+
just base::mdformat-check {{ paths }}
|
|
79
|
+
alias mc := mdformat-check
|
|
80
|
+
|
|
81
|
+
# Format Markdown files with mdformat
|
|
82
|
+
@mdformat-write +paths=".":
|
|
83
|
+
just base::mdformat-write {{ paths }}
|
|
84
|
+
alias mw := mdformat-write
|
|
85
|
+
|
|
74
86
|
# Check Prettier formatting
|
|
75
87
|
@prettier-check globs=GLOBS_PRETTIER:
|
|
76
88
|
just base::prettier-check "{{ globs }}"
|
package/just/npm.just
CHANGED
|
@@ -16,9 +16,10 @@ npm := require("npm")
|
|
|
16
16
|
|
|
17
17
|
# Publish the npm package, e.g. v1.0.0
|
|
18
18
|
[group("publish")]
|
|
19
|
-
|
|
19
|
+
[arg("tag", long, value="true")]
|
|
20
|
+
publish tag="false" *args:
|
|
20
21
|
npm publish {{ args }}
|
|
21
|
-
@just tag $(jq -r '.version' package.json)
|
|
22
|
+
@{{ if tag == "true" { "just tag $(jq -r '.version' package.json)" } else { "true" } }}
|
|
22
23
|
|
|
23
24
|
# Publish using the `beta` tag, e.g. v1.0.0-beta.1
|
|
24
25
|
[group("publish")]
|
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.
|
|
6
|
+
"version": "1.12.0",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Sablier Labs Ltd",
|
|
9
9
|
"url": "https://sablier.com"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"./biome": "./biome/base.jsonc",
|
|
29
29
|
"./biome/base": "./biome/base.jsonc",
|
|
30
30
|
"./biome/ui": "./biome/ui.jsonc",
|
|
31
|
-
"./prettier": "./.prettierrc.
|
|
31
|
+
"./prettier": "./.prettierrc.js",
|
|
32
32
|
"./tsconfig/base": "./tsconfig/base.json",
|
|
33
33
|
"./tsconfig/build": "./tsconfig/build.json",
|
|
34
34
|
"./tsconfig/next": "./tsconfig/next.json",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"just/",
|
|
43
43
|
"tsconfig/",
|
|
44
44
|
"vitest/",
|
|
45
|
+
".prettierrc.js",
|
|
45
46
|
".prettierrc.json"
|
|
46
47
|
],
|
|
47
48
|
"keywords": [
|