Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
fix(prefix): Resolve to promise when passing --prefix to npm ci (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarov authored and zkat committed Mar 13, 2018
1 parent 54d0106 commit 401d466
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 @@ -91,7 +91,7 @@ class Installer {
// There's some Special™ logic around the `--prefix` config when it
// comes from a config file or env vs when it comes from the CLI
: process.argv.some(arg => arg.match(/^\s*--prefix\s*/i))
? this.config.get('prefix')
? BB.resolve(this.config.get('prefix'))
: getPrefix(process.cwd())
)
.then(prefix => {
Expand Down

0 comments on commit 401d466

Please sign in to comment.