@bobbykim/manguito-cms-cli 0.2.0 → 0.2.2
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 +10 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -44766,7 +44766,7 @@ import { createServer as createHttpServer } from "http";
|
|
|
44766
44766
|
import { resolve as resolve5, join as join9, dirname as dirname2, extname as extname2 } from "path";
|
|
44767
44767
|
import { mkdir as mkdir2, writeFile as writeFile7, watch, readFile } from "fs/promises";
|
|
44768
44768
|
import { createRequire as createRequire2 } from "module";
|
|
44769
|
-
import { createServer as createViteServer } from "vite";
|
|
44769
|
+
import { createServer as createViteServer, searchForWorkspaceRoot } from "vite";
|
|
44770
44770
|
|
|
44771
44771
|
// ../api/dist/index.mjs
|
|
44772
44772
|
init_esm_shims();
|
|
@@ -50922,7 +50922,15 @@ async function runDev(options, deps) {
|
|
|
50922
50922
|
let honoFetch = (req) => adapter.app.fetch(req);
|
|
50923
50923
|
const vite = await createViteServer({
|
|
50924
50924
|
root: resolveAdminRoot2(cwd),
|
|
50925
|
-
server: {
|
|
50925
|
+
server: {
|
|
50926
|
+
middlewareMode: true,
|
|
50927
|
+
// The admin package (Vite root) lives deep in node_modules/.pnpm, so Vite's
|
|
50928
|
+
// default file-serving allow list does not cover sibling deps like the
|
|
50929
|
+
// @fontsource font files. Allow the project root (covers cwd/node_modules
|
|
50930
|
+
// in installed projects) and the workspace root (covers hoisted deps +
|
|
50931
|
+
// packages/admin in the monorepo).
|
|
50932
|
+
fs: { allow: [searchForWorkspaceRoot(cwd), cwd] }
|
|
50933
|
+
},
|
|
50926
50934
|
appType: "spa",
|
|
50927
50935
|
logLevel: "warn"
|
|
50928
50936
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobbykim/manguito-cms-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Bobby Kim <bobby.sihun.kim@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/bobbykim89/manguito-cms",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dotenv": "^16.6.1",
|
|
29
29
|
"tsup": "^8.5.1",
|
|
30
30
|
"typescript": "^6.0.3",
|
|
31
|
-
"vite": "^
|
|
32
|
-
"@bobbykim/manguito-cms-admin": "0.
|
|
33
|
-
"@bobbykim/manguito-cms-db": "0.1.1",
|
|
31
|
+
"vite": "^8.1.3",
|
|
32
|
+
"@bobbykim/manguito-cms-admin": "0.2.0",
|
|
34
33
|
"@bobbykim/manguito-cms-api": "0.1.1",
|
|
34
|
+
"@bobbykim/manguito-cms-db": "0.1.1",
|
|
35
35
|
"@bobbykim/manguito-cms-core": "0.1.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|