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:
즈눅 authored and GitHub committed 2021-08-29 21:03:22 +03:00
1 parent ade0fa92f4
commit ede519190c
2 files changed
+7

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@pnpm/config": patch
---
Fix a bug that doesn't respect `cache-dir`/`state-dir` paths from configuration files
+2
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,