@savvy-web/cli 1.4.4 → 1.5.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/cli/index.js +1 -1
- package/commands/changeset/commands/init.js +11 -10
- package/package.json +2 -2
package/cli/index.js
CHANGED
|
@@ -56,7 +56,7 @@ const rootCommand = Command.make("savvy").pipe(Command.withSubcommands([
|
|
|
56
56
|
]));
|
|
57
57
|
const cli = Command.run(rootCommand, {
|
|
58
58
|
name: "savvy",
|
|
59
|
-
version: "1.
|
|
59
|
+
version: "1.5.0"
|
|
60
60
|
});
|
|
61
61
|
/**
|
|
62
62
|
* Shared base layer: workspace services, the changeset config reader, and the
|
|
@@ -44,13 +44,13 @@ import { applyEdits, modify, parse } from "jsonc-effect";
|
|
|
44
44
|
*/
|
|
45
45
|
const { LegacyVersionFilesSchema } = Changesets;
|
|
46
46
|
/**
|
|
47
|
-
* Canonical changelog formatter written by `init` — the
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* Canonical changelog formatter written by `init` — the standalone
|
|
48
|
+
* `@savvy-web/changelog` package (hoisted by pnpm-plugin-silk as a silk
|
|
49
|
+
* peer companion; also bundled by silk-release-action's native versioning).
|
|
50
50
|
*/
|
|
51
|
-
const CHANGELOG_ENTRY = "@savvy-web/
|
|
52
|
-
/** Changelog formatters `check` treats as valid (canonical
|
|
53
|
-
const ACCEPTED_CHANGELOG_ENTRIES = [CHANGELOG_ENTRY, "@savvy-web/changesets/changelog"];
|
|
51
|
+
const CHANGELOG_ENTRY = "@savvy-web/changelog";
|
|
52
|
+
/** Changelog formatters `check` treats as valid (canonical + legacy). */
|
|
53
|
+
const ACCEPTED_CHANGELOG_ENTRIES = [CHANGELOG_ENTRY, ...["@savvy-web/silk/changesets/changelog", "@savvy-web/changesets/changelog"]];
|
|
54
54
|
/** Canonical markdownlint custom-rule entry written by `init` — the silk shim. */
|
|
55
55
|
const CUSTOM_RULES_ENTRY = "@savvy-web/silk/changesets/markdownlint";
|
|
56
56
|
/** Pre-merge standalone custom-rule entry; still accepted by `check`. */
|
|
@@ -199,7 +199,7 @@ function ensureChangesetDir(root) {
|
|
|
199
199
|
*
|
|
200
200
|
* When `force` is `true` or the file does not exist, writes a fresh config
|
|
201
201
|
* with the default schema. Otherwise, patches only the `changelog` field to
|
|
202
|
-
* point at `\@savvy-web/
|
|
202
|
+
* point at `\@savvy-web/changelog` with the detected `repoSlug`.
|
|
203
203
|
*
|
|
204
204
|
* @param changesetDir - Absolute path to the `.changeset/` directory
|
|
205
205
|
* @param repoSlug - The `owner/repo` GitHub slug to embed in the config
|
|
@@ -431,9 +431,10 @@ function checkChangesetDir(root) {
|
|
|
431
431
|
/**
|
|
432
432
|
* Check that `.changeset/config.json` exists and has the correct changelog entry.
|
|
433
433
|
*
|
|
434
|
-
* Verifies that the `changelog` field points to the
|
|
435
|
-
*
|
|
436
|
-
* `\@savvy-web/changesets/changelog`
|
|
434
|
+
* Verifies that the `changelog` field points to the standalone
|
|
435
|
+
* `\@savvy-web/changelog` package (the prior silk shim subpath
|
|
436
|
+
* `\@savvy-web/silk/changesets/changelog` and the pre-merge
|
|
437
|
+
* `\@savvy-web/changesets/changelog` are still accepted) and that the embedded
|
|
437
438
|
* `repo` value matches `repoSlug`.
|
|
438
439
|
*
|
|
439
440
|
* @param changesetDir - Absolute path to the `.changeset/` directory
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@effect/platform-node": "^0.107.0",
|
|
37
37
|
"@effect/rpc": "^0.75.1",
|
|
38
38
|
"@effect/sql": "^0.51.1",
|
|
39
|
-
"@savvy-web/silk-effects": "3.0.
|
|
39
|
+
"@savvy-web/silk-effects": "3.0.1",
|
|
40
40
|
"effect": "^3.21.4",
|
|
41
41
|
"jsonc-effect": "^0.3.0",
|
|
42
42
|
"workspaces-effect": "^2.0.1",
|