This repository was archived by the owner on Mar 1, 2025. It is now read-only.
File tree 2 files changed +0
-30
lines changed
2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -212,34 +212,6 @@ cli.command(
212
212
} ,
213
213
) ;
214
214
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
-
243
215
cli . command (
244
216
"versions" ,
245
217
"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({
12
12
export type EmojiVersion = v . InferInput < typeof EMOJI_VERSION_SCHEMA > ;
13
13
14
14
const LOCKFILE_SCHEMA = v . object ( {
15
- latestVersion : v . optional ( v . nullable ( v . string ( ) ) ) ,
16
15
versions : v . array ( EMOJI_VERSION_SCHEMA ) ,
17
16
} ) ;
18
17
19
18
export type EmojiLockfile = v . InferInput < typeof LOCKFILE_SCHEMA > ;
20
19
21
20
const DEFAULT_LOCKFILE = {
22
21
versions : [ ] ,
23
- latestVersion : null ,
24
22
} satisfies EmojiLockfile ;
25
23
26
24
/**
You can’t perform that action at this time.
0 commit comments