@ogygia/router 0.14.0 → 0.15.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/vite.js +7 -0
- package/package.json +5 -5
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
1
3
|
import { definePlugin } from "@ogygia/compiler/vite";
|
|
2
4
|
// src/vite.ts
|
|
5
|
+
const LIB_DIR = path.dirname(fileURLToPath(import.meta.url));
|
|
3
6
|
/**
|
|
4
7
|
* The server router's plugin, listed beside `ogygia()` in vite.config. A `routes()` table renders
|
|
5
8
|
* pages outside Kit's routes, so nothing file-derived links their components' CSS: this tells the
|
|
@@ -11,6 +14,10 @@ function router() {
|
|
|
11
14
|
name: "@ogygia/router",
|
|
12
15
|
build(b) {
|
|
13
16
|
b.pageModules({ importers: ["@ogygia/router"] });
|
|
17
|
+
b.files({
|
|
18
|
+
root: path.dirname(LIB_DIR),
|
|
19
|
+
files: [path.join(LIB_DIR, "LayoutChain.svelte")]
|
|
20
|
+
});
|
|
14
21
|
}
|
|
15
22
|
});
|
|
16
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogygia/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "The server router for ogygia: Kit's routing model as values (routes, layouts, loads, actions, endpoints, streamed pages), with a typed fetch client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ogygia",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"@ogygia/machine": "^0.14.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@ogygia/compiler": "0.
|
|
48
|
+
"@ogygia/compiler": "0.15.0",
|
|
49
49
|
"@ogygia/config": "0.0.0",
|
|
50
|
-
"@ogygia/core": "0.
|
|
50
|
+
"@ogygia/core": "0.15.0",
|
|
51
51
|
"@ogygia/tooling": "0.0.0",
|
|
52
52
|
"@playwright/test": "1.62.1",
|
|
53
53
|
"@sveltejs/kit": "^2.70.2",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"vitest": "^4.1.12"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@ogygia/compiler": "^0.
|
|
66
|
-
"@ogygia/core": "^0.
|
|
65
|
+
"@ogygia/compiler": "^0.15.0",
|
|
66
|
+
"@ogygia/core": "^0.15.0",
|
|
67
67
|
"@sveltejs/kit": ">=2.70.2 <4",
|
|
68
68
|
"svelte": "^5.56.8"
|
|
69
69
|
},
|