@iyulab/components 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -21,7 +21,11 @@ export default function reactWrapperPlugin(options) {
|
|
|
21
21
|
log('Generating React wrappers...');
|
|
22
22
|
// 컴포넌트 수집
|
|
23
23
|
const inputPattern = (options.input || 'src/components') + '/**/*.ts';
|
|
24
|
-
|
|
24
|
+
let files = globSync(inputPattern, { cwd: rootDir, absolute: true });
|
|
25
|
+
if (options.exclude?.length) {
|
|
26
|
+
const excluded = new Set(options.exclude.flatMap(p => globSync(p, { cwd: rootDir, absolute: true })));
|
|
27
|
+
files = files.filter((f) => !excluded.has(f));
|
|
28
|
+
}
|
|
25
29
|
const components = files.flatMap((f) => parseComponent(f));
|
|
26
30
|
if (components.length === 0) {
|
|
27
31
|
log('No components found.');
|