@savvy-web/cli 2.4.0 → 2.4.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/cli/index.js +1 -1
- package/commands/lint/check.js +9 -8
- package/package.json +10 -10
package/cli/index.js
CHANGED
|
@@ -76,7 +76,7 @@ const rootCommand = Command.make("savvy").pipe(Command.withSubcommands([
|
|
|
76
76
|
* CLI application: reads argv from the Stdio service provided by NodeServices.
|
|
77
77
|
* (v4's `Command.run` takes only `version` — the name comes from the root command.)
|
|
78
78
|
*/
|
|
79
|
-
const cli = Command.run(rootCommand, { version: "2.4.
|
|
79
|
+
const cli = Command.run(rootCommand, { version: "2.4.1" });
|
|
80
80
|
/**
|
|
81
81
|
* Shared workspace services from `@effected/workspaces`, wired as a
|
|
82
82
|
* self-contained unit and built ONCE (layers memoize by reference).
|
package/commands/lint/check.js
CHANGED
|
@@ -285,14 +285,15 @@ function runLintCheck(opts) {
|
|
|
285
285
|
if (tsgoAvailable) yield* Effect.log(` ${CHECK_MARK} TypeScript (tsgo)`);
|
|
286
286
|
else if (tscAvailable) yield* Effect.log(` ${CHECK_MARK} TypeScript (tsc)`);
|
|
287
287
|
else yield* Effect.log(` ${BULLET} TypeScript: not installed`);
|
|
288
|
-
if (hasMarkdownlintConfig)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
288
|
+
if (hasMarkdownlintConfig) {
|
|
289
|
+
if (markdownlintStatus.isUpToDate) yield* Effect.log(` ${CHECK_MARK} ${Lint.MARKDOWNLINT_CONFIG_PATH}: up-to-date`);
|
|
290
|
+
else {
|
|
291
|
+
const issues = [];
|
|
292
|
+
if (!markdownlintStatus.schemaMatches) issues.push("$schema");
|
|
293
|
+
if (!markdownlintStatus.configMatches) issues.push("config");
|
|
294
|
+
yield* Effect.log(` ${WARNING} ${Lint.MARKDOWNLINT_CONFIG_PATH}: ${issues.join(", ")} differ from template`);
|
|
295
|
+
}
|
|
296
|
+
} else yield* Effect.log(` ${BULLET} ${Lint.MARKDOWNLINT_CONFIG_PATH}: not found`);
|
|
296
297
|
for (const status of biomeSchemaStatus.statuses) if (status.matches) yield* Effect.log(` ${CHECK_MARK} ${status.path}: biome $schema up-to-date`);
|
|
297
298
|
else yield* Effect.log(` ${WARNING} ${status.path}: biome $schema outdated (run 'savvy init' to update)`);
|
|
298
299
|
yield* Effect.log("");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.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",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"savvy": "bin/savvy.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@effect/platform-node": "4.0.0-beta.
|
|
35
|
-
"@effected/commands": "^0.
|
|
36
|
-
"@effected/git": "^0.
|
|
37
|
-
"@effected/jsonc": "^0.
|
|
38
|
-
"@effected/templates": "^0.
|
|
39
|
-
"@effected/workspaces": "^0.
|
|
40
|
-
"@effected/yaml": "^0.
|
|
41
|
-
"@savvy-web/silk-effects": "5.5.
|
|
42
|
-
"effect": "4.0.0-beta.
|
|
34
|
+
"@effect/platform-node": "4.0.0-beta.107",
|
|
35
|
+
"@effected/commands": "^0.4.0",
|
|
36
|
+
"@effected/git": "^0.7.0",
|
|
37
|
+
"@effected/jsonc": "^0.6.0",
|
|
38
|
+
"@effected/templates": "^0.2.0",
|
|
39
|
+
"@effected/workspaces": "^0.11.0",
|
|
40
|
+
"@effected/yaml": "^0.7.0",
|
|
41
|
+
"@savvy-web/silk-effects": "5.5.1",
|
|
42
|
+
"effect": "4.0.0-beta.107"
|
|
43
43
|
}
|
|
44
44
|
}
|