@monkeyplus/flow 6.0.21 → 6.0.22

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.
@@ -71,7 +71,6 @@ export default defineEventHandler(async (event) => {
71
71
  const manifest = defineCms(config, resolvedCollections)(`${base}content/${locale}/`, { rootDir: base });
72
72
  if (manifest.collections) {
73
73
  for (const col of manifest.collections) {
74
- console.log("pageeee.............", col);
75
74
  if (col.preview?.pageName) {
76
75
  const pageName = col.preview?.pageName;
77
76
  try {
@@ -64,15 +64,14 @@ export default defineEventHandler(async (event) => {
64
64
  if (command === "files") {
65
65
  const { folder, file } = getQuery(event);
66
66
  if (file) {
67
- const filePath = path.relative(BASE, decodeURIComponent(file));
68
- console.log("file", file, BASE, filePath);
67
+ const filePath = path.relative(config.base, decodeURIComponent(file));
69
68
  const content = await fs.readFile(filePath, "utf-8");
70
69
  return {
71
70
  content: JSON.parse(content),
72
71
  encoding: "json"
73
72
  };
74
73
  }
75
- const folderPath = path.relative(BASE, folder);
74
+ const folderPath = path.relative(config.base, folder);
76
75
  const files = await listFiles(folderPath, "", 1);
77
76
  return { files: files.map((f) => {
78
77
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.21",
3
+ "version": "6.0.22",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {