fix: 使用嵌入版本号

This commit is contained in:
WJG 2024-06-02 23:57:22 +08:00
parent b2bf3a3a4e
commit 721e7b6081
No known key found for this signature in database
GPG Key ID: 258474EF8590014A
2 changed files with 4 additions and 3 deletions

View File

@ -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? export const kAreYouOK = "¿ʞо ∩оʎ ǝɹɐ"; // are you ok?

View File

@ -6,7 +6,8 @@
"target": "esnext", "target": "esnext",
"module": "esnext", "module": "esnext",
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "node" "moduleResolution": "node",
"resolveJsonModule": true
}, },
"include": ["src", "tests"], "include": ["src", "tests"],
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]