Skip to content

Commit

Permalink
#1390: regression fix: align --metatdata retrieve behavior with legac…
Browse files Browse the repository at this point in the history
…y behavior
  • Loading branch information
JoernBerkefeld committed Jun 29, 2024
1 parent 745647d commit 461199f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @types/lib/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,10 @@ class Mcdev {
// Clear output folder structure for selected type
retrieveTypesArr.push(type);
}
if (!keys) {
const areKeySet = Array.isArray(selectedTypesArr)
? keys
: Object.values(selectedTypesArr).filter(Boolean).length;
if (!areKeySet) {
// dont delete directories if we are just re-retrieving a single file
await File.remove(File.normalizePath(removePathArr));
// clean up old folders after types were renamed
Expand Down

0 comments on commit 461199f

Please sign in to comment.