Skip to content

[FSSDK-12933] Refactor message generator to use TS compiler API#1170

Merged
raju-opti merged 2 commits into
masterfrom
raju/msgen-refactor
Jul 21, 2026
Merged

[FSSDK-12933] Refactor message generator to use TS compiler API#1170
raju-opti merged 2 commits into
masterfrom
raju/msgen-refactor

Conversation

@raju-opti

Copy link
Copy Markdown
Contributor

Summary

Replace the dynamic-import-based message_generator.ts with a static TS-parser approach (scripts/generate-messages.js) that preserves declaration order and eliminates the jiti runtime dependency. Add a test script and CI job for the generator.

Test plan

  • added test for the new script

Issues

  • FSSDK-12933

Replace the dynamic-import-based message_generator.ts with a static
TS-parser approach (scripts/generate-messages.js) that preserves
declaration order and eliminates the jiti runtime dependency. Add a
test script and CI job for the generator.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@raju-opti
raju-opti force-pushed the raju/msgen-refactor branch from 6967e76 to 1da4773 Compare July 21, 2026 14:06
@coveralls

coveralls commented Jul 21, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 77.725%. remained the same — raju/msgen-refactor into master

@junaed-optimizely junaed-optimizely left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one minor concern!

@@ -0,0 +1,121 @@
#!/usr/bin/env node

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#! is UNIX only! Not that it matters a lot but build:win could potentially be broken for this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. But other scripts are also using this currently. Windows build is relevant only for devs' local machine, but we can use wsl nowadays. We can come back and fix the windows build later if needed

@raju-opti
raju-opti merged commit a3857a0 into master Jul 21, 2026
23 of 26 checks passed
@raju-opti
raju-opti deleted the raju/msgen-refactor branch July 21, 2026 16:47
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.

3 participants