This repository was archived by the owner on Mar 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,34 +212,6 @@ cli.command(
212212 } ,
213213) ;
214214
215- cli . command (
216- "versions:latest" ,
217- "Check for the latest emoji versions" ,
218- ( args ) => commonOptions ( args )
219- . option ( "write-lockfile" , {
220- type : "boolean" ,
221- default : false ,
222- description : "write the latest version to the lockfile" ,
223- } )
224- . strict ( ) . help ( ) ,
225- async ( args ) => {
226- const versions = await getAllEmojiVersions ( ) ;
227-
228- const latest = versions [ 0 ] ;
229-
230- consola . log ( "latest emoji version:" , yellow ( latest ?. emoji_version ) ) ;
231-
232- if ( args . writeLockfile ) {
233- const lockfile = await readLockfile ( ) ;
234-
235- lockfile . latestVersion = latest ?. emoji_version ;
236-
237- await writeLockfile ( lockfile ) ;
238- consola . log ( `updated ${ yellow ( "emojis.lock" ) } ` ) ;
239- }
240- } ,
241- ) ;
242-
243215cli . command (
244216 "versions" ,
245217 "Print all emoji versions available" ,
Original file line number Diff line number Diff line change @@ -12,15 +12,13 @@ const EMOJI_VERSION_SCHEMA = v.object({
1212export type EmojiVersion = v . InferInput < typeof EMOJI_VERSION_SCHEMA > ;
1313
1414const LOCKFILE_SCHEMA = v . object ( {
15- latestVersion : v . optional ( v . nullable ( v . string ( ) ) ) ,
1615 versions : v . array ( EMOJI_VERSION_SCHEMA ) ,
1716} ) ;
1817
1918export type EmojiLockfile = v . InferInput < typeof LOCKFILE_SCHEMA > ;
2019
2120const DEFAULT_LOCKFILE = {
2221 versions : [ ] ,
23- latestVersion : null ,
2422} satisfies EmojiLockfile ;
2523
2624/**
You can’t perform that action at this time.
0 commit comments