Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
fix: expose unleash-frontend version in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed Mar 29, 2022
1 parent ab8c731 commit 3ff558e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@


require('pkginfo')(module, 'version');
const path = require('path');

const { version } = module.exports;

module.exports = {
publicFolder: path.join(__dirname, 'build'),
version
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,7 @@
"cypress"
]
},
"dependencies": {}
"dependencies": {
"pkginfo": "^0.4.1"
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8436,6 +8436,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=

[email protected]:
version "1.16.1-lts"
resolved "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1-lts.tgz"
Expand Down

0 comments on commit 3ff558e

Please sign in to comment.