@nuxt/kit 3.14.159 → 3.14.1592
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/index.mjs +11 -5
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import { genSafeVariableName, genDynamicImport, genImport } from 'knitwork';
|
|
|
11
11
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
12
12
|
import { createJiti } from 'jiti';
|
|
13
13
|
import { resolvePath as resolvePath$1, resolve as resolve$1, resolvePathSync, interopDefault } from 'mlly';
|
|
14
|
+
import { isRelative, withTrailingSlash } from 'ufo';
|
|
14
15
|
import { globby } from 'globby';
|
|
15
16
|
import { resolveAlias as resolveAlias$1 } from 'pathe/utils';
|
|
16
17
|
import ignore from 'ignore';
|
|
@@ -21,7 +22,6 @@ import destr from 'destr';
|
|
|
21
22
|
import { snakeCase, kebabCase, pascalCase } from 'scule';
|
|
22
23
|
import { klona } from 'klona';
|
|
23
24
|
import hash from 'hash-sum';
|
|
24
|
-
import { withTrailingSlash } from 'ufo';
|
|
25
25
|
import { gte } from 'semver';
|
|
26
26
|
|
|
27
27
|
const logger = consola;
|
|
@@ -2430,12 +2430,18 @@ async function loadNuxtModuleInstance(nuxtModule, nuxt = useNuxt()) {
|
|
|
2430
2430
|
let buildTimeModuleMeta = {};
|
|
2431
2431
|
const jiti = createJiti(nuxt.options.rootDir, { alias: nuxt.options.alias });
|
|
2432
2432
|
if (typeof nuxtModule === "string") {
|
|
2433
|
-
const paths =
|
|
2433
|
+
const paths = /* @__PURE__ */ new Set();
|
|
2434
|
+
nuxtModule = resolveAlias(nuxtModule, nuxt.options.alias);
|
|
2435
|
+
if (isRelative(nuxtModule)) {
|
|
2436
|
+
nuxtModule = resolve(nuxt.options.rootDir, nuxtModule);
|
|
2437
|
+
}
|
|
2438
|
+
paths.add(join(nuxtModule, "nuxt"));
|
|
2439
|
+
paths.add(join(nuxtModule, "module"));
|
|
2440
|
+
paths.add(nuxtModule);
|
|
2434
2441
|
for (const path of paths) {
|
|
2435
2442
|
for (const parentURL of nuxt.options.modulesDir) {
|
|
2436
2443
|
try {
|
|
2437
|
-
const
|
|
2438
|
-
const src = isAbsolute(resolved) ? pathToFileURL(await resolvePath(resolved, { cwd: parentURL, fallbackToOriginal: false, extensions: nuxt.options.extensions })).href : await resolve$1(resolved, { url: pathToFileURL(parentURL.replace(/\/node_modules\/?$/, "")), extensions: nuxt.options.extensions });
|
|
2444
|
+
const src = isAbsolute(path) ? pathToFileURL(await resolvePath(path, { cwd: parentURL, fallbackToOriginal: false, extensions: nuxt.options.extensions })).href : await resolve$1(path, { url: pathToFileURL(parentURL.replace(/\/node_modules\/?$/, "")), extensions: nuxt.options.extensions });
|
|
2439
2445
|
nuxtModule = await jiti.import(src, { default: true });
|
|
2440
2446
|
const moduleMetadataPath = new URL("module.json", src);
|
|
2441
2447
|
if (existsSync(moduleMetadataPath)) {
|
|
@@ -2936,7 +2942,7 @@ async function addComponent(opts) {
|
|
|
2936
2942
|
function addTemplate(_template) {
|
|
2937
2943
|
const nuxt = useNuxt();
|
|
2938
2944
|
const template = normalizeTemplate(_template);
|
|
2939
|
-
nuxt.options.build.templates = nuxt.options.build.templates.filter((p) => normalizeTemplate(p).
|
|
2945
|
+
nuxt.options.build.templates = nuxt.options.build.templates.filter((p) => normalizeTemplate(p).dst !== template.dst);
|
|
2940
2946
|
nuxt.options.build.templates.push(template);
|
|
2941
2947
|
return template;
|
|
2942
2948
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.1592",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
"jiti": "^2.4.0",
|
|
34
34
|
"klona": "^2.0.6",
|
|
35
35
|
"knitwork": "^1.1.0",
|
|
36
|
-
"mlly": "^1.7.
|
|
36
|
+
"mlly": "^1.7.3",
|
|
37
37
|
"pathe": "^1.1.2",
|
|
38
38
|
"pkg-types": "^1.2.1",
|
|
39
39
|
"scule": "^1.3.0",
|
|
40
40
|
"semver": "^7.6.3",
|
|
41
41
|
"ufo": "^1.5.4",
|
|
42
42
|
"unctx": "^2.3.1",
|
|
43
|
-
"unimport": "^3.13.
|
|
43
|
+
"unimport": "^3.13.2",
|
|
44
44
|
"untyped": "^1.5.1",
|
|
45
|
-
"@nuxt/schema": "3.14.
|
|
45
|
+
"@nuxt/schema": "3.14.1592"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@rspack/core": "1.
|
|
48
|
+
"@rspack/core": "1.1.2",
|
|
49
49
|
"@types/hash-sum": "1.0.2",
|
|
50
50
|
"@types/lodash-es": "4.17.12",
|
|
51
51
|
"@types/semver": "7.5.8",
|
|
52
52
|
"lodash-es": "4.17.21",
|
|
53
|
-
"nitropack": "2.10.
|
|
53
|
+
"nitropack": "2.10.4",
|
|
54
54
|
"unbuild": "latest",
|
|
55
|
-
"vite": "5.4.
|
|
56
|
-
"vitest": "2.1.
|
|
55
|
+
"vite": "5.4.11",
|
|
56
|
+
"vitest": "2.1.5",
|
|
57
57
|
"webpack": "5.96.1"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|