c12 icon indicating copy to clipboard operation
c12 copied to clipboard

Support array configurations for multi config

Open pi0 opened this issue 2 years ago • 3 comments
trafficstars

When the default export is an array we need to support resolving multi configs (might be a new export loadConfig)

pi0 avatar Jul 18 '23 19:07 pi0

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,
})

sadeghbarati avatar Feb 13 '24 20:02 sadeghbarati