@savvy-web/cli 1.4.0 → 1.4.2
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.
|
|
59
|
+
version: "1.4.2"
|
|
60
60
|
});
|
|
61
61
|
/**
|
|
62
62
|
* Shared base layer: workspace services, the changeset config reader, and the
|
|
@@ -222,8 +222,9 @@ function handleConfig(changesetDir, repoSlug, force) {
|
|
|
222
222
|
return force ? "Overwrote .changeset/config.json" : "Created .changeset/config.json";
|
|
223
223
|
}
|
|
224
224
|
const existing = JSON.parse(readFileSync(configPath, "utf-8"));
|
|
225
|
+
const currentOptions = Array.isArray(existing.changelog) && typeof existing.changelog[1] === "object" && existing.changelog[1] !== null ? existing.changelog[1] : {};
|
|
225
226
|
existing.changelog = [CHANGELOG_ENTRY, {
|
|
226
|
-
...
|
|
227
|
+
...currentOptions,
|
|
227
228
|
repo: repoSlug
|
|
228
229
|
}];
|
|
229
230
|
writeFileSync(configPath, `${JSON.stringify(existing, null, " ")}\n`);
|
package/commands/commit/check.js
CHANGED
|
@@ -79,7 +79,8 @@ const detectReleaseFormat = Effect.gen(function* () {
|
|
|
79
79
|
const versioning = yield* VersioningStrategy;
|
|
80
80
|
const discovery = yield* WorkspaceDiscovery;
|
|
81
81
|
const publishableNames = (yield* Effect.catchAll(discovery.listPackages(), () => Effect.succeed([]))).filter((pkg) => !pkg.private || pkg.publishConfig?.access !== void 0).map((pkg) => pkg.name);
|
|
82
|
-
|
|
82
|
+
const result = yield* Effect.catchAll(versioning.detect(publishableNames, process.cwd()), () => Effect.succeed({ type: "single" }));
|
|
83
|
+
return STRATEGY_TO_FORMAT[result.type] ?? "semver";
|
|
83
84
|
});
|
|
84
85
|
/**
|
|
85
86
|
* Run the check validation pipeline.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
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,10 +36,10 @@
|
|
|
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.0.
|
|
39
|
+
"@savvy-web/silk-effects": "2.0.2",
|
|
40
40
|
"effect": "^3.21.4",
|
|
41
41
|
"jsonc-effect": "^0.3.0",
|
|
42
|
-
"workspaces-effect": "^2.0.
|
|
42
|
+
"workspaces-effect": "^2.0.1",
|
|
43
43
|
"yaml": "^2.9.0"
|
|
44
44
|
}
|
|
45
45
|
}
|