@effected/schemastore-cli 0.17.0 → 0.18.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/ConfigLoader.js +2 -0
- package/README.md +4 -4
- package/main.js +1 -6
- package/package.json +8 -5
package/ConfigLoader.js
CHANGED
|
@@ -28,7 +28,9 @@ searched: Schema.Array(Schema.String) }) {
|
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
30
|
var ConfigLoadError = class extends Schema.TaggedError()("ConfigLoadError", {
|
|
31
|
+
/** The config file that failed to load. */
|
|
31
32
|
path: Schema.String,
|
|
33
|
+
/** Why it failed; the first line is the message, any remainder is detail such as a stack. */
|
|
32
34
|
reason: Schema.String
|
|
33
35
|
}) {
|
|
34
36
|
get message() {
|
package/README.md
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
The `schemastore` command: build and check SchemaStore-shaped JSON Schema documents from a `schemastore.config.ts`. It is the companion to [`@effected/schemastore`](https://www.npmjs.com/package/@effected/schemastore), which owns the pipeline and every type a config needs; this package ships the plumbing every consumer used to write by hand — the config loader, the drift policy, the frozen-label checks, the catalog file, exit codes, a GitHub step summary — once, as a `bin`. It is also where the validation engine lives: `AjvValidator`, ajv in strict mode, composed by the command and exported for a program that drives the pipeline itself, so the library stays free of ajv.
|
|
9
9
|
|
|
10
|
-
> **Pre
|
|
11
|
-
>
|
|
12
|
-
> `1.0.0`
|
|
13
|
-
>
|
|
10
|
+
> **Pre-`1.0.0`.** This package is part of the `@effected/*` kit, built on stable
|
|
11
|
+
> Effect v4 (`effect` `^4.0.0`) and still in `0.x` development. Stable Effect
|
|
12
|
+
> makes a kit `1.0.0` possible, not automatic. To keep your `effect` and
|
|
13
|
+
> `@effect/*` versions on the line the kit is built and tested against, install
|
|
14
14
|
> [`@effected/pnpm-plugin-effect`](https://www.npmjs.com/package/@effected/pnpm-plugin-effect).
|
|
15
15
|
>
|
|
16
16
|
> **Stability: unstable.** This package's API surface is not yet considered
|
package/main.js
CHANGED
|
@@ -6,16 +6,11 @@ import { CliRuntime } from "@effected/cli";
|
|
|
6
6
|
import { CliError } from "effect/cli";
|
|
7
7
|
|
|
8
8
|
//#region src/main.ts
|
|
9
|
-
/**
|
|
10
|
-
* The assembled schemastore CLI program.
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
9
|
const render = (error) => CliError.isCliError(error) && error._tag === "ShowHelp" ? [] : [error instanceof Error ? error.message : String(error)];
|
|
15
10
|
const main = () => {
|
|
16
11
|
const run = program(process.argv.slice(2), {
|
|
17
12
|
cwd: process.cwd(),
|
|
18
|
-
version: "0.
|
|
13
|
+
version: "0.18.0"
|
|
19
14
|
}).pipe(Effect.provide(NodeServices.layer), CliRuntime.reportFailures({
|
|
20
15
|
exitCode: 3,
|
|
21
16
|
render
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effected/schemastore-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The schemastore command: build and check SchemaStore-shaped JSON Schema documents from a schemastore.config.ts, with a per-schema published flag and a drift policy.",
|
|
6
6
|
"keywords": [
|
|
@@ -40,15 +40,18 @@
|
|
|
40
40
|
"schemastore": "bin/schemastore.js"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@effect/platform-node": "4.0.0
|
|
44
|
-
"@effected/cli": "^0.
|
|
43
|
+
"@effect/platform-node": "^4.0.0",
|
|
44
|
+
"@effected/cli": "^0.11.0",
|
|
45
|
+
"@effected/env": "^0.1.0",
|
|
46
|
+
"@effected/glob": "^0.10.0",
|
|
47
|
+
"@effected/walker": "^0.15.0",
|
|
45
48
|
"ajv": "^8.20.0",
|
|
46
49
|
"ajv-formats": "^3.0.1",
|
|
47
50
|
"jiti": "^2.6.0"
|
|
48
51
|
},
|
|
49
52
|
"peerDependencies": {
|
|
50
|
-
"@effected/schemastore": "0.
|
|
51
|
-
"effect": "4.0.0
|
|
53
|
+
"@effected/schemastore": "0.18.0",
|
|
54
|
+
"effect": "^4.0.0"
|
|
52
55
|
},
|
|
53
56
|
"engines": {
|
|
54
57
|
"node": ">=24.11.0"
|