Skip to content

fix(ci): add --esm flag to tsx to support top-level await in CI runner#60

Merged
MagPasulke merged 2 commits into
mainfrom
fix/deploy-sap-top-level-await
May 30, 2026
Merged

fix(ci): add --esm flag to tsx to support top-level await in CI runner#60
MagPasulke merged 2 commits into
mainfrom
fix/deploy-sap-top-level-await

Conversation

@MagPasulke
Copy link
Copy Markdown
Owner

Fix

The deploy-sap workflow failed on first run:

Top-level await is currently not supported with the "cjs" output format

tsx defaults to CJS output. scripts/adt-gitpull-ci.ts uses top-level await, which requires ESM. Adding --esm forces ESM output.

One-character change in .github/workflows/deploy-sap.yml.

tsx defaults to CJS output which does not support top-level await.
Passing --esm forces ESM output where top-level await is valid.
@MagPasulke MagPasulke merged commit 5e0b1ed into main May 30, 2026
1 check passed
@MagPasulke MagPasulke deleted the fix/deploy-sap-top-level-await branch May 30, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant