From 0794f0186a3df56808a3f2b868dd5d1068671a79 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Fri, 3 May 2019 17:16:52 +0300 Subject: [PATCH] Add backwards compatability for Adobe Lightroom Because it was renamed it may result in unexpected errors --> breaking changes. This is a temporary solution to circumvent the problem. This can be removed once some other breaking changes are also present and a major new version is released. I propose removing this change when https://github.com/simple-icons/simple-icons/issues/1362 is implemented --- scripts/prepublish.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/prepublish.js b/scripts/prepublish.js index 00c0e998..a767cfac 100755 --- a/scripts/prepublish.js +++ b/scripts/prepublish.js @@ -27,5 +27,19 @@ data.icons.forEach(icon => { ); }); +/* Backwards compatibility */ +// https://github.com/simple-icons/simple-icons/pull/1365 +const adobeLightroom = icons["Adobe Lightroom Classic"]; +adobeLightroom.title = "Adobe Lightroom"; +icons["Adobe Lightroom"] = adobeLightroom; +fs.writeFileSync( + `${iconsDir}/adobelightroom.svg`, + adobeLightroom.svg +); +fs.writeFileSync( + `${iconsDir}/adobelightroom.js`, + `module.exports=${JSON.stringify(adobeLightroom)};` +); + // write our generic index.js fs.writeFileSync(indexFile, `module.exports=${JSON.stringify(icons)};`);