@nuxt/kit 3.17.4 → 3.17.5

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.
Files changed (2) hide show
  1. package/dist/index.mjs +3 -4
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -3111,7 +3111,7 @@ function normalizeTemplate(template, buildDir) {
3111
3111
  }
3112
3112
  if (!template.filename) {
3113
3113
  const srcPath = parse(template.src);
3114
- template.filename = template.fileName || `${basename(srcPath.dir)}.${srcPath.name}.${hash(template.src)}${srcPath.ext}`;
3114
+ template.filename = template.fileName || `${basename(srcPath.dir)}.${srcPath.name}.${hash(template.src).replace(/-/g, "_")}${srcPath.ext}`;
3115
3115
  }
3116
3116
  }
3117
3117
  if (!template.src && !template.getContents) {
@@ -3331,12 +3331,11 @@ async function _generateTypes(nuxt) {
3331
3331
  async function writeTypes(nuxt) {
3332
3332
  const { tsConfig, declaration } = await _generateTypes(nuxt);
3333
3333
  async function writeFile() {
3334
- const GeneratedBy = "// Generated by nuxi";
3335
3334
  const tsConfigPath = resolve(nuxt.options.buildDir, "tsconfig.json");
3336
3335
  await promises.mkdir(nuxt.options.buildDir, { recursive: true });
3337
- await promises.writeFile(tsConfigPath, GeneratedBy + "\n" + JSON.stringify(tsConfig, null, 2));
3336
+ await promises.writeFile(tsConfigPath, JSON.stringify(tsConfig, null, 2));
3338
3337
  const declarationPath = resolve(nuxt.options.buildDir, "nuxt.d.ts");
3339
- await promises.writeFile(declarationPath, GeneratedBy + "\n" + declaration);
3338
+ await promises.writeFile(declarationPath, declaration);
3340
3339
  }
3341
3340
  nuxt.hook("builder:prepared", writeFile);
3342
3341
  await writeFile();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/kit",
3
- "version": "3.17.4",
3
+ "version": "3.17.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/nuxt.git",
@@ -29,7 +29,7 @@
29
29
  "destr": "^2.0.5",
30
30
  "errx": "^0.1.0",
31
31
  "exsolve": "^1.0.5",
32
- "ignore": "^7.0.4",
32
+ "ignore": "^7.0.5",
33
33
  "jiti": "^2.4.2",
34
34
  "klona": "^2.0.6",
35
35
  "knitwork": "^1.2.0",
@@ -40,14 +40,14 @@
40
40
  "scule": "^1.3.0",
41
41
  "semver": "^7.7.2",
42
42
  "std-env": "^3.9.0",
43
- "tinyglobby": "^0.2.13",
43
+ "tinyglobby": "^0.2.14",
44
44
  "ufo": "^1.6.1",
45
45
  "unctx": "^2.4.1",
46
46
  "unimport": "^5.0.1",
47
47
  "untyped": "^2.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@rspack/core": "1.3.11",
50
+ "@rspack/core": "1.3.13",
51
51
  "@types/lodash-es": "4.17.12",
52
52
  "@types/semver": "7.7.0",
53
53
  "hookable": "5.5.3",
@@ -55,9 +55,9 @@
55
55
  "nitropack": "2.11.12",
56
56
  "unbuild": "3.5.0",
57
57
  "vite": "6.3.5",
58
- "vitest": "3.1.4",
59
- "webpack": "5.99.8",
60
- "@nuxt/schema": "3.17.4"
58
+ "vitest": "3.2.0",
59
+ "webpack": "5.99.9",
60
+ "@nuxt/schema": "3.17.5"
61
61
  },
62
62
  "engines": {
63
63
  "node": ">=18.12.0"