create-refrakt 0.35.0 → 0.37.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/dist/bin.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-refrakt",
3
3
  "description": "Scaffold a new refrakt.md project",
4
- "version": "0.35.0",
4
+ "version": "0.37.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@clack/prompts": "^1.2.0",
33
- "@refrakt-md/plan": "0.35.0",
34
- "@refrakt-md/runes": "0.35.0",
35
- "@refrakt-md/transform": "0.35.0"
33
+ "@refrakt-md/plan": "0.37.0",
34
+ "@refrakt-md/runes": "0.37.0",
35
+ "@refrakt-md/transform": "0.37.0"
36
36
  }
37
37
  }
@@ -7,6 +7,10 @@ const { site } = resolveSite(config);
7
7
  const contentDir = path.resolve(site.contentDir);
8
8
 
9
9
  export async function load() {
10
+ // No `reporter` (SPEC-135 D5): this is a per-request server load with no
11
+ // cache in front of it, so a build summary here would print on every
12
+ // navigation. The Vite plugin already reports the same site once at build
13
+ // and once per dev reload.
10
14
  const site = await loadContent(contentDir);
11
15
 
12
16
  return {
@@ -2,7 +2,7 @@ import {
2
2
  loadContent,
3
3
  buildHighlightOptions,
4
4
  analyzeRuneUsage,
5
- formatPipelineSummary,
5
+ stderrReporter,
6
6
  } from '@refrakt-md/content';
7
7
  import {
8
8
  renderFullPage,
@@ -121,14 +121,15 @@ async function build() {
121
121
  // `security` / `variables` via a CLI flag — for hosted-product use, edit
122
122
  // this file to pass them through to `loadContent` (matches the option
123
123
  // shape `createRefraktLoader` accepts for the Vite-based adapters).
124
- const loadedSite = await loadContent(contentDir, '/', icons, communityTags);
125
-
126
- // Print the standard Phase 1/2/3/4 + warnings summary so the HTML build
127
- // gets the same visibility into the cross-page pipeline that the SvelteKit
128
- // reference adapter prints.
129
- process.stderr.write(
130
- formatPipelineSummary(loadedSite.pipelineStats, loadedSite.pipelineWarnings),
131
- );
124
+ // `reporter` prints the standard Phase 1/2/3/4 + warnings summary, so this
125
+ // build gets the same output as every other adapter without formatting it
126
+ // here.
127
+ const loadedSite = await loadContent(contentDir, {
128
+ basePath: '/',
129
+ icons,
130
+ additionalTags: communityTags,
131
+ reporter: stderrReporter,
132
+ });
132
133
 
133
134
  mkdirSync(outDir, { recursive: true });
134
135