nuxt-typed-router 3.1.1 → 3.1.2

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
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.0.0",
6
6
  "bridge": false
7
7
  },
8
- "version": "3.1.1"
8
+ "version": "3.1.2"
9
9
  }
package/dist/module.mjs CHANGED
@@ -1681,7 +1681,7 @@ async function removeNuxtDefinitions({
1681
1681
  }
1682
1682
  if (autoImport) {
1683
1683
  const importsFilePath = resolve(buildDir, "types/imports.d.ts");
1684
- if (importsFilePath) {
1684
+ if (existsSync(importsFilePath)) {
1685
1685
  let globalDefinitions = await readFile(importsFilePath, {
1686
1686
  encoding: "utf8"
1687
1687
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Provide autocompletion for routes paths, names and params in Nuxt apps",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",