@theholocron/cli 5.0.0-alpha.246 → 5.0.0-alpha.248

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/dist/presets.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as compose } from "./compose-Cao-W6Mu.mjs";
2
- //#region src/presets/capabilities/audit.ts
1
+ import { t as compose } from "./compose-DFW8ftHT.mjs";
2
+ // src/presets/capabilities/audit.ts
3
3
  /**
4
4
  * Adds BundleWatch + optional Knip and Lighthouse auditing. Marked `required` —
5
5
  * `holocron setup` derives the `audit / Conclusion` branch-protection check
@@ -24,12 +24,10 @@ function audit({ knip = false, performance = false, lighthouseConfig } = {}) {
24
24
  }]
25
25
  };
26
26
  }
27
- //#endregion
28
- //#region src/presets/constants.ts
27
+ // src/presets/constants.ts
29
28
  /** Cloudflare account ID for the theholocron org. */
30
29
  const CLOUDFLARE_ACCOUNT_ID = "9c558af98664d13fc89b7e0a0d93d5a8";
31
- //#endregion
32
- //#region src/presets/capabilities/docs.ts
30
+ // src/presets/capabilities/docs.ts
33
31
  /**
34
32
  * Adds a documentation site deployed to Cloudflare Pages with PR previews.
35
33
  * Sets org/domain, wires Cloudflare + DNS providers, and adds the codecov
@@ -61,8 +59,7 @@ function docs() {
61
59
  extraRequiredChecks: ["codecov/patch", "codecov/project"]
62
60
  };
63
61
  }
64
- //#endregion
65
- //#region src/presets/capabilities/monorepo.ts
62
+ // src/presets/capabilities/monorepo.ts
66
63
  /**
67
64
  * Adjusts a repo to be a monorepo — sets uses_external_packages: true
68
65
  * (workspaces pull in many deps). Compose after the base capabilities.
@@ -78,8 +75,7 @@ function monorepo() {
78
75
  repo: { properties: { uses_external_packages: true } }
79
76
  };
80
77
  }
81
- //#endregion
82
- //#region src/presets/capabilities/react.ts
78
+ // src/presets/capabilities/react.ts
83
79
  /**
84
80
  * Adds React/Storybook UI testing and browser runtime config.
85
81
  * Contributes: secrets provider, browser runtime property, Storybook + interaction
@@ -126,8 +122,7 @@ function react({ test: testOverrides = {} } = {}) {
126
122
  ]
127
123
  };
128
124
  }
129
- //#endregion
130
- //#region src/presets/capabilities/nextjs.ts
125
+ // src/presets/capabilities/nextjs.ts
131
126
  /**
132
127
  * Bundle preset for Next.js application repos. Returns a Capability[] that
133
128
  * includes react() so callers only need compose(node(), typecheck(), nextjs()).
@@ -159,8 +154,7 @@ function nextjs({ test: testOverrides = {} } = {}) {
159
154
  };
160
155
  return [react(), nextjsCapability];
161
156
  }
162
- //#endregion
163
- //#region src/presets/capabilities/node.ts
157
+ // src/presets/capabilities/node.ts
164
158
  /** The org-standard linter set — drives both CI super-linter and `holocron run lint`. */
165
159
  const ORG_LINTERS = [
166
160
  "eslint",
@@ -221,8 +215,7 @@ function node() {
221
215
  ]
222
216
  };
223
217
  }
224
- //#endregion
225
- //#region src/presets/capabilities/typecheck.ts
218
+ // src/presets/capabilities/typecheck.ts
226
219
  /**
227
220
  * Adds TypeScript type-checking to a repo. Marked `required` — `holocron setup`
228
221
  * derives the `Typecheck / Conclusion` branch-protection check from the manifest.
@@ -238,8 +231,7 @@ function typecheck() {
238
231
  }]
239
232
  };
240
233
  }
241
- //#endregion
242
- //#region src/presets/capabilities/wiki.ts
234
+ // src/presets/capabilities/wiki.ts
243
235
  /**
244
236
  * Adds the Fern engineering wiki (wiki.theholocron.dev/<repo>) to a repo.
245
237
  * Provisions docs/wiki/{decisions,standards,specifications}/ and wires the
@@ -264,8 +256,7 @@ function wiki() {
264
256
  tasks: ["wiki"]
265
257
  };
266
258
  }
267
- //#endregion
268
- //#region src/presets/configs/docs.ts
259
+ // src/presets/configs/docs.ts
269
260
  /**
270
261
  * Preset for theholocron repos that are TypeScript libraries AND publish a
271
262
  * documentation site (e.g. configs, utils, holocron, clients).
@@ -315,8 +306,7 @@ function docsPreset() {
315
306
  function docsSitePreset() {
316
307
  return compose(node(), docs());
317
308
  }
318
- //#endregion
319
- //#region src/presets/configs/monorepo.ts
309
+ // src/presets/configs/monorepo.ts
320
310
  /**
321
311
  * Wraps any composed preset with monorepo-specific overrides
322
312
  * (sets uses_external_packages: true).
@@ -338,8 +328,7 @@ function monorepoPreset(base) {
338
328
  }
339
329
  };
340
330
  }
341
- //#endregion
342
- //#region src/presets/configs/nextjs.ts
331
+ // src/presets/configs/nextjs.ts
343
332
  /**
344
333
  * Preset for single-package Next.js application repos. Includes Vercel
345
334
  * deployment, Lighthouse audit, Storybook + interaction + user-flow tests,
@@ -360,8 +349,7 @@ function monorepoPreset(base) {
360
349
  function nextjsPreset(options) {
361
350
  return compose(node(), typecheck(), ...nextjs(options));
362
351
  }
363
- //#endregion
364
- //#region src/presets/configs/node.ts
352
+ // src/presets/configs/node.ts
365
353
  /**
366
354
  * Base preset for theholocron Node.js repositories.
367
355
  * Spread the returned fragments into `defineConfig()`.
@@ -377,8 +365,7 @@ function nextjsPreset(options) {
377
365
  function nodePreset() {
378
366
  return compose(node());
379
367
  }
380
- //#endregion
381
- //#region src/presets/configs/react.ts
368
+ // src/presets/configs/react.ts
382
369
  /**
383
370
  * Preset for single-package React/Vite application repos. Includes Storybook,
384
371
  * interaction tests, Knip + Lighthouse audit, and the UI extraRequiredChecks.
@@ -399,8 +386,7 @@ function nodePreset() {
399
386
  function reactPreset(options) {
400
387
  return compose(node(), typecheck(), react(options));
401
388
  }
402
- //#endregion
403
- //#region src/presets/index.ts
389
+ // src/presets/index.ts
404
390
  /** The capability factories, for composing your own preset with compose(). */
405
391
  const withCapabilities = {
406
392
  withAudit: audit,
@@ -412,5 +398,4 @@ const withCapabilities = {
412
398
  withTypecheck: typecheck,
413
399
  withWiki: wiki
414
400
  };
415
- //#endregion
416
401
  export { CLOUDFLARE_ACCOUNT_ID, compose, docsPreset, docsSitePreset, monorepoPreset, nextjsPreset, nodePreset, reactPreset, withCapabilities };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.246",
3
+ "version": "5.0.0-alpha.248",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -63,8 +63,8 @@
63
63
  "pino-pretty": "^13.1.3",
64
64
  "posthog-node": "^5.51.6",
65
65
  "yargs": "^18.1.0",
66
- "@theholocron/astromech": "5.0.0-alpha.246",
67
- "@theholocron/datapad": "5.0.0-alpha.246"
66
+ "@theholocron/astromech": "5.0.0-alpha.248",
67
+ "@theholocron/datapad": "5.0.0-alpha.248"
68
68
  },
69
69
  "devDependencies": {
70
70
  "@theholocron/eslint-config": "^8.8.2",
@@ -73,15 +73,15 @@
73
73
  "@theholocron/vitest-config": "^8.8.2",
74
74
  "@types/node": "^26",
75
75
  "@types/yargs": "^17.0.35",
76
- "@vitest/coverage-v8": "^4.1.11",
76
+ "@vitest/coverage-v8": "^5.0.5",
77
77
  "@vitest/eslint-plugin": "^1.6.27",
78
78
  "eslint": "^10.8.1",
79
79
  "eslint-plugin-n": "^18.3.0",
80
80
  "globals": "^17.11.0",
81
- "tsdown": "^0.22.14",
81
+ "tsdown": "^0.23.3",
82
82
  "tsx": "4.23.15",
83
83
  "typescript": "^5.9.3",
84
- "vitest": "^4.1.11"
84
+ "vitest": "^5.0.5"
85
85
  },
86
86
  "engines": {
87
87
  "node": ">=22.0.0"