From 3d0f60ed736759760b485ca128a344a9c4cab7c9 Mon Sep 17 00:00:00 2001 From: tiye Date: Sat, 25 Nov 2023 00:39:14 +0800 Subject: [PATCH] try soft link to reuse package.json ; tag 0.8.12 --- ts-src/calcit.procs.mts | 6 ++++-- ts-src/package.json | 1 + tsconfig.json | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) create mode 120000 ts-src/package.json diff --git a/ts-src/calcit.procs.mts b/ts-src/calcit.procs.mts index d59096d..210d2c2 100644 --- a/ts-src/calcit.procs.mts +++ b/ts-src/calcit.procs.mts @@ -1,5 +1,7 @@ -// CALCIT VERSION -export const calcit_version = "0.8.11"; +import pkg from "./package.json" assert { type: "json" }; + +export const calcit_version = pkg.version; +export const calcit_package_json = pkg; import { parse, ICirruNode } from "@cirru/parser.ts"; import { writeCirruCode } from "@cirru/writer.ts"; diff --git a/ts-src/package.json b/ts-src/package.json new file mode 120000 index 0000000..4e26811 --- /dev/null +++ b/ts-src/package.json @@ -0,0 +1 @@ +../package.json \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 45abf55..e961031 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ "lib": ["es2016", "dom"], "types": ["node"], "baseUrl": "./ts-src/", + "resolveJsonModule": true, "verbatimModuleSyntax": false }, "include": ["./ts-src/*"]