Skip to content

Commit

Permalink
add filter for copy data files (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
leehuwuj authored Mar 27, 2024
1 parent b38adf8 commit 45e2ecc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 45e2ecc

Please sign in to comment.