refactor version import

This commit is contained in:
afc163 2017-02-13 14:57:04 +08:00
parent 8726e8581b
commit aaa939cf87
2 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,3 @@
import * as pkg from '../../package.json';
import { version } from '../../package.json';
export default (pkg as any).version;
export default version;

View File

@ -86,5 +86,6 @@ declare var process: {
declare module "*.json" {
const value: any;
export const version: string;
export default value;
}