Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 3ffdc27

Browse files
fix: use static version of package.json
1 parent b595eaa commit 3ffdc27

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/core/ipfs/version.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const readPkgUp = require('read-pkg-up')
3+
const pkg = require('../../../package.json')
44

55
module.exports = function version (self) {
66
return (opts, callback) => {
@@ -9,10 +9,6 @@ module.exports = function version (self) {
99
opts = {}
1010
}
1111

12-
readPkgUp()
13-
.then((res) => {
14-
callback(null, res.pkg.version)
15-
})
16-
.catch(callback)
12+
callback(null, pkg.version)
1713
}
1814
}

0 commit comments

Comments
 (0)