diff --git a/main.ts b/main.ts index 76238a8..f15d5d0 100644 --- a/main.ts +++ b/main.ts @@ -3,6 +3,7 @@ import { createBrowser } from "./browser"; import { createDatabase } from "./database"; import { type Book, createLibrary } from "./library"; import { type TPlatform, createPlatform } from "./platform"; +import * as pkg from "./package.json"; const options = { db: { @@ -156,6 +157,13 @@ const options = { json: { type: "boolean", }, + version: { + type: "boolean", + short: "v", + run() { + console.log(pkg.version); + }, + }, help: { type: "boolean", short: "h",