From 45e2eccb114793aff3f4d41c7bcf5bd83b5dead3 Mon Sep 17 00:00:00 2001 From: "Huu Le (Lee)" <39040748+leehuwuj@users.noreply.github.com> Date: Wed, 27 Mar 2024 16:47:20 +0700 Subject: [PATCH] add filter for copy data files (#25) --- helpers/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helpers/index.ts b/helpers/index.ts index 79ba8dc0..fe57ac5c 100644 --- a/helpers/index.ts +++ b/helpers/index.ts @@ -138,7 +138,10 @@ export const installTemplate = async ( if (props.dataSources.length > 0) { console.log("\nGenerating context data...\n"); - await copyContextData(props.root, props.dataSources); + await copyContextData( + props.root, + props.dataSources.filter((ds) => ds.type === "file"), + ); if ( props.postInstallAction === "runApp" || props.postInstallAction === "dependencies" -- GitLab