diff --git a/src/utils/string.ts b/src/utils/string.ts index 7725304..6685b26 100644 --- a/src/utils/string.ts +++ b/src/utils/string.ts @@ -1,6 +1,6 @@ -import { readJSONSync } from "./io"; +import { version } from "../../package.json"; -export const kVersion = readJSONSync("package.json").version; +export const kVersion = version; export const kAreYouOK = "¿ʞо ∩оʎ ǝɹɐ"; // are you ok? diff --git a/tsconfig.json b/tsconfig.json index 6c9d638..20963bd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,8 @@ "target": "esnext", "module": "esnext", "esModuleInterop": true, - "moduleResolution": "node" + "moduleResolution": "node", + "resolveJsonModule": true }, "include": ["src", "tests"], "exclude": ["node_modules", "dist"]