Files
pnpm/test/utils/testDefaults.ts
Zoltan Kochan 2c46333107 fix: global installation always works now (#713)
* fix: global installation always works now

Close #711

* refactor: avoid using `read-pkg-up`

BREAKING CHANGE:

API should be called in the folder that has a package.json file.
pnpm won't search up for a package.json file.

Close #67

* docs(API): update

* refactor: write-pkg created dir on its own

* refactor: rename `globalDir` to `globalPrefix`

* feat: saving the global package in <global prefix>/pnpm-global
2017-04-22 23:11:25 +03:00

11 lines
340 B
TypeScript

import {PnpmOptions} from '../../src'
import path = require('path')
export default function testDefaults (opts?: PnpmOptions): PnpmOptions & {storePath: string} {
return Object.assign({
storePath: path.resolve('..', '.store'),
localRegistry: path.resolve('..', '.registry'),
registry: 'http://localhost:4873/',
}, opts)
}