fse-ssr 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/integration.d.ts +10 -0
  2. package/package.json +7 -3
@@ -0,0 +1,10 @@
1
+ import type { AstroIntegration } from "astro";
2
+
3
+ export interface FseSsrOptions {
4
+ /** Path to the locale directory, relative to the Astro project root. Default: `"../../locales"`. */
5
+ locales?: string;
6
+ /** Locale file (without extension) read to type `t.*`. Default: `"en"`. */
7
+ defaultLocale?: string;
8
+ }
9
+
10
+ export default function fseSsr(options?: FseSsrOptions): AstroIntegration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fse-ssr",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Compile-to-Tera SSR bindings for full_stack_engine's Astro starter: author native TypeScript in .astro files, get Tera output at build time.",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",
@@ -11,10 +11,14 @@
11
11
  },
12
12
  "files": [
13
13
  "dist",
14
- "integration.mjs"
14
+ "integration.mjs",
15
+ "integration.d.ts"
15
16
  ],
16
17
  "exports": {
17
- ".": "./integration.mjs",
18
+ ".": {
19
+ "types": "./integration.d.ts",
20
+ "import": "./integration.mjs"
21
+ },
18
22
  "./ssr": {
19
23
  "types": "./dist/runtime.d.ts",
20
24
  "import": "./dist/runtime.js"