mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-25 02:21:52 -04:00
* 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
11 lines
340 B
TypeScript
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)
|
|
}
|