mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-29 20:41:47 -04:00
Use ~/.pnpm-cache as the default cache path. Use the Node path for hosting the global pnpm package.
9 lines
246 B
TypeScript
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))
|
|
}
|