mirror of
https://github.com/pnpm/pnpm.git
synced 2026-01-29 17:22:07 -05:00
Use ~/.pnpm-cache as the default cache path. Use the Node path for hosting the global pnpm package.
12 lines
434 B
TypeScript
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)
|
|
}
|