We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2880903 commit e94df02Copy full SHA for e94df02
ts-json-schema-generator.ts
@@ -1,12 +1,12 @@
1
import { Command, Option } from "commander";
2
-import fs, { mkdirSync, writeFileSync } from "node:fs";
+import { mkdirSync, writeFileSync } from "node:fs";
3
import { dirname } from "node:path";
4
import stableStringify from "safe-stable-stringify";
5
import { createGenerator } from "./factory/generator.js";
6
import type { Config } from "./src/Config.js";
7
import { BaseError } from "./src/Error/BaseError.js";
8
9
-const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
+import pkg from "./package.json";
10
11
const args = new Command()
12
.option("-p, --path <path>", "Source file path")
0 commit comments