Skip to content

fix(build): Skip flags file when building integration bundles #4906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/integrations/scripts/buildBundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ for filepath in ./src/*; do

file=$(basename $filepath)

# the index file is only there for the purposes of npm builds - for the CDN we create a separate bundle for each
# integration - so we can skip it here
if [[ $file == "index.ts" ]]; then
# The index file is only there for the purposes of npm builds (for the CDN we create a separate bundle for each
# integration) and the flags file is just a helper for including or not including debug logging, whose contents gets
# incorporated into each of the individual integration bundles, so we can skip them both here.
if [[ $file == "index.ts" || $file == "flags.ts" ]]; then
continue
fi

Expand Down