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
This commit is contained in:
Eric Cornelissen 2019-05-03 17:16:52 +03:00
parent 265bdeacaf
commit 0794f0186a

View File

@ -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)};`);