Don't explicitly exclude raw

This commit is contained in:
Adria Navarro 2024-01-23 14:28:52 +01:00
parent 99e5bc1a57
commit ea0e36b7a4
1 changed files with 1 additions and 5 deletions

View File

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