Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Commit

Permalink
fix(main): default --prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 1, 2017
1 parent 7f8933e commit ff06a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const lifecycle = require('npm-lifecycle')
module.exports = main

function main (opts) {
let prefix = path.resolve(opts.prefix)
let prefix = path.resolve(opts.prefix || '.')

const startTime = Date.now()
const nodeModulesPath = path.join(prefix, 'node_modules')
Expand Down

0 comments on commit ff06a31

Please sign in to comment.