feat(core): export version (#254)

This commit is contained in:
Dmitry Sharshakov
2019-10-14 22:31:43 +03:00
committed by Evan You
parent 4547d85a38
commit fd209f5a66
5 changed files with 14 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ declare var __JSDOM__: boolean
declare var __BROWSER__: boolean
declare var __RUNTIME_COMPILE__: boolean
declare var __COMMIT__: string
declare var __VERSION__: string
// Feature flags
declare var __FEATURE_OPTIONS__: boolean

View File

@@ -0,0 +1,6 @@
import { version } from '../src'
import lernaJson from '../../../lerna.json'
test('version', () => {
expect(version).toBe(lernaJson.version)
})

View File

@@ -84,3 +84,5 @@ export {
DirectiveArguments
} from './directives'
export { SuspenseBoundary } from './suspense'
export const version = __VERSION__