@monkeyplus/flow 6.0.40 → 6.0.41
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/modules/cms/module.mjs +7 -6
- package/package.json +5 -1
package/modules/cms/module.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { consola } from "consola";
|
|
4
|
-
import {
|
|
4
|
+
import { resolvePackagePath, resolvePath } from "../../src/public/shared.mjs";
|
|
5
5
|
import { defineFlowModule } from "../../src/runtime/config.mjs";
|
|
6
6
|
export default defineFlowModule({
|
|
7
7
|
meta: {
|
|
@@ -139,25 +139,26 @@ export default defineFlowModule({
|
|
|
139
139
|
context.prerenderRoutes?.add(configRoute);
|
|
140
140
|
}
|
|
141
141
|
context.nitro.imports = context.nitro.imports || { imports: [] };
|
|
142
|
+
const composablesImportPath = "@monkeyplus/flow/cms/composables";
|
|
142
143
|
context.nitro.imports.imports?.push({
|
|
143
144
|
name: "defineCmsItems",
|
|
144
|
-
from:
|
|
145
|
+
from: composablesImportPath
|
|
145
146
|
});
|
|
146
147
|
context.nitro.imports.imports?.push({
|
|
147
148
|
name: "defineCmsPage",
|
|
148
|
-
from:
|
|
149
|
+
from: composablesImportPath
|
|
149
150
|
});
|
|
150
151
|
context.nitro.imports.imports?.push({
|
|
151
152
|
name: "defineCmsPages",
|
|
152
|
-
from:
|
|
153
|
+
from: composablesImportPath
|
|
153
154
|
});
|
|
154
155
|
context.nitro.imports.imports?.push({
|
|
155
156
|
name: "defineCmsPosts",
|
|
156
|
-
from:
|
|
157
|
+
from: composablesImportPath
|
|
157
158
|
});
|
|
158
159
|
context.nitro.imports.imports?.push({
|
|
159
160
|
name: "defineCmsSettings",
|
|
160
|
-
from:
|
|
161
|
+
from: composablesImportPath
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkeyplus/flow",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.41",
|
|
4
4
|
"description": "@monkeyplus/flow package-first runtime with Vite, Nitro, Vue and a workspace playground.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -67,6 +67,10 @@
|
|
|
67
67
|
"types": "./modules/cms/module.d.ts",
|
|
68
68
|
"import": "./modules/cms/module.mjs"
|
|
69
69
|
},
|
|
70
|
+
"./cms/composables": {
|
|
71
|
+
"types": "./modules/cms/server/lib/composables.d.ts",
|
|
72
|
+
"import": "./modules/cms/server/lib/composables.mjs"
|
|
73
|
+
},
|
|
70
74
|
"./main": {
|
|
71
75
|
"types": "./src/main.d.ts",
|
|
72
76
|
"import": "./src/main.mjs"
|