@savvy-web/cli 1.4.3 → 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 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.4.3"
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 `@savvy-web/silk`
48
- * shim that consumers actually install (the standalone `@savvy-web/changesets`
49
- * package was merged into `@savvy-web/silk`).
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/silk/changesets/changelog";
52
- /** Changelog formatters `check` treats as valid (canonical silk shim + legacy). */
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`. */
@@ -71,7 +71,7 @@ const RULE_NAMES = [
71
71
  "changeset-dependency-table-format"
72
72
  ];
73
73
  const DEFAULT_CONFIG = {
74
- $schema: "https://unpkg.com/@changesets/config@3.1.1/schema.json",
74
+ $schema: "https://unpkg.com/@changesets/config@4.0.0-next.6/schema.json",
75
75
  changelog: [CHANGELOG_ENTRY, { repo: "owner/repo" }],
76
76
  commit: false,
77
77
  access: "restricted",
@@ -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/silk/changesets/changelog` with the detected `repoSlug`.
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 silk changelog shim
435
- * (`\@savvy-web/silk/changesets/changelog`; the pre-merge
436
- * `\@savvy-web/changesets/changelog` is still accepted) and that the embedded
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.4.3",
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": "2.1.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",