qarpeo 0.4.12 → 0.4.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/chunks/manifest.get.mjs +1 -1
- package/dist/module.mjs +18 -29
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { useRuntimeConfig, defineEventHandler } from 'nuxt/server';
|
|
|
9
9
|
import { mkdir, writeFile, readFile } from 'node:fs/promises';
|
|
10
10
|
import { defu } from 'defu';
|
|
11
11
|
|
|
12
|
-
const version = "0.4.
|
|
12
|
+
const version = "0.4.13";
|
|
13
13
|
|
|
14
14
|
function spawnBinSync(bin, args, options = {}) {
|
|
15
15
|
const isWindows = process.platform === "win32";
|
package/dist/module.mjs
CHANGED
|
@@ -1047,16 +1047,9 @@ async function setupAliases(options, nuxt, resolver) {
|
|
|
1047
1047
|
);
|
|
1048
1048
|
} catch {
|
|
1049
1049
|
}
|
|
1050
|
-
try {
|
|
1051
|
-
const comarkNuxtDir = resolvePkgDir("@comark/nuxt");
|
|
1052
|
-
nuxt.options.alias["@comark/nuxt/utils"] = resolve(comarkNuxtDir, "dist/utils/index.js");
|
|
1053
|
-
nuxt.options.alias["@comark/nuxt/render"] = resolve(comarkNuxtDir, "dist/render.js");
|
|
1054
|
-
nuxt.options.alias["@comark/nuxt/parse"] = resolve(comarkNuxtDir, "dist/parse.js");
|
|
1055
|
-
nuxt.options.alias["@comark/nuxt"] = resolve(comarkNuxtDir, "dist/module.js");
|
|
1056
|
-
} catch {
|
|
1057
|
-
}
|
|
1058
1050
|
try {
|
|
1059
1051
|
const comarkVueDir = resolvePkgDir("@comark/vue");
|
|
1052
|
+
nuxt.options.alias["@comark/vue/nuxt"] = resolve(comarkVueDir, "dist/nuxt.js");
|
|
1060
1053
|
nuxt.options.alias["@comark/vue/vite"] = resolve(comarkVueDir, "dist/vite.js");
|
|
1061
1054
|
nuxt.options.alias["@comark/vue/utils"] = resolve(comarkVueDir, "dist/utils/index.js");
|
|
1062
1055
|
nuxt.options.alias["@comark/vue/render"] = resolve(comarkVueDir, "dist/render.js");
|
|
@@ -1871,16 +1864,9 @@ async function setupNitro(options, nuxt, resolver, logger) {
|
|
|
1871
1864
|
} catch {
|
|
1872
1865
|
}
|
|
1873
1866
|
if (options.cms) {
|
|
1874
|
-
try {
|
|
1875
|
-
const comarkNuxtDir = resolvePkgDir("@comark/nuxt");
|
|
1876
|
-
nitroConfig.alias["@comark/nuxt/utils"] = resolve(comarkNuxtDir, "dist/utils/index.js");
|
|
1877
|
-
nitroConfig.alias["@comark/nuxt/render"] = resolve(comarkNuxtDir, "dist/render.js");
|
|
1878
|
-
nitroConfig.alias["@comark/nuxt/parse"] = resolve(comarkNuxtDir, "dist/parse.js");
|
|
1879
|
-
nitroConfig.alias["@comark/nuxt"] = resolve(comarkNuxtDir, "dist/module.js");
|
|
1880
|
-
} catch {
|
|
1881
|
-
}
|
|
1882
1867
|
try {
|
|
1883
1868
|
const comarkVueDir = resolvePkgDir("@comark/vue");
|
|
1869
|
+
nitroConfig.alias["@comark/vue/nuxt"] = resolve(comarkVueDir, "dist/nuxt.js");
|
|
1884
1870
|
nitroConfig.alias["@comark/vue/vite"] = resolve(comarkVueDir, "dist/vite.js");
|
|
1885
1871
|
nitroConfig.alias["@comark/vue/utils"] = resolve(comarkVueDir, "dist/utils/index.js");
|
|
1886
1872
|
nitroConfig.alias["@comark/vue/render"] = resolve(comarkVueDir, "dist/render.js");
|
|
@@ -5446,24 +5432,27 @@ async function setupCMS(options, nuxt, resolver, logger) {
|
|
|
5446
5432
|
return;
|
|
5447
5433
|
}
|
|
5448
5434
|
}
|
|
5449
|
-
if (options.cms && !hasNuxtModule("@comark/vue/nuxt") && !hasNuxtModule("@comark/vue")
|
|
5435
|
+
if (options.cms && !hasNuxtModule("@comark/vue/nuxt") && !hasNuxtModule("@comark/vue")) {
|
|
5436
|
+
const rootReq = createRequire(resolve(nuxt.options.rootDir, "package.json"));
|
|
5437
|
+
let comarkModulePath = null;
|
|
5450
5438
|
try {
|
|
5451
|
-
const
|
|
5452
|
-
|
|
5453
|
-
|
|
5439
|
+
const resolved = rootReq.resolve("@comark/vue/nuxt");
|
|
5440
|
+
if (existsSync(resolved)) {
|
|
5441
|
+
comarkModulePath = resolved;
|
|
5442
|
+
}
|
|
5454
5443
|
} catch {
|
|
5455
5444
|
try {
|
|
5456
|
-
const
|
|
5445
|
+
const resolved = fileURLToPath(import.meta.resolve("@comark/vue/nuxt"));
|
|
5446
|
+
if (existsSync(resolved)) {
|
|
5447
|
+
comarkModulePath = resolved;
|
|
5448
|
+
}
|
|
5449
|
+
} catch {
|
|
5450
|
+
}
|
|
5451
|
+
}
|
|
5452
|
+
if (comarkModulePath) {
|
|
5453
|
+
try {
|
|
5457
5454
|
await installModule(comarkModulePath);
|
|
5458
5455
|
} catch {
|
|
5459
|
-
try {
|
|
5460
|
-
await installModule("@comark/vue/nuxt");
|
|
5461
|
-
} catch {
|
|
5462
|
-
try {
|
|
5463
|
-
await installModule("@comark/nuxt");
|
|
5464
|
-
} catch {
|
|
5465
|
-
}
|
|
5466
|
-
}
|
|
5467
5456
|
}
|
|
5468
5457
|
}
|
|
5469
5458
|
}
|