Files
pnpm/test/support/testDefaults.ts
Zoltan Kochan b9104a457c feat(global): change default global path
Use ~/.pnpm-cache as the default cache path.
Use the Node path for hosting the global pnpm package.
2017-01-21 18:38:47 +02:00

12 lines
434 B
TypeScript

import {PnpmOptions} from '../../src'
import path = require('path')
export default function testDefaults (opts?: PnpmOptions): PnpmOptions & {globalPath: string, storePath: string} {
return Object.assign({
storePath: path.join(process.cwd(), '..', '.store'),
cachePath: path.join(process.cwd(), '..', '.cache'),
registry: 'http://localhost:4873/',
globalPath: path.join(process.cwd(), '..', 'global'),
}, opts)
}