From 9a285a2a4f94dadddea1fbf40006dab2bc1a5268 Mon Sep 17 00:00:00 2001 From: wilson Date: Thu, 9 Nov 2023 10:43:41 +0800 Subject: [PATCH] feat: #128 add version display --- src/index.ts | 1 + tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index dc09077..9b6a605 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ export { createApp } from './app' export { nextTick } from './scheduler' export { reactive } from 'vue' +export { version } from '../package.json' import { createApp } from './app' diff --git a/tsconfig.json b/tsconfig.json index ca9c7c8..8565cac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,7 +11,8 @@ "strict": true, "noUnusedLocals": true, "rootDir": ".", - "types": ["vite/client"] + "types": ["vite/client"], + "resolveJsonModule": true }, "include": [ "src"