File tree Expand file tree Collapse file tree 7 files changed +801
-631
lines changed
packages/vite-plugin-checker Expand file tree Collapse file tree 7 files changed +801
-631
lines changed Original file line number Diff line number Diff line change 36
36
"@tsconfig/node20" : " ^20.1.5" ,
37
37
"@tsconfig/strictest" : " ^2.0.5" ,
38
38
"@types/babel__code-frame" : " ^7.0.6" ,
39
- "@types/node" : " ^18.19.87 " ,
39
+ "@types/node" : " ^20.17.32 " ,
40
40
"execa" : " ^9.5.2" ,
41
41
"fast-json-stable-stringify" : " ^2.1.0" ,
42
42
"knip" : " ^5.53.0" ,
47
47
"rimraf" : " ^5.0.10" ,
48
48
"simple-git-hooks" : " ^2.13.0" ,
49
49
"sort-deep-object-arrays" : " ^1.1.2" ,
50
- "sort-package-json" : " ^2.15.1 " ,
50
+ "sort-package-json" : " ^3.1.0 " ,
51
51
"strip-ansi" : " ^7.1.0" ,
52
52
"tiny-invariant" : " ^1.3.3" ,
53
53
"tinyglobby" : " ^0.2.13" ,
54
54
"typescript" : " ^5.8.3" ,
55
55
"vite" : " ^6.1.6" ,
56
56
"vitest" : " ^3.1.2"
57
57
},
58
- "packageManager" : " pnpm@9.15.9 "
58
+ "packageManager" : " pnpm@10.10.0 "
59
59
}
Original file line number Diff line number Diff line change 43
43
"vscode-uri" : " ^3.1.0"
44
44
},
45
45
"devDependencies" : {
46
- "@types/eslint" : " ^7.29.0 " ,
47
- "@types/picomatch" : " ^3 .0.2 " ,
46
+ "@types/eslint" : " ^8.56.12 " ,
47
+ "@types/picomatch" : " ^4 .0.0 " ,
48
48
"@vue/language-core" : " ~2.2.10" ,
49
49
"meow" : " ^13.2.0" ,
50
50
"stylelint" : " ^16.19.1" ,
Original file line number Diff line number Diff line change 17
17
"@types/react" : " ^19.1.2" ,
18
18
"@types/react-dom" : " ^19.1.3" ,
19
19
"@vitejs/plugin-react" : " ^4.4.1" ,
20
- "express" : " ^4.21.2 " ,
20
+ "express" : " ^5.1.0 " ,
21
21
"http-proxy-middleware" : " ^3.0.5" ,
22
22
"typescript" : " ^5.8.3" ,
23
23
"vite" : " ^6.1.6" ,
Original file line number Diff line number Diff line change 1
- import fs from 'fs'
2
- import path from 'path'
3
- import { fileURLToPath } from 'url'
1
+ import fs from 'node: fs'
2
+ import path from 'node: path'
3
+ import { fileURLToPath } from 'node: url'
4
4
import express from 'express'
5
- import { promisify } from 'util'
6
5
import { createProxyMiddleware } from 'http-proxy-middleware'
7
6
import { createServer as createViteServer } from 'vite'
8
7
const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
@@ -14,7 +13,7 @@ export async function createServer() {
14
13
const app = express ( )
15
14
const viteDevServer = await createViteServer ( { root : rootDir } )
16
15
17
- let html = fs . readFileSync ( path . resolve ( __dirname , 'index.html' ) , 'utf-8' )
16
+ let html = await fs . promises . readFile ( path . resolve ( __dirname , 'index.html' ) , 'utf-8' )
18
17
19
18
app . get ( '/' , async ( req , res ) => {
20
19
html = html . replace (
@@ -35,7 +34,7 @@ export async function createServer() {
35
34
36
35
`
37
36
)
38
- res . status ( 200 ) . set ( { 'Content-Type' : 'text/html' } ) . end ( html )
37
+ res . status ( 200 ) . set ( { 'Content-Type' : 'text/html' } ) . send ( html )
39
38
} )
40
39
41
40
app . use ( '/' , createProxyMiddleware ( { target : 'http://127.0.0.1:5173' , changeOrigin : true } ) )
Original file line number Diff line number Diff line change 10
10
"serve" : " vite preview"
11
11
},
12
12
"devDependencies" : {
13
- "eslint" : " ^8.57.1 " ,
13
+ "eslint" : " ^9.26.0 " ,
14
14
"vite" : " ^6.1.6" ,
15
15
"vite-plugin-checker" : " workspace:*"
16
16
}
Original file line number Diff line number Diff line change 12
12
"devDependencies" : {
13
13
"meow" : " ^13.2.0" ,
14
14
"stylelint" : " ^16.19.1" ,
15
- "stylelint-config-standard" : " ^37 .0.0" ,
15
+ "stylelint-config-standard" : " ^38 .0.0" ,
16
16
"typescript" : " ^5.8.3" ,
17
17
"vite" : " ^6.1.6" ,
18
18
"vite-plugin-checker" : " workspace:*"
You can’t perform that action at this time.
0 commit comments