mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
refactor version import
This commit is contained in:
parent
8726e8581b
commit
aaa939cf87
@ -1,3 +1,3 @@
|
||||
import * as pkg from '../../package.json';
|
||||
import { version } from '../../package.json';
|
||||
|
||||
export default (pkg as any).version;
|
||||
export default version;
|
||||
|
1
typings/custom-typings.d.ts
vendored
1
typings/custom-typings.d.ts
vendored
@ -86,5 +86,6 @@ declare var process: {
|
||||
|
||||
declare module "*.json" {
|
||||
const value: any;
|
||||
export const version: string;
|
||||
export default value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user