From d7b8dafd8b73033a8af93ca1a3f57903bd74346b Mon Sep 17 00:00:00 2001 From: Shigma <33423008+Shigma@users.noreply.github.com> Date: Thu, 28 Mar 2019 01:05:56 +0800 Subject: [PATCH] feat($core): export version (#1486) const { version } = require('vuepress') --- packages/@vuepress/core/lib/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@vuepress/core/lib/index.js b/packages/@vuepress/core/lib/index.js index add8f2fd85..85afa96123 100644 --- a/packages/@vuepress/core/lib/index.js +++ b/packages/@vuepress/core/lib/index.js @@ -1,6 +1,7 @@ 'use strict' const App = require('./node/App') +const { version } = require('../package') const { logger } = require('@vuepress/shared-utils') function createApp (options) { @@ -20,6 +21,7 @@ async function build (options) { return app.build() } +exports.version = version exports.createApp = createApp exports.dev = dev exports.build = build