Skip to content

Commit

Permalink
feat($core): export version (#1486)
Browse files Browse the repository at this point in the history
const { version } = require('vuepress')
  • Loading branch information
shigma authored and ulivz committed Mar 27, 2019
1 parent 944ebe4 commit d7b8daf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vuepress/core/lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict'

const App = require('./node/App')
const { version } = require('../package')
const { logger } = require('@vuepress/shared-utils')

function createApp (options) {
Expand All @@ -20,6 +21,7 @@ async function build (options) {
return app.build()
}

exports.version = version
exports.createApp = createApp
exports.dev = dev
exports.build = build
Expand Down

0 comments on commit d7b8daf

Please sign in to comment.