es-tooling / module-replacements

A manifest of JS modules and their more modern/active replacements
MIT License
84 stars 10 forks source link

Simplify list creation #75

Open benmccann opened 4 days ago

benmccann commented 4 days ago

I think some of the fields are unnecessary. E.g. in https://github.com/es-tooling/module-replacements/blob/main/manifests/native.json there are two fields that both always have the value of native. Could we provide a utility JS that reads the file and adds any fields that always have the same value rather than making each new entry add these fields?

43081j commented 3 days ago

i think the category field was originally added because we were going to have one huge list which gets filtered down by category

since we have multiple manifests instead, it might not make sense anymore

meanwhile, its possible we could have a script in a scripts dir, like node scripts/create-entry.js native some-module 16.0.0 - which makes the entry with the specified node version in the native manifest