11// Copyright 2024 the JSR authors. MIT license.
22import * as path from "node:path" ;
33import * as fs from "node:fs" ;
4- import { styleText } from ' ./utils'
4+ import { styleText } from " ./utils" ;
55import {
66 exec ,
77 fileExists ,
@@ -26,7 +26,7 @@ async function wrapWithStatus(msg: string, fn: () => Promise<void>) {
2626
2727 try {
2828 await fn ( ) ;
29- process . stdout . write ( styleText ( "green" , "ok" ) + "\n" ) ;
29+ process . stdout . write ( styleText ( "green" , "ok" ) + "\n" ) ;
3030 } catch ( err ) {
3131 process . stdout . write ( styleText ( "red" , "error" ) + "\n" ) ;
3232 throw err ;
@@ -235,16 +235,17 @@ export async function showPackageInfo(raw: string) {
235235
236236 console . log ( ) ;
237237 console . log (
238- styleText ( "cyan" , `@${ pkg . scope } /${ pkg . name } @${ pkg . version } `
239- ) +
238+ styleText ( "cyan" , `@${ pkg . scope } /${ pkg . name } @${ pkg . version } ` ) +
240239 ` | latest: ${ styleText ( "magenta" , meta . latest ?? "-" ) } | versions: ${
241240 styleText ( "magenta" , versionCount . toString ( ) )
242241 } `,
243242 ) ;
244243 console . log ( npmInfo . description ) ;
245244 console . log ( ) ;
246245 console . log ( `npm tarball: ${ styleText ( "cyan" , versionInfo . dist . tarball ) } ` ) ;
247- console . log ( `npm integrity: ${ styleText ( "cyan" , versionInfo . dist . integrity ) } ` ) ;
246+ console . log (
247+ `npm integrity: ${ styleText ( "cyan" , versionInfo . dist . integrity ) } ` ,
248+ ) ;
248249 console . log ( ) ;
249250 console . log (
250251 `published: ${ styleText ( "magenta" , timeAgo ( Date . now ( ) - publishTime ) ) } ` ,
0 commit comments