@savvy-web/cli 0.2.1 → 0.3.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/841.js +850 -688
- package/README.md +18 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,15 +24,12 @@ npx savvy init
|
|
|
24
24
|
# initializes changeset, commit and lint conventions in one pass
|
|
25
25
|
|
|
26
26
|
npx savvy check
|
|
27
|
-
# runs the changeset, commit and lint checks;
|
|
27
|
+
# runs the changeset, commit and lint checks; reports every failure in one pass
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
The command groups
|
|
30
|
+
`savvy init` and `savvy check` are the only setup entry points. The command groups expose the remaining per-tool operations:
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
npx savvy commit check
|
|
34
|
-
# validates the staged commit message against the conventional-commit rules
|
|
35
|
-
|
|
36
33
|
npx savvy changeset version
|
|
37
34
|
# applies pending changesets and bumps package versions
|
|
38
35
|
|
|
@@ -40,15 +37,26 @@ npx savvy lint fmt package-json
|
|
|
40
37
|
# formats package.json files to the Silk Suite conventions
|
|
41
38
|
```
|
|
42
39
|
|
|
40
|
+
Remove build and cache artifacts across the whole workspace:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx savvy clean --dry-run
|
|
44
|
+
# previews what would be removed across every workspace package and the repo root
|
|
45
|
+
|
|
46
|
+
npx savvy clean --globs dist,.turbo,coverage
|
|
47
|
+
# removes only the given patterns
|
|
48
|
+
```
|
|
49
|
+
|
|
43
50
|
## Commands
|
|
44
51
|
|
|
45
52
|
- `savvy init` — orchestrator that runs changeset, commit and lint setup in one pass.
|
|
46
|
-
- `savvy check` — orchestrator that runs all three checks and
|
|
47
|
-
- `savvy
|
|
48
|
-
- `savvy
|
|
49
|
-
- `savvy
|
|
53
|
+
- `savvy check` — orchestrator that runs all three checks and reports every failure (it does not short-circuit).
|
|
54
|
+
- `savvy clean` — removes build and cache artifacts (`dist`, `.turbo`, `coverage`, `node_modules`, `.rslib` by default) from every workspace package (leaves first) and the repo root (last); `--globs` to customize, `--dry-run` to preview.
|
|
55
|
+
- `savvy commit` — the husky/Claude hook handlers (session-start, pre-commit-message, post-commit-verify, user-prompt-submit).
|
|
56
|
+
- `savvy changeset` — changeset lint, transform, version, classify, branch analysis, release-surface and config inspection.
|
|
57
|
+
- `savvy lint` — formatters for package.json, the pnpm workspace file and YAML.
|
|
50
58
|
|
|
51
|
-
|
|
59
|
+
Run any command with `--help` to see its full surface:
|
|
52
60
|
|
|
53
61
|
```bash
|
|
54
62
|
npx savvy changeset --help
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The savvy CLI — unified commit, changeset, and lint commands for the Silk Suite",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/cli",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@effect/cli": "^0.75.1",
|
|
33
33
|
"@effect/platform": "^0.96.1",
|
|
34
34
|
"@effect/platform-node": "^0.106.0",
|
|
35
|
-
"@savvy-web/silk-effects": "0.6.
|
|
35
|
+
"@savvy-web/silk-effects": "0.6.1",
|
|
36
36
|
"effect": "^3.21.2",
|
|
37
37
|
"jsonc-effect": "^0.2.1",
|
|
38
38
|
"workspaces-effect": "^1.1.0",
|