Skip to content

Commit

Permalink
chore: add version extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Jul 2, 2024
1 parent cbcbf50 commit 5f4a6d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/build/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Imports
import { fromFileUrl } from "jsr:@std/path@0.225.1"
import * as JSONC from "jsr:@std/jsonc@0.224.3"

/** Matcha version. */
const { version } = JSONC.parse(await Deno.readTextFile(fromFileUrl(import.meta.resolve("../../deno.jsonc")))) as { version: string }
export { version }
4 changes: 4 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f4a6d5

Please sign in to comment.