File tree 5 files changed +11
-7
lines changed
5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 44
44
"node-fetch" : " ^2.6.1" ,
45
45
"npm-run-all" : " ^4.1.5" ,
46
46
"playwright-chromium" : " ^1.7.0" ,
47
- "prettier" : " ^2.2.1 " ,
47
+ "prettier" : " 2.3.0 " ,
48
48
"rimraf" : " ^3.0.2" ,
49
49
"semver" : " ^7.3.4" ,
50
50
"sirv" : " ^1.0.10" ,
Original file line number Diff line number Diff line change @@ -225,7 +225,8 @@ async function genTemplateCode(
225
225
}
226
226
}
227
227
228
- const exportDefaultClassRE = / (?: (?: ^ | \n | ; ) \s * ) e x p o r t \s + d e f a u l t \s + c l a s s \s + ( [ \w $ ] + ) /
228
+ const exportDefaultClassRE =
229
+ / (?: (?: ^ | \n | ; ) \s * ) e x p o r t \s + d e f a u l t \s + c l a s s \s + ( [ \w $ ] + ) /
229
230
230
231
async function genScriptCode (
231
232
descriptor : SFCDescriptor ,
Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ export interface VueQuery {
9
9
raw ?: boolean
10
10
}
11
11
12
- export function parseVueRequest (
13
- id : string
14
- ) : { filename : string ; query : VueQuery } {
12
+ export function parseVueRequest ( id : string ) : {
13
+ filename : string
14
+ query : VueQuery
15
+ } {
15
16
const [ filename , rawQuery ] = id . split ( `?` , 2 )
16
17
const query = qs . parse ( rawQuery ) as VueQuery
17
18
if ( query . vue != null ) {
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ beforeAll(async () => {
88
88
server = await ( await createServer ( options ) ) . listen ( )
89
89
// use resolved port/base from server
90
90
const base = server . config . base === '/' ? '' : server . config . base
91
- const url = ( global . viteTestUrl = `http://localhost:${ server . config . server . port } ${ base } ` )
91
+ const url =
92
+ ( global . viteTestUrl = `http://localhost:${ server . config . server . port } ${ base } ` )
92
93
await page . goto ( url )
93
94
} else {
94
95
process . env . VITE_INLINE = 'inline-build'
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ const msgPath = process.env.GIT_PARAMS
5
5
const msg = require ( 'fs' ) . readFileSync ( msgPath , 'utf-8' ) . trim ( )
6
6
7
7
const releaseRE = / ^ v \d /
8
- const commitRE = / ^ ( r e v e r t : ) ? ( f e a t | f i x | d o c s | d x | r e f a c t o r | p e r f | t e s t | w o r k f l o w | b u i l d | c i | c h o r e | t y p e s | w i p | r e l e a s e | d e p s ) ( \( .+ \) ) ? : .{ 1 , 50 } /
8
+ const commitRE =
9
+ / ^ ( r e v e r t : ) ? ( f e a t | f i x | d o c s | d x | r e f a c t o r | p e r f | t e s t | w o r k f l o w | b u i l d | c i | c h o r e | t y p e s | w i p | r e l e a s e | d e p s ) ( \( .+ \) ) ? : .{ 1 , 50 } /
9
10
10
11
if ( ! releaseRE . test ( msg ) && ! commitRE . test ( msg ) ) {
11
12
console . log ( )
You can’t perform that action at this time.
0 commit comments