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

Commit

Permalink
fix: use static version of package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Aug 4, 2016
1 parent b595eaa commit 3ffdc27
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core/ipfs/version.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

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

module.exports = function version (self) {
return (opts, callback) => {
Expand All @@ -9,10 +9,6 @@ module.exports = function version (self) {
opts = {}
}

readPkgUp()
.then((res) => {
callback(null, res.pkg.version)
})
.catch(callback)
callback(null, pkg.version)
}
}

0 comments on commit 3ffdc27

Please sign in to comment.