Open pi0 opened 1 year ago
https://github.com/cosmiconfig/cosmiconfig?tab=readme-ov-file#searchplaces
for example, I want to search for these two words
components.json
- components-vue.json
const configResult = await c12LoadConfig({
name: ['components', 'components-vue'],
configFile: ['components', 'components-vue'],
cwd,
})
+1, this would be really nice! I can create a pull request if there's interest in getting it merged?
@sadeghbarati this is also another good idea (this issue is for supporting an export with array of configs. i understand what you wanted is to search for multiple names moved to ~> https://github.com/unjs/c12/issues/157)
@mrlubos PR welcome for either ;)
When the default export is an array we need to support resolving multi configs (might be a new export
loadConfig
)