fix: respect cache-dir/state-dir from config files (#3727)

* fix: respect cache-dir/state-dir from config files

* chore: add changeset file
This commit is contained in:
즈눅
2021-08-30 03:03:22 +09:00
committed by GitHub
parent ade0fa92f4
commit ede519190c
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/config": patch
---
Fix a bug that doesn't respect `cache-dir`/`state-dir` paths from configuration files

View File

@@ -35,6 +35,7 @@ async function which (cmd: string) {
export const types = Object.assign({
bail: Boolean,
'cache-dir': String,
'child-concurrency': Number,
color: ['always', 'auto', 'never'],
dev: [null, true],
@@ -93,6 +94,7 @@ export const types = Object.assign({
'side-effects-cache-readonly': Boolean,
symlink: Boolean,
sort: Boolean,
'state-dir': String,
store: String, // TODO: deprecate
'store-dir': String,
stream: Boolean,