File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
2
import { isPackageExists } from 'local-pkg'
3
3
4
- export const hasTypeScript : boolean = isPackageExists ( 'typescript' )
5
- export const hasVue : boolean =
4
+ export const hasTypeScript = ( ) : boolean => isPackageExists ( 'typescript' )
5
+ export const hasVue = ( ) : boolean =>
6
6
isPackageExists ( 'vue' ) ||
7
7
isPackageExists ( 'nuxt' ) ||
8
8
isPackageExists ( 'vitepress' ) ||
9
9
isPackageExists ( '@slidev/cli' )
10
- export const hasUnocss : boolean =
10
+ export const hasUnocss = ( ) : boolean =>
11
11
isPackageExists ( 'unocss' ) ||
12
12
isPackageExists ( '@unocss/webpack' ) ||
13
- isPackageExists ( '@unocss/nuxt' )
13
+ isPackageExists ( '@unocss/nuxt' ) ||
14
+ isPackageExists ( '@unocss/eslint-plugin' )
14
15
15
16
export function isInEditorEnv ( ) : boolean {
16
17
if ( process . env . CI ) return false
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ export async function sxzz(
75
75
command : enableCommand = true ,
76
76
markdown : enableMarkdown = true ,
77
77
prettier : enablePrettier = true ,
78
- unocss : enableUnocss = hasUnocss ,
79
- vue : enableVue = hasVue ,
78
+ unocss : enableUnocss = hasUnocss ( ) ,
79
+ vue : enableVue = hasVue ( ) ,
80
80
} : Partial < {
81
81
/** Vue support. Auto-enable if detected. */
82
82
vue : boolean
You can’t perform that action at this time.
0 commit comments