Don't explicitly exclude raw
This commit is contained in:
parent
99e5bc1a57
commit
ea0e36b7a4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue