Skip to content

Commit 654b455

Browse files
committed
Remove old colors when exporting colors
1 parent 1b45222 commit 654b455

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/FigmaExport/Subcommands/ExportColors.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ extension FigmaExportCommand {
8282

8383
let exporter = XcodeColorExporter(output: output)
8484
let files = exporter.export(colorPairs: colorPairs)
85+
86+
if iosParams.colors.useColorAssets, let url = colorsURL {
87+
try? FileManager.default.removeItem(atPath: url.path)
88+
}
89+
8590
try fileWritter.write(files: files)
8691
}
8792

0 commit comments

Comments
 (0)