nuxt-typed-router 3.7.2 → 3.7.3

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.d.mts CHANGED
@@ -35,6 +35,11 @@ interface ModuleOptions {
35
35
  * Ex: 404 routes or catchAll routes
36
36
  */
37
37
  ignoreRoutes?: string[];
38
+ /**
39
+ * Disable prettier formatter
40
+ * @default false
41
+ */
42
+ disablePrettier?: boolean;
38
43
  }
39
44
  interface StrictOptions {
40
45
  NuxtLink?: StrictParamsOptions;
package/dist/module.d.ts CHANGED
@@ -35,6 +35,11 @@ interface ModuleOptions {
35
35
  * Ex: 404 routes or catchAll routes
36
36
  */
37
37
  ignoreRoutes?: string[];
38
+ /**
39
+ * Disable prettier formatter
40
+ * @default false
41
+ */
42
+ disablePrettier?: boolean;
38
43
  }
39
44
  interface StrictOptions {
40
45
  NuxtLink?: StrictParamsOptions;
package/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "3.7.2",
8
+ "version": "3.7.3",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "0.8.4",
11
11
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -16,6 +16,7 @@ class ModuleOptionsStore {
16
16
  plugin = false;
17
17
  strict = false;
18
18
  pathCheck = true;
19
+ disablePrettier = false;
19
20
  autoImport = false;
20
21
  rootDir = "";
21
22
  buildDir = "";
@@ -1405,11 +1406,11 @@ async function processPathAndWriteFile({
1405
1406
  outDir
1406
1407
  }) {
1407
1408
  try {
1408
- const { rootDir } = moduleOptionStore;
1409
+ const { rootDir, disablePrettier } = moduleOptionStore;
1409
1410
  const finalOutDir = outDir ?? `.nuxt/typed-router`;
1410
1411
  const processedOutDir = resolve(rootDir, finalOutDir);
1411
1412
  const outputFile = resolve(process.cwd(), `${processedOutDir}/${fileName}`);
1412
- const formatedContent = await formatOutputWithPrettier(content);
1413
+ const formatedContent = disablePrettier ? content : await formatOutputWithPrettier(content);
1413
1414
  if (fs.existsSync(outputFile)) {
1414
1415
  await writeFile(outputFile, formatedContent);
1415
1416
  } else {
@@ -1805,6 +1806,7 @@ const module = defineNuxtModule({
1805
1806
  plugin: false,
1806
1807
  strict: false,
1807
1808
  pathCheck: true,
1809
+ disablePrettier: false,
1808
1810
  removeNuxtDefs: true,
1809
1811
  ignoreRoutes: []
1810
1812
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "3.7.2",
3
+ "version": "3.7.3",
4
4
  "description": "Provide autocompletion for routes paths, names and params in Nuxt apps",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",
@@ -63,15 +63,15 @@
63
63
  "prettier": "^2.5.x || 3.x"
64
64
  },
65
65
  "dependencies": {
66
- "@nuxt/kit": "^3.14.1592",
67
- "chalk": "5.3.0",
66
+ "@nuxt/kit": "^3.15.1",
67
+ "chalk": "5.4.1",
68
68
  "defu": "6.1.4",
69
69
  "lodash-es": "4.17.21",
70
70
  "log-symbols": "7.0.0",
71
71
  "mkdirp": "3.0.1",
72
72
  "nanoid": "5.0.9",
73
- "pathe": "1.1.2",
74
- "prettier": "3.4.1"
73
+ "pathe": "2.0.0",
74
+ "prettier": "3.4.2"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@intlify/core-base": "~10.0.4",
@@ -80,36 +80,36 @@
80
80
  "@intlify/vue-i18n-bridge": "1.1.0",
81
81
  "@intlify/vue-router-bridge": "1.1.0",
82
82
  "@nuxt/content": "2.13.4",
83
- "@nuxt/devtools": "1.6.1",
83
+ "@nuxt/devtools": "1.7.0",
84
84
  "@nuxt/module-builder": "0.8.4",
85
- "@nuxt/schema": "3.14.1592",
86
- "@nuxt/test-utils": "3.14.4",
85
+ "@nuxt/schema": "3.15.1",
86
+ "@nuxt/test-utils": "3.15.1",
87
87
  "@nuxt/types": "2.18.1",
88
88
  "@nuxtjs/eslint-config-typescript": "12.1.0",
89
- "@nuxtjs/i18n": "9.1.0",
89
+ "@nuxtjs/i18n": "9.1.1",
90
90
  "@nuxtjs/web-vitals": "0.2.7",
91
- "@playwright/test": "1.49.0",
91
+ "@playwright/test": "1.49.1",
92
92
  "@types/lodash-es": "4.17.12",
93
- "@types/node": "22.10.0",
94
- "@typescript-eslint/eslint-plugin": "8.16.0",
95
- "@typescript-eslint/parser": "8.16.0",
93
+ "@types/node": "22.10.5",
94
+ "@typescript-eslint/eslint-plugin": "8.19.1",
95
+ "@typescript-eslint/parser": "8.19.1",
96
96
  "@vue/test-utils": "2.4.6",
97
- "bumpp": "9.8.1",
97
+ "bumpp": "9.9.2",
98
98
  "changelogithub": "0.13.11",
99
99
  "cross-env": "7.0.3",
100
- "eslint": "9.15.0",
100
+ "eslint": "9.17.0",
101
101
  "eslint-config-prettier": "9.1.0",
102
- "eslint-plugin-vue": "9.31.0",
103
- "nuxt": "3.14.1592",
102
+ "eslint-plugin-vue": "9.32.0",
103
+ "nuxt": "3.15.1",
104
104
  "nuxt-seo-kit": "1.3.13",
105
- "playwright": "1.49.0",
105
+ "playwright": "1.49.1",
106
106
  "tsd": "0.31.2",
107
107
  "typescript": "5.6.2",
108
- "vitest": "2.1.6",
108
+ "vitest": "2.1.8",
109
109
  "vue": "3.5.13",
110
110
  "vue-eslint-parser": "9.4.3",
111
- "vue-i18n": "~10.0.4",
111
+ "vue-i18n": "~11.0.1",
112
112
  "vue-router": "4.5.0",
113
- "vue-tsc": "2.1.10"
113
+ "vue-tsc": "2.2.0"
114
114
  }
115
115
  }