diff --git a/index.js b/index.js index 6c3d74dd1a..1eff7e6952 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,9 @@ - - +require('pkginfo')(module, 'version'); const path = require('path'); +const { version } = module.exports; + module.exports = { publicFolder: path.join(__dirname, 'build'), + version }; diff --git a/package.json b/package.json index 45a7b04ea8..2f3e4c76d0 100644 --- a/package.json +++ b/package.json @@ -118,5 +118,7 @@ "cypress" ] }, - "dependencies": {} + "dependencies": { + "pkginfo": "^0.4.1" + } } diff --git a/yarn.lock b/yarn.lock index c0f7ad7114..4f5113a16f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8420,6 +8420,11 @@ pkg-up@^3.1.0: dependencies: find-up "^3.0.0" +pkginfo@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/pkginfo/-/pkginfo-0.4.1.tgz#b5418ef0439de5425fc4995042dced14fb2a84ff" + integrity sha1-tUGO8EOd5UJfxJlQQtztFPsqhP8= + popper.js@1.16.1-lts: version "1.16.1-lts" resolved "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz"