thepassle / barrel-begone

50 stars 1 forks source link

monorepo support #5

Open sibelius opened 5 months ago

sibelius commented 5 months ago

🛢️ BARREL BEGONE 🛢️

Analyzing the following entrypoints based on either the "module" or "main" field in package.json:
- "undefined": "undefined"

node:internal/validators:162
    throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
          ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at validateString (node:internal/validators:162:11)
    at Object.join (node:path:1175:7)
    at barrelBegone (file:///user/.npm/_npx/051184ea0da1632e/node_modules/barrel-begone/index.js:85:27) {
  code: 'ERR_INVALID_ARG_TYPE'
}

we don't have module/main on package.json of the monorepo

thepassle commented 5 months ago

Thanks for reporting! I haven't looked into supporting monorepos yet admittedly, but it shouldnt be much work I think. I can take a look at this tomorrow

thepassle commented 5 months ago

Do you have a link to your monorepo by any chance, so I can try it out? Or is it internal/not public?

sibelius commented 5 months ago

try this https://github.com/sibelius/relay-workshop