From 69bdd6ba0e89d4a4a8ebc8a8fefbaf5dad581233 Mon Sep 17 00:00:00 2001 From: Lotus Date: Fri, 28 Apr 2023 16:59:59 +0100 Subject: [PATCH] fix: incorrectly generated icon response file --- data/icon-response.json | 84 ----------------------------------------- package.json | 2 +- src/icons-gen.ts | 5 ++- 3 files changed, 5 insertions(+), 86 deletions(-) delete mode 100644 data/icon-response.json diff --git a/data/icon-response.json b/data/icon-response.json deleted file mode 100644 index ed8ce12..0000000 --- a/data/icon-response.json +++ /dev/null @@ -1,84 +0,0 @@ -[ - { - "family": "Material Icons", - "variants": ["regular"], - "subsets": ["latin"], - "version": "v140", - "lastModified": "2023-03-08", - "category": "icons" - }, - { - "family": "Material Icons Outlined", - "variants": ["regular"], - "subsets": ["latin"], - "version": "v109", - "lastModified": "2023-03-08", - "category": "icons" - }, - { - "family": "Material Icons Round", - "variants": ["regular"], - "subsets": ["latin"], - "version": "v108", - "lastModified": "2023-03-21", - "category": "icons" - }, - { - "family": "Material Icons Sharp", - "variants": ["regular"], - "subsets": ["latin"], - "version": "v109", - "lastModified": "2023-03-08", - "category": "icons" - }, - { - "family": "Material Icons Two Tone", - "variants": ["regular"], - "subsets": ["latin"], - "version": "v112", - "lastModified": "2023-03-08", - "category": "icons" - }, - { - "family": "Material Symbols Outlined", - "variants": ["100", "200", "300", "regular", "500", "600", "700"], - "subsets": ["latin"], - "version": "v108", - "lastModified": "2023-04-27", - "category": "icons", - "axes": { - "FILL": {"min": "0", "max": "1", "default": "0", "step": "1"}, - "wght": {"min": "100", "max": "700", "default": "400", "step": "1"}, - "GRAD": {"min": "-25", "max": "200", "default": "0", "step": "1"}, - "opsz": {"default": "48", "min": "30", "max": "48", "step": "0.1"} - } - }, - { - "family": "Material Symbols Rounded", - "variants": ["100", "200", "300", "regular", "500", "600", "700"], - "subsets": ["latin"], - "version": "v107", - "lastModified": "2023-04-27", - "category": "icons", - "axes": { - "FILL": {"min": "0", "max": "1", "default": "0", "step": "1"}, - "wght": {"min": "100", "max": "700", "default": "400", "step": "1"}, - "GRAD": {"min": "-25", "max": "200", "default": "0", "step": "1"}, - "opsz": {"default": "48", "min": "30", "max": "48", "step": "0.1"} - } - }, - { - "family": "Material Symbols Sharp", - "variants": ["100", "200", "300", "regular", "500", "600", "700"], - "subsets": ["latin"], - "version": "v104", - "lastModified": "2023-04-27", - "category": "icons", - "axes": { - "FILL": {"min": "0", "max": "1", "default": "0", "step": "1"}, - "wght": {"min": "100", "max": "700", "default": "400", "step": "1"}, - "GRAD": {"min": "-25", "max": "200", "default": "0", "step": "1"}, - "opsz": {"default": "48", "min": "30", "max": "48", "step": "0.1"} - } - } -] \ No newline at end of file diff --git a/package.json b/package.json index c4eb632..d0ad649 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "google-font-metadata", "description": "A metadata generator for Google Fonts.", - "version": "5.1.0", + "version": "5.1.1", "author": "Ayuhito ", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/src/icons-gen.ts b/src/icons-gen.ts index 684f785..2b4ed65 100644 --- a/src/icons-gen.ts +++ b/src/icons-gen.ts @@ -66,7 +66,10 @@ export const stripIconsApiGen = async ( // Write the icon families to a separate file await fs.writeFile( - join(dirname(fileURLToPath(import.meta.url)), '../data/icon-response.json'), + join( + dirname(fileURLToPath(import.meta.url)), + '../data/icons-response.json' + ), stringify(icons) );