@jxsuite/create 1.2.1 → 1.3.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/generate.ts CHANGED
@@ -10,6 +10,8 @@ import { existsSync } from "node:fs";
10
10
  import { mediaForTemplate } from "./templates";
11
11
  import type { TemplateId } from "./templates";
12
12
 
13
+ import TEMPLATE_VERSIONS from "./template-versions.json";
14
+
13
15
  const __dirname = import.meta.dirname;
14
16
  const TEMPLATE_DIR = join(__dirname, "template");
15
17
  const TEMPLATE_OVERLAYS_DIR = join(__dirname, "templates");
@@ -393,14 +395,20 @@ function buildPackageJson({
393
395
 
394
396
  // Projects own their extension dependencies (specs/extensions.md §3) — the parser extension is
395
397
  // A runtime dependency, resolved project-first by every host.
398
+ //
399
+ // The ranges come from ./template-versions.json, which is GENERATED and CI-verified
400
+ // (`bun run templates:check`) and rewritten by release-please inside the release commit itself
401
+ // (release-please-config.json extra-files). Hardcoding them here is what left every scaffolded
402
+ // Project asking for a compiler four majors behind the one that shipped. Never hand-edit the
403
+ // Map; `bun run templates:sync` is the fixer.
396
404
  const dependencies: Record<string, string> = {
397
- "@jxsuite/parser": "^0.35.1",
405
+ "@jxsuite/parser": TEMPLATE_VERSIONS.parser,
398
406
  };
399
407
  const devDependencies: Record<string, string> = {
400
- "@jxsuite/compiler": "^0.19.0",
401
- "@jxsuite/runtime": "^0.19.0",
408
+ "@jxsuite/compiler": TEMPLATE_VERSIONS.compiler,
409
+ "@jxsuite/runtime": TEMPLATE_VERSIONS.runtime,
402
410
  // The `dev` script spawns @jxsuite/server's dev entry (see jx dev in the compiler CLI)
403
- "@jxsuite/server": "^1.0.0",
411
+ "@jxsuite/server": TEMPLATE_VERSIONS.server,
404
412
  };
405
413
 
406
414
  const scripts: Record<string, string> = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/create",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Scaffold a new Jx project",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -17,6 +17,7 @@
17
17
  "cli-args.ts",
18
18
  "templates.ts",
19
19
  "scaffold.ts",
20
+ "template-versions.json",
20
21
  "template/",
21
22
  "templates/"
22
23
  ],
@@ -25,7 +26,8 @@
25
26
  ".": "./index.ts",
26
27
  "./generate": "./generate.ts",
27
28
  "./templates": "./templates.ts",
28
- "./scaffold": "./scaffold.ts"
29
+ "./scaffold": "./scaffold.ts",
30
+ "./template-versions.json": "./template-versions.json"
29
31
  },
30
32
  "publishConfig": {
31
33
  "provenance": true
@@ -35,6 +37,6 @@
35
37
  "test:coverage": "bun test --isolate --coverage"
36
38
  },
37
39
  "dependencies": {
38
- "@jxsuite/starters": "^1.2.1"
40
+ "@jxsuite/starters": "^1.3.0"
39
41
  }
40
42
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "parser": "^1.5.0",
3
+ "compiler": "^2.0.0",
4
+ "runtime": "^2.0.0",
5
+ "server": "^2.1.0"
6
+ }