c12
c12 copied to clipboard
Support array configurations for multi config
trafficstars
When the default export is an array we need to support resolving multi configs (might be a new export loadConfig)
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,
})