@amritk/mjst 0.13.6 → 0.13.7

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/README.md CHANGED
@@ -128,7 +128,7 @@ since tsc cannot emit from `.ts` specifiers.
128
128
  > [!NOTE]
129
129
  > **Breaking change (0.9.0):** the root type is no longer always named `Document`. It is derived
130
130
  > from the schema `title`, falling back to the schema filename (`spec-plan.json` → `SpecPlan`,
131
- > giving `parseSpecPlan` / `validateSpecPlanShape`). Pass `--root-type <Name>` to override it for
131
+ > giving `parseSpecPlan` / `validateSpecPlan`). Pass `--root-type <Name>` to override it for
132
132
  > a single `--schema` run. Update any imports that referenced `Document` / `parseDocument`.
133
133
 
134
134
  ### External and remote `$ref`s
@@ -437,7 +437,7 @@ The exit code is `0` on success, `1` when compilation fails (unloadable module,
437
437
  <td align="center"></td>
438
438
  </tr>
439
439
  <tr>
440
- <td colspan="4">Name for the root type of a single --schema run (e.g. 'Program' yields parseProgram / validateProgramShape). When omitted, the name is derived from the schema's title, falling back to the schema filename in PascalCase (spec-plan.json → SpecPlan) and then to 'Document'. Not supported with --schema-dir, where each schema derives its own root type from its filename.<br><strong>Examples:</strong> <code>"Program"</code></td>
440
+ <td colspan="4">Name for the root type of a single --schema run (e.g. 'Program' yields parseProgram / validateProgram). When omitted, the name is derived from the schema's title, falling back to the schema filename in PascalCase (spec-plan.json → SpecPlan) and then to 'Document'. Not supported with --schema-dir, where each schema derives its own root type from its filename.<br><strong>Examples:</strong> <code>"Program"</code></td>
441
441
  </tr>
442
442
  <tr>
443
443
  <td>🌐 <code>resolveRemote</code></td>
@@ -526,12 +526,14 @@ The exit code is `0` on success, `1` when compilation fails (unloadable module,
526
526
 
527
527
  ## Scripts
528
528
 
529
- | Script | Command |
529
+ | Script | What it does |
530
530
  |:---|:---|
531
- | `bun run dev` | `bun run --conditions=development ./src/cli.ts` |
532
- | `bun run start` | `bun run ./src/cli.ts` |
533
- | `bun run build` | `bun run build:code && bun run build:types` |
534
- | `bun run generate-readme` | `bun run generate-readme` |
531
+ | `bun run dev` | Run the CLI from source, resolving workspace packages to their `development` exports. |
532
+ | `bun run start` | Run the CLI from source against built workspace packages. |
533
+ | `bun run build` | Compile to `dist/` (`tsgo` + `tsc-alias`, then strip comments). |
534
+ | `bun run types:check` | Type-check the package without emitting. |
535
+ | `bun run test` | Run this package's test suite. |
536
+ | `bun run generate-readme` | Regenerate the [Configuration reference](#configuration-reference) table from `config.schema.json`. |
535
537
 
536
538
  ---
537
539
 
@@ -133,7 +133,7 @@ export type CliConfig = {
133
133
  readonly importExt?: 'js' | 'ts';
134
134
  /**
135
135
  * Name for the root type of a single-`schema` run (e.g. `'Program'` yields
136
- * `parseProgram` / `validateProgramShape`). When omitted, the name is
136
+ * `parseProgram` / `validateProgram`). When omitted, the name is
137
137
  * derived from the schema's `title`, falling back to the schema filename in
138
138
  * PascalCase (`spec-plan.json` → `SpecPlan`) and then to `'Document'`.
139
139
  * Not supported with `schemaDir`, where each schema names its own root.
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@amritk/mjst",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
4
4
  "description": "Generate TypeScript parsers and type definitions from JSON Schemas.",
5
5
  "type": "module",
6
+ "engines": {
7
+ "node": ">=20"
8
+ },
6
9
  "license": "MIT",
7
10
  "author": "amritk",
8
11
  "keywords": [
@@ -42,16 +45,16 @@
42
45
  "generate-readme": "bun run ./scripts/generate-readme.ts"
43
46
  },
44
47
  "dependencies": {
45
- "@amritk/adapters": "0.3.5",
46
- "@amritk/api": "0.10.0",
47
- "@amritk/generate-examples": "0.5.5",
48
- "@amritk/generate-parsers": "0.17.2",
49
- "@amritk/generate-validators": "0.11.11",
50
- "@amritk/generate-markdown": "0.4.4",
51
- "@amritk/helpers": "0.13.5",
52
- "@amritk/lint": "0.4.1",
53
- "@amritk/resolve-refs": "0.4.4",
54
- "@amritk/yaml": "0.3.4",
48
+ "@amritk/adapters": "0.3.6",
49
+ "@amritk/api": "0.11.0",
50
+ "@amritk/generate-examples": "0.5.6",
51
+ "@amritk/generate-parsers": "0.18.0",
52
+ "@amritk/generate-validators": "0.11.12",
53
+ "@amritk/generate-markdown": "0.4.5",
54
+ "@amritk/helpers": "0.14.0",
55
+ "@amritk/lint": "0.4.2",
56
+ "@amritk/resolve-refs": "0.4.5",
57
+ "@amritk/yaml": "0.3.5",
55
58
  "fast-glob": "^3.3.2",
56
59
  "yargs": "^17.7.2"
57
60
  },