@kiln-js/vite-plugin 0.1.0 → 0.1.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/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import react from "@vitejs/plugin-react";
|
|
4
|
-
import { scanRoutes, scanApi } from "@kiln/core/scan";
|
|
4
|
+
import { scanRoutes, scanApi } from "@kiln-js/core/scan";
|
|
5
5
|
var VIRTUAL = "virtual:kiln-routes";
|
|
6
6
|
var RESOLVED = "\x00" + VIRTUAL;
|
|
7
7
|
var SERVER_FILE = /\.server(\.[jt]sx?)?$/;
|
|
@@ -10,7 +10,7 @@ var PRELUDE = `import __kilnRoutes, { api as __kilnApi } from "${VIRTUAL}";
|
|
|
10
10
|
globalThis.__KILN_ROUTES__ = __kilnRoutes;
|
|
11
11
|
globalThis.__KILN_API__ = __kilnApi;
|
|
12
12
|
`;
|
|
13
|
-
var TITLE_IMPORT = `import { Title as KilnTitle } from "@kiln/core";
|
|
13
|
+
var TITLE_IMPORT = `import { Title as KilnTitle } from "@kiln-js/core";
|
|
14
14
|
`;
|
|
15
15
|
var norm = (p) => p.replace(/\\/g, "/");
|
|
16
16
|
function routesPlugin(pagesDir, apiDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiln-js/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@kiln/core": "
|
|
19
|
+
"@kiln-js/core": "^0.1.3",
|
|
20
20
|
"@vitejs/plugin-react": "^4.3.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|