We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a9c50 commit 7339dd4Copy full SHA for 7339dd4
src/version.ts
@@ -1,5 +1,4 @@
1
-const pkgPath = process.env.NODE_ENV === 'test' ? '../package.json' : '../../package.json';
2
-const pkgInfo = require(pkgPath);
+const pkgInfo = require('../package.json');
3
4
function getVersion() {
5
return pkgInfo.version;
0 commit comments