@wpnuxt/core 1.0.0-edge.12 → 1.0.0-edge.13
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { upperFirst } from 'scule';
|
|
|
7
7
|
import { parse } from 'graphql';
|
|
8
8
|
|
|
9
9
|
const name = "@wpnuxt/core";
|
|
10
|
-
const version = "1.0.0-edge.
|
|
10
|
+
const version = "1.0.0-edge.13";
|
|
11
11
|
|
|
12
12
|
const loggerRef = ref();
|
|
13
13
|
const initLogger = (logLevel) => {
|
|
@@ -228,7 +228,9 @@ const module = defineNuxtModule({
|
|
|
228
228
|
if (m.meta.name === "@wpnuxt/blocks" && m.entryPath) {
|
|
229
229
|
logger.debug("Loading queries from @wpnuxt/blocks");
|
|
230
230
|
let blocksQueriesPath;
|
|
231
|
-
if (m.entryPath
|
|
231
|
+
if (m.entryPath == "../src/module") {
|
|
232
|
+
blocksQueriesPath = join(nuxt.options.rootDir, "../src/runtime/queries/");
|
|
233
|
+
} else if (m.entryPath.startsWith("../")) {
|
|
232
234
|
blocksQueriesPath = join(nuxt.options.rootDir, "../", m.entryPath, "./runtime/queries/");
|
|
233
235
|
} else {
|
|
234
236
|
blocksQueriesPath = join("./node_modules", m.entryPath, "dist/runtime/queries/");
|