@riebeckite/honox 0.0.1 → 0.0.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.
@@ -1,3 +1,3 @@
1
- import type { ResolvedRiebeckiteConfig } from "@riebeckite/core";
1
+ import { type ResolvedRiebeckiteConfig } from "@riebeckite/core";
2
2
  import type { Plugin } from "vite";
3
3
  export declare function riebeckiteClientModule(getConfig: () => ResolvedRiebeckiteConfig): Plugin;
@@ -0,0 +1,10 @@
1
+ import type { Plugin } from "vite";
2
+ type HonoxPlugin = Plugin | Promise<Plugin>;
3
+ /**
4
+ * Replaces HonoX's dependency walker with one that remains inside the app
5
+ * directory. Riebeckite configurations import plugins with large dependency
6
+ * graphs, which must not be traversed merely to determine whether a route
7
+ * imports an island.
8
+ */
9
+ export declare function replaceHonoxIslandDependencyPlugin(plugins: HonoxPlugin[]): HonoxPlugin[];
10
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { SiteTemplateFile, SiteTemplateVariables } from "./templates.js";
2
+ export declare const SCAFFOLD_LANGUAGES: readonly ["en", "ja", "zh-CN", "es", "de", "fr", "ko"];
3
+ export type ScaffoldLanguage = (typeof SCAFFOLD_LANGUAGES)[number];
4
+ export declare function defaultLanguageForLocale(locale: string): string;
5
+ /**
6
+ * Generates the localized content pages for the scaffold.
7
+ *
8
+ * Naming follows the l10n plugin convention: the default-language page keeps
9
+ * the plain name (`index.md`) while every other language uses the
10
+ * `<base>.<lang>.md` suffix. The l10n plugin derives the translation group
11
+ * from the path, so `content/index.ja.md` and `content/index.md` share a
12
+ * translation while being served under `/` and `/ja/`.
13
+ */
14
+ export declare function localizedContentFiles(variables: SiteTemplateVariables): readonly SiteTemplateFile[];
@@ -11,7 +11,7 @@ export type RiebeckiteIntegrationOptions = {
11
11
  * external. These are internal to the integration: sites should not have to
12
12
  * restate the Vite `environments.ssr.resolve.external` list.
13
13
  */
14
- export declare const defaultSsrExternals: readonly ["extend", "debug", "node:fs/promises", "node:path", "parse-numeric-range", "slugify", "vfile-matter"];
14
+ export declare const defaultSsrExternals: readonly ["extend", "debug", "node:fs/promises", "node:path", "parse-numeric-range", "slugify", "vfile-matter", "yaml"];
15
15
  export type RiebeckiteViteOptions = RiebeckiteIntegrationOptions & {
16
16
  /** Extra SSR externals appended after Riebeckite's defaults. */
17
17
  ssrExternals?: readonly string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/honox",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,10 +26,11 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
+ "@babel/parser": "^7.29.3",
29
30
  "esbuild": "^0.28.2",
30
31
  "hono": "^4.12.25",
31
32
  "vite": "^8.0.9",
32
- "@riebeckite/core": "0.0.1"
33
+ "@riebeckite/core": "0.0.3"
33
34
  },
34
35
  "publishConfig": {
35
36
  "access": "public"