feat: support removing config values via null

This commit is contained in:
Aarnav Tale 2024-08-24 10:33:30 -04:00
parent 9aedd9baad
commit ea2ffdf0c1
No known key found for this signature in database
2 changed files with 7 additions and 2 deletions

View file

@ -308,6 +308,11 @@ export async function patchConfig(partial: Record<string, unknown>) {
// Push the remaining element
path.push(temp.replaceAll('"', ''))
if (value === null) {
configYaml.deleteIn(path)
continue
}
configYaml.setIn(path, value)
}