Files
pnpm/src/api/cache.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

9 lines
246 B
TypeScript

import rimraf = require('rimraf-then')
import expandTilde from '../fs/expandTilde'
export const CACHE_PATH = expandTilde('~/.pnpm-cache')
export function cleanCache (cachePath?: string) {
return rimraf(expandTilde(cachePath || CACHE_PATH))
}