version
This commit is contained in:
parent
7f36682b04
commit
4eb03c0c0d
1 changed files with 7 additions and 0 deletions
7
main.ts
7
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,12 @@ const options = {
|
|||
json: {
|
||||
type: "boolean",
|
||||
},
|
||||
version: {
|
||||
type: "boolean",
|
||||
run() {
|
||||
console.log(pkg.version);
|
||||
},
|
||||
},
|
||||
help: {
|
||||
type: "boolean",
|
||||
short: "h",
|
||||
|
|
Loading…
Add table
Reference in a new issue