Skip to content

Commit 7339dd4

Browse files
committed
revert: "fix: correctly access package.json"
This reverts commit 3638572.
1 parent c1a9c50 commit 7339dd4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/version.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const pkgPath = process.env.NODE_ENV === 'test' ? '../package.json' : '../../package.json';
2-
const pkgInfo = require(pkgPath);
1+
const pkgInfo = require('../package.json');
32

43
function getVersion() {
54
return pkgInfo.version;

0 commit comments

Comments
 (0)