@opentf/afw-cli 0.0.0-stage → 1.31.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/src/ssg.js ADDED
@@ -0,0 +1,31 @@
1
+ // Stable SSG surface for `then: "run"` prerender steps (`website/ssg.js`).
2
+ //
3
+ // A prerender bundle must import ONE specifier that resolves identically whether
4
+ // the site builds inside this monorepo (workspace symlink) or standalone from
5
+ // npm (a Cloudflare `website/` root directory): `@opentf/afw-cli/ssg`. Reaching
6
+ // into `./src/shared.js` relatively would only work in the monorepo, and the
7
+ // package's `exports` map would block the bare subpath — so this module is the
8
+ // curated re-export. When these helpers move to `@opentf/esdev-plugin-afw`,
9
+ // only this file changes; consumers stay untouched.
10
+
11
+ export { exists, findUp, readText, resolveFrom } from "./runtime.js";
12
+ export {
13
+ assertNoRouteConflicts,
14
+ closeCompilers,
15
+ discoverLoaders,
16
+ discoverPages,
17
+ emitApiBundle,
18
+ emitLoaderBundle,
19
+ loadConfig,
20
+ loadDocsPlugins,
21
+ resolveCompiler,
22
+ runBlogFeed,
23
+ runDocsSearchIndex,
24
+ runLastUpdated,
25
+ runLlmsFiles,
26
+ stampHydrateSentinel,
27
+ } from "./shared.js";
28
+ export { runPrerender } from "./prerender.js";
29
+ export { fmtMs, step } from "./reporter.js";
30
+
31
+ export { siteOutputPlugin, writePrerenderReport } from "./output.js";