diff --git a/package.json b/package.json index df1f25b..a8129f8 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "build": "tsdown", "test": "vitest run src/ scripts/", "typecheck": "tsc --build", - "lint": "biome check src/ scripts/" + "lint": "biome check src/ scripts/", + "lint-fix": "biome check --fix src/ scripts/" }, "devDependencies": { "@biomejs/biome": "^2.4.16", diff --git a/src/core/session.ts b/src/core/session.ts index 56830be..65b3a9d 100644 --- a/src/core/session.ts +++ b/src/core/session.ts @@ -1,4 +1,4 @@ -import { createHttpHooks, VM, type VMOptions } from "@earendil-works/gondolin"; +import { createHttpHooks, VM } from "@earendil-works/gondolin"; import { buildVfsMounts, buildVfsVolumes, diff --git a/src/main.ts b/src/main.ts index c7549f0..2582119 100755 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,6 @@ #!/usr/bin/env -S node --disable-warning=ExperimentalWarning import { buildApplication, buildRouteMap, run } from "@stricli/core"; +import packagejson from "../package.json" with { type: "json" }; import { command as init } from "./cli/init.ts"; import { command as run_ } from "./cli/run.ts"; @@ -10,6 +11,7 @@ const root = buildRouteMap({ const app = buildApplication(root, { name: "tuor", + versionInfo: { currentVersion: packagejson.version }, scanner: { caseStyle: "allow-kebab-for-camel", allowArgumentEscapeSequence: true, diff --git a/tsconfig.src.json b/tsconfig.src.json index 8228dad..70072fa 100644 --- a/tsconfig.src.json +++ b/tsconfig.src.json @@ -1,4 +1,4 @@ { "extends": "./tsconfig.base.json", - "include": ["src"] + "include": ["src", "./package.json"] }