From 6f637e51bac33c24ce53c87008a3f19c420b7126 Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 15 Jun 2024 03:21:07 +0900 Subject: [PATCH] fix(cli): use filter to return string only in getDirComponentRequiredFiles --- packages/cli/src/helpers/path.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/helpers/path.ts b/packages/cli/src/helpers/path.ts index e435560..8364270 100644 --- a/packages/cli/src/helpers/path.ts +++ b/packages/cli/src/helpers/path.ts @@ -15,7 +15,7 @@ export async function getDirComponentRequiredFiles !dir.includes(filename)) + return componentObject.files.filter((filename) => !dir.includes(filename)) } export async function checkComponentInstalled(component: RegistryComponent, config: ResolvedConfig): Promise {