Skip to content

Commit

Permalink
feat: get version from package.json (#1979)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored May 29, 2024
1 parent 2880903 commit e94df02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts-json-schema-generator.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Command, Option } from "commander";
import fs, { mkdirSync, writeFileSync } from "node:fs";
import { mkdirSync, writeFileSync } from "node:fs";
import { dirname } from "node:path";
import stableStringify from "safe-stable-stringify";
import { createGenerator } from "./factory/generator.js";
import type { Config } from "./src/Config.js";
import { BaseError } from "./src/Error/BaseError.js";

const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
import pkg from "./package.json";

const args = new Command()
.option("-p, --path <path>", "Source file path")
Expand Down

0 comments on commit e94df02

Please sign in to comment.