Skip to content
This repository was archived by the owner on Mar 1, 2025. It is now read-only.

Commit 40f5008

Browse files
committed
chore: remove lockfile
1 parent dc5f3a4 commit 40f5008

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

src/cli.ts

-28
Original file line numberDiff line numberDiff 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-
243215
cli.command(
244216
"versions",
245217
"Print all emoji versions available",

src/lockfile.ts

-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ const EMOJI_VERSION_SCHEMA = v.object({
1212
export type EmojiVersion = v.InferInput<typeof EMOJI_VERSION_SCHEMA>;
1313

1414
const LOCKFILE_SCHEMA = v.object({
15-
latestVersion: v.optional(v.nullable(v.string())),
1615
versions: v.array(EMOJI_VERSION_SCHEMA),
1716
});
1817

1918
export type EmojiLockfile = v.InferInput<typeof LOCKFILE_SCHEMA>;
2019

2120
const DEFAULT_LOCKFILE = {
2221
versions: [],
23-
latestVersion: null,
2422
} satisfies EmojiLockfile;
2523

2624
/**

0 commit comments

Comments
 (0)