Replies: 1 comment
-
Okay, so you need in Line 19 in ebd3331 something like: const moduleName = 'fliegdoc';
const { config, filepath } = cosmiconfigSync(moduleName, {
searchPlaces: [
`.${moduleName}rc.js`,
`.${moduleName}rc.cjs`,
`${moduleName}.config.js`,
`${moduleName}.config.cjs`
]
}).search(); Originally posted by @fussel178 in #8 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As requested by @fussel178:
require
is not possible in.yml
and similar files.Can you use a string like
fliegdoc-html-parser
instead and require it in the configuration builder?You can also disable support for
.yml
and similar files.See: https://www.npmjs.com/package/cosmiconfig#searchplaces
Originally posted by @fussel178 in #8 (comment)
Beta Was this translation helpful? Give feedback.
All reactions