Skip to content

Commit

Permalink
Chore: remove read-pkg-up
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Dec 31, 2016
1 parent 49528e4 commit 58f9d4c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions bin/common/version.js
Expand Up @@ -5,12 +5,6 @@
*/
"use strict"

//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------

const readPkgUp = require("read-pkg-up").sync

//------------------------------------------------------------------------------
// Public Interface
//------------------------------------------------------------------------------
Expand All @@ -23,7 +17,7 @@ const readPkgUp = require("read-pkg-up").sync
* @private
*/
module.exports = function printVersion(output) {
const version = readPkgUp({cwd: __dirname}).pkg.version
const version = require("../../package.json").version

output.write(`v${version}\n`)

Expand Down
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -34,7 +34,6 @@
"minimatch": "^3.0.2",
"ps-tree": "^1.0.1",
"read-pkg": "^2.0.0",
"read-pkg-up": "^2.0.0",
"shell-quote": "^1.6.1",
"string.prototype.padend": "^3.0.0"
},
Expand Down

0 comments on commit 58f9d4c

Please sign in to comment.