Skip to content

Commit

Permalink
Exclude */tests/* from generate_sdk_index.sh (#1724)
Browse files Browse the repository at this point in the history
We moved the tests in to a folder, let's not export the helper scripts
  • Loading branch information
texuf authored Dec 5, 2024
1 parent 917e290 commit f33ee1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_sdk_index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit f33ee1e

Please sign in to comment.