create-refrakt 0.41.2 → 0.41.3

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/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.41.2",
4
+ "version": "0.41.3",
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.41.2",
34
- "@refrakt-md/runes": "0.41.2",
35
- "@refrakt-md/transform": "0.41.2"
33
+ "@refrakt-md/plan": "0.41.3",
34
+ "@refrakt-md/runes": "0.41.3",
35
+ "@refrakt-md/transform": "0.41.3"
36
36
  }
37
37
  }
@@ -7,7 +7,7 @@
7
7
  {% nav %}
8
8
  ## Docs
9
9
 
10
- - getting-started
10
+ - docs/getting-started
11
11
 
12
12
  {% /nav %}
13
13
  {% /region %}
@@ -7,7 +7,7 @@
7
7
  {% nav %}
8
8
  ## Docs
9
9
 
10
- - getting-started
10
+ - docs/getting-started
11
11
 
12
12
  {% /nav %}
13
13
  {% /region %}
@@ -7,7 +7,7 @@
7
7
  {% nav %}
8
8
  ## Docs
9
9
 
10
- - getting-started
10
+ - docs/getting-started
11
11
 
12
12
  {% /nav %}
13
13
  {% /region %}
@@ -17,7 +17,7 @@ import { createHighlightTransform } from '@refrakt-md/highlight';
17
17
  import { loadPlugin, loadProjectRunes, mergePlugins, runes as coreRunes } from '@refrakt-md/runes';
18
18
  import { fsProjectFiles } from '@refrakt-md/types/project-files';
19
19
  import { getThemePackage } from '@refrakt-md/types';
20
- import type { RendererNode } from '@refrakt-md/types';
20
+ import type { Plugin, RendererNode } from '@refrakt-md/types';
21
21
  import type { Schema } from '@markdoc/markdoc';
22
22
  import { mkdirSync, writeFileSync, cpSync, existsSync } from 'node:fs';
23
23
  import { fileURLToPath } from 'node:url';
@@ -66,6 +66,7 @@ async function build() {
66
66
  // Load plugins — site-scoped first, top-level fallback for legacy configs
67
67
  const pluginNames = site.plugins ?? config.plugins ?? [];
68
68
  let communityTags: Record<string, Schema> | undefined;
69
+ let plugins: Plugin[] | undefined;
69
70
  let finalConfig = themeConfig;
70
71
 
71
72
  // The project's own composed runes: every `<rune>.md` in `runes.dir`.
@@ -78,6 +79,7 @@ async function build() {
78
79
  const merged = mergePlugins(loaded, coreRuneNames, site.runes?.prefer, project);
79
80
 
80
81
  communityTags = Object.keys(merged.tags).length > 0 ? merged.tags : undefined;
82
+ plugins = merged.plugins;
81
83
 
82
84
  const { config: assembledConfig } = assembleThemeConfig({
83
85
  coreConfig: themeConfig,
@@ -122,10 +124,13 @@ async function build() {
122
124
  },
123
125
  };
124
126
 
125
- // Load content. The HTML adapter's build script doesn't surface
126
- // `security` / `variables` via a CLI flag — for hosted-product use, edit
127
- // this file to pass them through to `loadContent` (matches the option
128
- // shape `createRefraktLoader` accepts for the Vite-based adapters).
127
+ // Load content. `plugins` carries the configured plugins' pipeline hooks
128
+ // and declarative `registers`; without it the entity registry and every
129
+ // cross-page feature built on it come out empty. The HTML adapter's build
130
+ // script doesn't surface `security` / `variables` via a CLI flag — for
131
+ // hosted-product use, edit this file to pass them through to `loadContent`
132
+ // (matches the option shape `createRefraktLoader` accepts for the
133
+ // Vite-based adapters).
129
134
  // `reporter` prints the standard Phase 1/2/3/4 + warnings summary, so this
130
135
  // build gets the same output as every other adapter without formatting it
131
136
  // here.
@@ -133,6 +138,9 @@ async function build() {
133
138
  basePath: '/',
134
139
  icons,
135
140
  additionalTags: communityTags,
141
+ plugins,
142
+ projectRoot: configDir,
143
+ siteConfig: site,
136
144
  reporter: stderrReporter,
137
145
  });
138
146
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2022",
4
- "module": "ES2022",
4
+ "module": "ESNext",
5
5
  "moduleResolution": "bundler",
6
6
  "strict": true,
7
7
  "esModuleInterop": true,
@@ -7,7 +7,7 @@
7
7
  {% nav %}
8
8
  ## Docs
9
9
 
10
- - getting-started
10
+ - docs/getting-started
11
11
 
12
12
  {% /nav %}
13
13
  {% /region %}
@@ -7,7 +7,7 @@
7
7
  {% nav %}
8
8
  ## Docs
9
9
 
10
- - getting-started
10
+ - docs/getting-started
11
11
 
12
12
  {% /nav %}
13
13
  {% /region %}