vitrify 0.6.11 → 0.6.12

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.
@@ -1,2 +1,2 @@
1
- import type { RouteRecord } from 'vue-router';
2
- export declare const routesToPaths: (routes?: RouteRecord[]) => string[];
1
+ import type { RouteRecordRaw } from 'vue-router';
2
+ export declare const routesToPaths: (routes?: RouteRecordRaw[]) => string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitrify",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "license": "MIT",
5
5
  "author": "Stefan van Herwijnen",
6
6
  "description": "Pre-configured Vite CLI for your framework",
@@ -86,7 +86,6 @@
86
86
  "@types/node": "^18.0.1",
87
87
  "@types/ws": "^8.5.3",
88
88
  "@vue/runtime-core": "^3.2.37",
89
- "@vue/server-renderer": "^3.2.37",
90
89
  "quasar": "^2.7.5",
91
90
  "rollup": "^2.75.7",
92
91
  "typescript": "^4.7.4",
@@ -1,12 +1,12 @@
1
1
  // https://github.com/antfu/vite-ssg/blob/462722203dade87365a519d847fcd881ee16a7f4/src/node/utils.ts#L13
2
- import type { RouteRecord } from 'vue-router'
2
+ import type { RouteRecordRaw } from 'vue-router'
3
3
 
4
- export const routesToPaths = (routes?: RouteRecord[]) => {
4
+ export const routesToPaths = (routes?: RouteRecordRaw[]) => {
5
5
  if (!routes) return ['/']
6
6
 
7
7
  const paths: Set<string> = new Set()
8
8
 
9
- const getPaths = (routes: RouteRecord[], prefix = '') => {
9
+ const getPaths = (routes: RouteRecordRaw[], prefix = '') => {
10
10
  // remove trailing slash
11
11
  prefix = prefix.replace(/\/$/g, '')
12
12
  for (const route of routes) {