1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Don't explicitly exclude raw

This commit is contained in:
Adria Navarro 2024-01-23 14:28:52 +01:00
parent 99e5bc1a57
commit ea0e36b7a4

View file

@ -25,14 +25,10 @@ const manifest = JSON.parse(
fs.readFileSync(require.resolve("../manifest.json"), "utf8") fs.readFileSync(require.resolve("../manifest.json"), "utf8")
) )
const functionsToExclude = { string: ["raw"] }
const collections = Object.keys(manifest) const collections = Object.keys(manifest)
const examples = collections.reduce((acc, collection) => { const examples = collections.reduce((acc, collection) => {
const functions = Object.keys(manifest[collection]).filter( const functions = Object.keys(manifest[collection]).filter(
fnc => fnc => manifest[collection][fnc].example
!functionsToExclude[collection]?.includes(fnc) &&
manifest[collection][fnc].example
) )
if (functions.length) { if (functions.length) {
acc[collection] = functions acc[collection] = functions