-
Notifications
You must be signed in to change notification settings - Fork 2
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
FEI-4957.7: Generate .js.flow files from .d.ts files #529
Conversation
🦋 Changeset detectedLatest commit: 42c88ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
GeraldRequired Reviewers
Don't want to be involved in this pull request? Comment |
Size Change: 0 B Total Size: 4.36 kB ℹ️ View Unchanged
|
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #529 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 59 59
Lines 845 843 -2
Branches 233 224 -9
=========================================
- Hits 845 843 -2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! I bet we'll want to use that gen-flow-types.ts in wonder-blocks and perseus, too!
a6152d6
to
faf05a6
Compare
58fbf40
to
c0c606e
Compare
faf05a6
to
dc95691
Compare
c0c606e
to
695f26e
Compare
dc95691
to
cdec808
Compare
695f26e
to
81ba228
Compare
cdec808
to
35eac00
Compare
81ba228
to
37c5f87
Compare
35eac00
to
07c827d
Compare
37c5f87
to
29374c8
Compare
29374c8
to
42c88ea
Compare
Summary:
We want to generate .js.flow files from our .d.ts files so that wonder-stuff packages can be used in codebases that are still using Flow. This PR adds a build script to run flowgen on each .d.ts file in the dist folder of each package.
It also adds a script for removing .d.ts files that were generated from .test.ts files. Both scripts are written in TypeScript and use swc-node/register to run. I've added package.json scripts to make this easier. I'll research this further to see if there's a nice shebang approach we can use in the future, but this should suffice for now.
Issue: FEI-4957
Test plan: