forked from leizongmin/node-segment
-
Notifications
You must be signed in to change notification settings - Fork 4
/
version.ts
51 lines (44 loc) · 837 Bytes
/
version.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Created by user on 2020/6/2.
*/
// @ts-ignore
export let version: string;
export default version
// @ts-ignore
export let version_dict: string;
// @ts-ignore
export let versions: {
'novel-segment': string;
'segment-dict': string;
'regexp-cjk': string;
'cjk-conv': string;
}
Object.defineProperty(exports, "version", {
get()
{
return require('./package.json').version
}
});
Object.defineProperty(exports, "version_dict", {
get()
{
return require('segment-dict/version').version
}
});
Object.defineProperty(exports, "versions", {
get()
{
return {
'novel-segment': version,
'segment-dict': version_dict,
'regexp-cjk': require('regexp-cjk/version').version,
'cjk-conv': require('cjk-conv/version').version,
}
}
});
Object.defineProperty(exports, "default", {
get()
{
return version
}
});