c12 icon indicating copy to clipboard operation
c12 copied to clipboard

Support multiple names to search config from

Open pi0 opened this issue 1 year ago • 0 comments
trafficstars

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

Originally posted by @sadeghbarati in https://github.com/unjs/c12/issues/92#issuecomment-1942390273

pi0 avatar Jun 11 '24 16:06 pi0