mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 07:38:12 -05:00
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:
5
.changeset/thirty-stringrays-type.md
Normal file
5
.changeset/thirty-stringrays-type.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/config": patch
|
||||
---
|
||||
|
||||
Fix a bug that doesn't respect `cache-dir`/`state-dir` paths from configuration files
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user