UNPKG
dify-components
Version:
latest (1.0.0)
1.0.0
This is a modern component library template based on Turborepo+Vue 3.5+TypeScript.
dify-components
/
packages
/
ui
/
src
/
version.ts
9 lines
(6 loc)
•
320 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
/** * 需要多作一层导出,不能直接在index.ts中:export { version } from '../package.json'; * types类型打包的产物里会找不到这个pkgjson文件,虽然不影响使用,但是ts会报红 */
import
{ version
as
pkgVersion }
from
'../package.json'
;
export
const
version
:
string
= pkgVersion;