8000
File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import process from 'node:process'
2
+ import { dim } from 'ansis'
2
3
import Debug from 'debug'
3
4
import { logger } from '../utils/logger'
4
5
import type { ResolvedOptions } from '../options'
@@ -12,6 +13,7 @@ export async function publint(options: ResolvedOptions): Promise<void> {
12
13
return
13
14
}
14
15
16
+ const t = performance . now ( )
15
17
debug ( 'Running publint' )
16
18
const { publint } = await import ( 'publint' )
17
19
const { formatMessage } = await import ( 'publint/utils' )
@@ -21,7 +23,10 @@ export async function publint(options: ResolvedOptions): Promise<void> {
21
23
debug ( 'Found %d issues' , messages . length )
22
24
23
25
if ( ! messages . length ) {
24
- logger . success ( 'No publint issues found' )
26
+ logger . success (
27
+ `No publint issues found` ,
28
+ dim `(${ Math . round ( performance . now ( ) - t ) } ms)` ,
29
+ )
25
30
}
26
31
let hasError = false
27
32
for ( const message of messages ) {
You can’t perform that action at this time.
0 commit comments