From f33ee1e47ee363a5e9f4c33c82a75c369d5d3fc0 Mon Sep 17 00:00:00 2001 From: texuf Date: Wed, 4 Dec 2024 16:48:37 -0800 Subject: [PATCH] Exclude */tests/* from generate_sdk_index.sh (#1724) We moved the tests in to a folder, let's not export the helper scripts --- scripts/generate_sdk_index.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_sdk_index.sh b/scripts/generate_sdk_index.sh index c92d6a7d3..5ccdd59b3 100755 --- a/scripts/generate_sdk_index.sh +++ b/scripts/generate_sdk_index.sh @@ -27,7 +27,7 @@ for dir in "${dirs[@]}"; do # Loop through each TypeScript file to append an export statement to the array # Skip files that have ".test." in their name, the existing index.ts file, and directories - for file in $(find . -type f \( -name "*.ts" -o -name "*.tsx" \) ! -name "*.test*" ! -name "*.d.ts" ! -name "index.ts" ! -path "*/internals/*" | sort); do + for file in $(find . -type f \( -name "*.ts" -o -name "*.tsx" \) ! -name "*.test*" ! -name "*.d.ts" ! -name "index.ts" ! -path "*/tests/*" ! -path "*/internals/*" | sort); do # Remove the './' prefix and '.tsx' or '.ts' suffix from the file path file_without_slash=${file#./} file_without_tsx=${file_without_slash%.tsx}