Skip to content

Commit

Permalink
feat(projects): update deps, support Vite5
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 17, 2023
1 parent 58b067c commit 96b1aaa
Show file tree
Hide file tree
Showing 9 changed files with 530 additions and 521 deletions.
16 changes: 8 additions & 8 deletions examples/template-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
"dependencies": {
"@elegant-router/vue": "workspace:*",
"pinia": "2.1.7",
"vue": "3.3.7",
"vue": "3.3.8",
"vue-router": "4.2.5"
},
"devDependencies": {
"@soybeanjs/cli": "0.7.5",
"@types/node": "20.8.10",
"@vitejs/plugin-vue": "4.4.0",
"@vitejs/plugin-vue-jsx": "3.0.2",
"eslint": "8.52.0",
"@soybeanjs/cli": "0.7.9",
"@types/node": "20.9.1",
"@vitejs/plugin-vue": "4.5.0",
"@vitejs/plugin-vue-jsx": "3.1.0",
"eslint": "8.53.0",
"eslint-config-soybeanjs": "0.5.8",
"npm-run-all": "4.1.5",
"typescript": "5.2.2",
"vite": "4.5.0",
"vite-plugin-inspect": "0.7.41",
"vite": "5.0.0",
"vite-plugin-inspect": "0.7.42",
"vue-tsc": "1.8.22"
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.3.0",
"description": "A plugin to create router elegantly",
"private": true,
"packageManager": "pnpm@8.10.2",
"packageManager": "pnpm@8.10.5",
"author": {
"name": "Soybean",
"email": "soybeanjs@outlook.com",
Expand All @@ -30,10 +30,10 @@
"prepare": "pnpm -r run stub"
},
"devDependencies": {
"@soybeanjs/cli": "0.7.5",
"eslint": "8.52.0",
"@soybeanjs/cli": "0.7.9",
"eslint": "8.53.0",
"eslint-config-soybeanjs": "0.5.8",
"simple-git-hooks": "2.9.0",
"tsx": "3.14.0"
"tsx": "4.1.3"
}
}
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
"dependencies": {
"chokidar": "3.5.3",
"consola": "3.2.3",
"fast-glob": "3.3.1",
"fast-glob": "3.3.2",
"kolorist": "1.8.0",
"micromatch": "4.0.5"
},
"devDependencies": {
"@types/micromatch": "4.0.4",
"@types/node": "20.8.10",
"@types/micromatch": "4.0.5",
"@types/node": "20.9.1",
"typescript": "5.2.2",
"unbuild": "2.0.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
},
"dependencies": {
"consola": "3.2.3",
"magicast": "0.3.0",
"unplugin": "1.5.0"
"magicast": "0.3.2",
"unplugin": "1.5.1"
},
"devDependencies": {
"@elegant-router/core": "workspace:*",
"@types/node": "20.8.10",
"@types/node": "20.9.1",
"typescript": "5.2.2",
"unbuild": "2.0.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
},
"dependencies": {
"consola": "3.2.3",
"magicast": "0.3.0",
"unplugin": "1.5.0"
"magicast": "0.3.2",
"unplugin": "1.5.1"
},
"devDependencies": {
"@elegant-router/core": "workspace:*",
"@types/node": "20.8.10",
"@types/node": "20.9.1",
"typescript": "5.2.2",
"unbuild": "2.0.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
},
"dependencies": {
"consola": "3.2.3",
"magicast": "0.3.0",
"unplugin": "1.5.0"
"magicast": "0.3.2",
"unplugin": "1.5.1"
},
"devDependencies": {
"@elegant-router/core": "workspace:*",
"@types/node": "20.8.10",
"@types/node": "20.9.1",
"typescript": "5.2.2",
"unbuild": "2.0.0"
}
Expand Down
12 changes: 6 additions & 6 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@
"consola": "3.2.3",
"kolorist": "1.8.0",
"magic-string": "0.30.5",
"magicast": "0.3.0",
"prettier": "3.0.3",
"magicast": "0.3.2",
"prettier": "3.1.0",
"recast": "0.23.4",
"unplugin": "1.5.0"
"unplugin": "1.5.1"
},
"devDependencies": {
"@types/node": "20.8.10",
"rollup": "4.2.0",
"@types/node": "20.9.1",
"rollup": "4.4.1",
"typescript": "5.2.2",
"unbuild": "2.0.0",
"vite": "4.5.0",
"vite": "5.0.0",
"vue-router": "4.2.5"
}
}
2 changes: 1 addition & 1 deletion packages/vue/src/core/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path';
import { existsSync } from 'node:fs';
import { writeFile } from 'node:fs/promises';
import { loadFile, generateCode } from 'magicast';
import { parse } from 'recast/parsers/typescript';
import { parse } from 'recast/parsers/typescript.js';
import { PAGE_DEGREE_SPLITTER } from '@elegant-router/core';
import type { ElegantRouterTree } from '@elegant-router/core';
import { createPrefixCommentOfGenFile } from './comment';
Expand Down
Loading

0 comments on commit 96b1aaa

Please sign in to comment.