Skip to content

Commit

Permalink
Avoid invalid colon in style file names
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jan 22, 2025
1 parent 18468d3 commit 398bbd3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/buildStaticStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ for (let mode in lensOptionsByMode) {
let style = generateStyle(baseStyleJsonString, mode, lens);
let filename = `otm-${mode}`;
if (lens !== '') filename += `-${lens}`;
filename = filename.replaceAll(':', '_');
writeFileSync(`${outDir}/${filename}.json`, JSON.stringify(style, null, 2));
writeFileSync(`${outDir}/${filename}.min.json`, JSON.stringify(style));
total += 1;
Expand Down

0 comments on commit 398bbd3

Please sign in to comment.