vite-plugin-generoutes 1.1.0-beta.5 → 1.1.0-beta.7

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.js +1 -1
  2. package/package.json +32 -40
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/index.ts
2
- import path from "node:path";
2
+ import path from "path";
3
3
  import { debounce, slash } from "@antfu/utils";
4
4
  import { parse } from "@vue/compiler-sfc";
5
5
  import chalk from "chalk";
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "vite-plugin-generoutes",
3
3
  "type": "module",
4
- "version": "1.1.0-beta.5",
5
- "packageManager": "pnpm@10.6.2",
4
+ "version": "1.1.0-beta.7",
6
5
  "description": "A Vite plugin that generate routes based on the file structure, supports dynamic routes, and supports custom meta data for each route.",
7
6
  "author": "Ronnie Zhang <zclzone@outlook.com>",
8
7
  "license": "MIT",
@@ -34,56 +33,49 @@
34
33
  "files": [
35
34
  "dist"
36
35
  ],
37
- "scripts": {
38
- "start": "tsup --watch",
39
- "build": "tsup",
40
- "lint": "eslint .",
41
- "prepublishOnly": "nr build",
42
- "release": "bumpp && npm publish",
43
- "test": "vitest",
44
- "typecheck": "tsc --noEmit",
45
- "prepare": "simple-git-hooks",
46
- "up:deps": "taze major -I"
47
- },
48
36
  "peerDependencies": {
49
- "vite": "^6.1.0",
50
- "vue-router": "^4.0.0"
51
- },
52
- "peerDependenciesMeta": {
53
- "vue-router": {
54
- "optional": true
55
- }
37
+ "vite": ">=6.1.0",
38
+ "vue-router": ">=4.0.0"
56
39
  },
57
40
  "dependencies": {
58
- "@antfu/utils": "^9.1.0",
59
- "@vue/compiler-sfc": "^3.5.13",
60
- "chalk": "^5.4.1",
61
- "fs-extra": "^11.3.0",
62
- "glob": "^11.0.1",
63
- "prettier": "^3.5.3"
41
+ "@antfu/utils": "^9.3.0",
42
+ "@vue/compiler-sfc": "^3.5.26",
43
+ "chalk": "^5.6.2",
44
+ "fs-extra": "^11.3.3",
45
+ "glob": "^13.0.0",
46
+ "prettier": "^3.7.4"
64
47
  },
65
48
  "devDependencies": {
66
- "@antfu/eslint-config": "^4.10.1",
49
+ "@antfu/eslint-config": "^6.7.3",
67
50
  "@types/fs-extra": "^11.0.4",
68
- "@types/node": "^20.17.24",
51
+ "@types/node": "^25.0.3",
69
52
  "bumpp": "^10.1.0",
70
- "eslint": "^9.22.0",
53
+ "eslint": "^9.39.2",
71
54
  "esno": "^4.8.0",
72
- "lint-staged": "^15.5.0",
73
- "pnpm": "^10.6.2",
74
- "rimraf": "^5.0.10",
75
- "simple-git-hooks": "^2.11.1",
76
- "taze": "^19.0.2",
77
- "tsup": "^8.4.0",
78
- "typescript": "^5.8.2",
79
- "unbuild": "^3.5.0",
80
- "vitest": "^3.0.8",
81
- "vue-router": "^4.5.0"
55
+ "lint-staged": "^16.2.7",
56
+ "pnpm": "^10.27.0",
57
+ "rimraf": "^6.1.2",
58
+ "simple-git-hooks": "^2.13.1",
59
+ "taze": "^19.9.2",
60
+ "tsup": "^8.5.1",
61
+ "typescript": "^5.9.3",
62
+ "unbuild": "^3.6.1",
63
+ "vitest": "^4.0.16",
64
+ "vue-router": "^4.6.4"
82
65
  },
83
66
  "simple-git-hooks": {
84
67
  "pre-commit": "pnpm lint-staged"
85
68
  },
86
69
  "lint-staged": {
87
70
  "*": "eslint --fix"
71
+ },
72
+ "scripts": {
73
+ "start": "tsup --watch",
74
+ "build": "tsup",
75
+ "lint": "eslint .",
76
+ "release": "bumpp && npm publish",
77
+ "test": "vitest",
78
+ "typecheck": "tsc --noEmit",
79
+ "up:deps": "taze major -I"
88
80
  }
89
- }
81
+ }