create-geonosis 2.0.0 → 2.1.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/README.md CHANGED
@@ -87,8 +87,8 @@ Two things are compared and two are deliberately not:
87
87
  - a **value** — never. `doctor.corpus` pointing somewhere else is that repo's answer, not a drift.
88
88
 
89
89
  **The workspaces are out of the question.** `packages/core/src/money.ts` is a sample that makes a
90
- new repo compile, not a shape a repo must hold. Measured over dielime: including them turned 24 real
91
- findings into 52, thirty of which were about a `packages/ui` that repo does not have.
90
+ new repo compile, not a shape a repo must hold. Measured over a consumer: including them turned 24 real
91
+ findings into 52, thirty of them about a sample workspace that repo does not have.
92
92
 
93
93
  Over dielime — a repo scaffolded before D-054 moved the law — it reads 24, among them `LAW.md`,
94
94
  `geonosis.json → law.file`, three architecture rules the plugin has since added, and
@@ -24,13 +24,13 @@ var SEARCH = {
24
24
  "import { pgFtsSearchIndex, type SearchIndex, type SearchProjections } from '@geonosis/search'"
25
25
  ],
26
26
  name: "@geonosis/search",
27
- version: "0.1.1"
27
+ version: "0.3.0"
28
28
  };
29
29
  var DOMAINS = [SEARCH];
30
30
  var DOMAIN_NAMES = DOMAINS.map((one) => one.field);
31
31
  var FOUNDATIONS = [
32
- { at: "foundations/db", name: "@geonosis/db", version: "0.2.0" },
33
- { at: "foundations/events", name: "@geonosis/events", version: "1.5.0" }
32
+ { at: "foundations/db", name: "@geonosis/db", version: "0.3.0" },
33
+ { at: "foundations/events", name: "@geonosis/events", version: "1.5.1" }
34
34
  ];
35
35
  var domainsNamed = (named) => named.map((one) => {
36
36
  const found = DOMAINS.find((domain) => domain.field === one);
@@ -397,7 +397,7 @@ var workspacesOf = (answers) => {
397
397
 
398
398
  // src/files.ts
399
399
  import { countersFor, LAW_SOURCE, rulesFor, tiersFor } from "@geonosis/cli";
400
- var VERSION = "2.0.0";
400
+ var VERSION = "2.1.0";
401
401
  var SCHEMA = "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json";
402
402
  var CATALOG = {
403
403
  "@types/node": "^24.3.0",
@@ -512,12 +512,22 @@ var kitDependencies = (answers) => ({
512
512
  "@geonosis/verify": `^${VERSION}`,
513
513
  ...answers.themekit === void 0 ? {} : { "@geonosis/themekit": `^${VERSION}` }
514
514
  });
515
+ var GRAPH_SYNCS = [
516
+ { target: "turbo", write: "turbo.json" },
517
+ { target: "layer-walls", write: ".oxlintrc.json" }
518
+ ];
519
+ var graphScript = GRAPH_SYNCS.map(
520
+ ({ target, write: write2 }) => `geonosis-ledger sync --target ${target} --write ${write2}`
521
+ ).join(" && ");
515
522
  var rootScripts = ({ runtime }) => ({
516
523
  doctor: "geonosis-doctor",
517
524
  "format:check": "oxfmt --config .oxfmtrc.json --check .",
518
525
  format: "oxfmt --config .oxfmtrc.json .",
519
526
  lint: "oxlint --config .oxlintrc.json .",
527
+ // A counter nothing has ever seen read its own planted finding has not been shown to measure.
528
+ prove: "geonosis-ratchet --prove",
520
529
  ratchet: "geonosis-ratchet",
530
+ "sync:graph": graphScript,
521
531
  sync: "geonosis sync",
522
532
  test: everyWorkspace(runtime, "test"),
523
533
  typecheck: everyWorkspace(runtime, "typecheck"),
@@ -1010,8 +1020,9 @@ exec node "${join2(from, entry)}" "$@"
1010
1020
  )
1011
1021
  )
1012
1022
  );
1023
+ const rootDeclares = new Set(Object.keys(kitDependencies(answers)));
1013
1024
  for (const [name, from] of at) {
1014
- if (!owned.has(name)) {
1025
+ if (!owned.has(name) && rootDeclares.has(name)) {
1015
1026
  manifest.devDependencies = { ...manifest.devDependencies, [name]: `link:${from}` };
1016
1027
  }
1017
1028
  }
@@ -1042,22 +1053,17 @@ var finish = ({ answers, install }) => {
1042
1053
  }
1043
1054
  const ledger = join2(answers.dir, "node_modules/.bin/geonosis-ledger");
1044
1055
  if (existsSync2(ledger)) {
1045
- steps.push(
1046
- run("sync the edges table into turbo.json", answers.dir, ledger, [
1047
- "sync",
1048
- "--target",
1049
- "turbo",
1050
- "--write",
1051
- "turbo.json"
1052
- ]),
1053
- run("sync the edges table into .oxlintrc.json", answers.dir, ledger, [
1054
- "sync",
1055
- "--target",
1056
- "layer-walls",
1057
- "--write",
1058
- ".oxlintrc.json"
1059
- ])
1060
- );
1056
+ for (const { target, write: into } of GRAPH_SYNCS) {
1057
+ steps.push(
1058
+ run(`sync the edges table into ${into}`, answers.dir, ledger, [
1059
+ "sync",
1060
+ "--target",
1061
+ target,
1062
+ "--write",
1063
+ into
1064
+ ])
1065
+ );
1066
+ }
1061
1067
  }
1062
1068
  const oxfmt = join2(answers.dir, "node_modules/.bin/oxfmt");
1063
1069
  if (existsSync2(oxfmt)) {
@@ -7,7 +7,7 @@ import {
7
7
  parseAnswers,
8
8
  wantsInstall,
9
9
  writeScaffold
10
- } from "./chunk-PRX7MKFZ.js";
10
+ } from "./chunk-NLXNF4TP.js";
11
11
 
12
12
  // src/create-geonosis-cli.ts
13
13
  import { existsSync } from "fs";
package/dist/index.d.ts CHANGED
@@ -129,7 +129,7 @@ declare const corpusFor: (answers: Answers, workspaces: Workspace[]) => Record<s
129
129
  declare const filesFor: (answers: Answers) => Record<string, string>;
130
130
  declare const presetsChosenBy: (answers: Answers) => string[];
131
131
 
132
- /** The kit packages a scaffolded repo declares, and therefore the ones `--kit` has to link. */
132
+ /** The kit packages a scaffolded repo RESOLVES, and therefore the ones `--kit` has to link. */
133
133
  declare const KIT_PACKAGES: string[];
134
134
  /**
135
135
  * Every file, and never over the top of anything. A scaffold that overwrote a tree is a scaffold
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  wantsInstall,
24
24
  workspacesOf,
25
25
  writeScaffold
26
- } from "./chunk-PRX7MKFZ.js";
26
+ } from "./chunk-NLXNF4TP.js";
27
27
  export {
28
28
  BACKENDS,
29
29
  CORPUS_DIR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-geonosis",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "types": "./dist/index.d.ts",
5
5
  "description": "Scaffold a microcompany repo that passes its own geonosis gates on day one.",
6
6
  "keywords": [
@@ -34,7 +34,7 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@geonosis/cli": "2.0.0"
37
+ "@geonosis/cli": "2.1.0"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22"