Closed nicolas-c-dev closed 1 year ago
Hi, first of all, sorry if it's not a bug but I didn't find where to ask my question.
I need to count components imported from a package named '@flame-ui/core/[anycomponent]', example: import Button from '@flame-ui/core/button';
import Button from '@flame-ui/core/button';
This is my config: module.exports = { crawlFrom: "./packages", importedFrom: '@flame-ui/core/*', processors: ["count-components"] };
module.exports = { crawlFrom: "./packages", importedFrom: '@flame-ui/core/*', processors: ["count-components"] };
but it throws empty Scanned 1265 files in 6.988196 seconds {}
If I change to exact path using importedFrom: '@flame-ui/core/button', it finds correctly: Scanned 1265 files in 6.1287643 seconds { "Button": 19 }
importedFrom: '@flame-ui/core/button',
Any help will be appreciated :D
Could you try making it an actual regex?
importedFrom: /@flame-ui\/core\/.*/
@moroshko Thanks!! It worked
Hi, first of all, sorry if it's not a bug but I didn't find where to ask my question.
I need to count components imported from a package named '@flame-ui/core/[anycomponent]', example:
import Button from '@flame-ui/core/button';
This is my config:
module.exports = { crawlFrom: "./packages", importedFrom: '@flame-ui/core/*', processors: ["count-components"] };
but it throws empty Scanned 1265 files in 6.988196 seconds {}
If I change to exact path using
importedFrom: '@flame-ui/core/button',
it finds correctly: Scanned 1265 files in 6.1287643 seconds { "Button": 19 }Any help will be appreciated :D