Skip to content

Commit

Permalink
Update assetCatalogIOS.js
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis authored Dec 12, 2023
1 parent 0876eeb commit 72558cf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import fs from 'fs';
import path from 'path';

export function cleanAssetCatalog(catalogDir: string): void {
const imageSets = fs
const files = fs
.readdirSync(catalogDir)
.filter(imageSet => imageSet.endsWith('.imageset'));
for (const imageSet of imageSets) {
fs.rmSync(path.join(catalogDir, imageSet), {recursive: true, force: true});
.filter(file => file.endsWith('.imageset'));
for (const file of files) {
fs.rmSync(path.join(catalogDir, file), {recursive: true, force: true});
}
}

Expand Down

0 comments on commit 72558cf

Please sign in to comment.