@monkeyplus/flow 6.0.74 → 6.0.76

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.
@@ -1,6 +1,5 @@
1
1
  import fs from "node:fs";
2
2
  import { resolve } from "node:path";
3
- import { consola } from "consola";
4
3
  import { resolvePackagePath, resolvePath } from "../../src/public/shared.mjs";
5
4
  import { defineFlowModule } from "../../src/runtime/config.mjs";
6
5
  export default defineFlowModule({
@@ -18,7 +17,6 @@ export default defineFlowModule({
18
17
  playground: false
19
18
  },
20
19
  setup(options, context) {
21
- consola.log("[cms] options", options);
22
20
  if (!context.nitro.runtimeConfig?.flow) {
23
21
  context.nitro.runtimeConfig.flow = {};
24
22
  }
@@ -141,7 +139,6 @@ export default defineFlowModule({
141
139
  });
142
140
  }
143
141
  for (const locale of locales) {
144
- consola.log("[cms] locale", locale);
145
142
  const configRoute = `/cms/_/configs/${locale}.json`;
146
143
  context.nitro.handlers.push({
147
144
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monkeyplus/flow",
3
- "version": "6.0.74",
3
+ "version": "6.0.76",
4
4
  "description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -12,9 +12,9 @@ import { loadFlowModules } from "../runtime/modules.mjs";
12
12
  import { getPrerenderRoutes } from "../runtime/page-discovery.mjs";
13
13
  import {
14
14
  createVirtualBaseTemplatesModule,
15
- createVirtualConfigModule,
16
15
  createVirtualClientPageAssetsModule,
17
16
  createVirtualClientPagesModule,
17
+ createVirtualConfigModule,
18
18
  createVirtualIslandsModule,
19
19
  createVirtualLayoutContextsModule,
20
20
  createVirtualLayoutsModule,
@@ -361,7 +361,7 @@ export function createFlowViteConfig(options = {}) {
361
361
  Vue(),
362
362
  ui({
363
363
  ...uiOptions,
364
- router: uiOptions.router || false,
364
+ router: uiOptions.router ?? false,
365
365
  components: {
366
366
  dts: resolve(projectRoot, ".flow/types/components.d.ts"),
367
367
  ...options.userFlowConfig?.components,
@@ -371,7 +371,7 @@ export function createFlowViteConfig(options = {}) {
371
371
  ...options.userFlowConfig?.components?.resolvers || []
372
372
  ]
373
373
  },
374
- prose: uiOptions.prose || true,
374
+ prose: uiOptions.prose ?? false,
375
375
  autoImport: {
376
376
  dts: resolve(projectRoot, ".flow/types/auto-imports.d.ts"),
377
377
  imports: [