fix(link): global binstub created on pnpm link

Close #614
This commit is contained in:
Zoltan Kochan
2017-02-19 20:23:48 +02:00
parent b6fddf4234
commit 8da56d4e07

View File

@@ -49,6 +49,7 @@ export async function linkToGlobal (
maybeOpts?: PnpmOptions
) {
const opts = extendOptions(maybeOpts)
opts.global = true // bins will be linked to the global bin path
const globalPkgPath = expandTilde(opts.globalPath)
await link(linkFrom, globalPkgPath, opts)
}