Skip to content

Commit

Permalink
rename generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew44-mappable committed Apr 18, 2024
1 parent 4713289 commit b496fb8
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 9 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export {IconColor, iconColors} from './icon-colors';
export {IconName} from './icon-name';
export {icons} from './icons';
export {IconColor, iconColors} from './icon-colors.generated';
export {IconName} from './icon-name.generated';
export {icons} from './icons.generated';
2 changes: 1 addition & 1 deletion src/icons/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {IconName} from './icon-name';
import {IconName} from './icon-name.generated';

export type Icons = {
[key in IconName]: string | null;
Expand Down
2 changes: 1 addition & 1 deletion static/icons/cafe_24.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tools/icons/generate-colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export const generateColorsFile = async (fetchedColors: FetchedColors) => {
export type IconColor = keyof typeof iconColors`;

const formattedContent = await prettierFormat(content, 'typescript');
await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-colors.ts'), formattedContent);
await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-colors.generated.ts'), formattedContent);
};
2 changes: 1 addition & 1 deletion tools/icons/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export const generateIconsDocsList = async (iconNames: string[]) => {
})
.join('\n');
const formattedContent = await prettierFormat(content, 'markdown');
await fs.writeFile(path.join(DOCS_FILE_PATH, 'icons.md'), formattedContent);
await fs.writeFile(path.join(DOCS_FILE_PATH, 'icons.generated.md'), formattedContent);
};
2 changes: 1 addition & 1 deletion tools/icons/generate-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export const generateImports = async (iconsDescription: IconDescription[], iconN
${iconNamesObject}
}`;
const formattedContent = await prettierFormat(fileContent, 'typescript');
await fs.writeFile(path.join(SRC_ICONS_PATH, 'icons.ts'), formattedContent);
await fs.writeFile(path.join(SRC_ICONS_PATH, 'icons.generated.ts'), formattedContent);
};
2 changes: 1 addition & 1 deletion tools/icons/generate-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export const generateIconsTypes = async (iconNames: string[]) => {
export type ${type} =${iconNames.map((name) => `| '${name}'`).join('\n')};
`;
const formattedContent = await prettierFormat(content, 'typescript');
await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-name.ts'), formattedContent);
await fs.writeFile(path.join(SRC_ICONS_PATH, 'icon-name.generated.ts'), formattedContent);
};

0 comments on commit b496fb8

Please sign in to comment.