-
Notifications
You must be signed in to change notification settings - Fork 113
update d.ts and .js files #1687
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ec0ba70
update d.ts and .js files
summeroff b0e915d
restore module.ts
summeroff b2787ee
Potential fix for pull request finding 'CodeQL / Workflow does not co…
summeroff 98001b9
Potential fix for pull request finding
summeroff 94f86aa
restore module.ts
summeroff 65c9163
convert const enums to regular enums
summeroff bcbd8b6
address PR review feedback on generated JS surface
summeroff d09f509
revert const enum -> regular enum conversion
summeroff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Check Generated JS | ||
|
|
||
| on: | ||
| push: | ||
| paths-ignore: ['**.md'] | ||
| branches-ignore: [staging] | ||
| pull_request: | ||
| paths-ignore: ['**.md'] | ||
| branches-ignore: [staging] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check-js-generated: | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20.x' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| corepack enable | ||
| corepack prepare yarn@4.14.1 --activate | ||
| yarn install --immutable | ||
|
|
||
| - name: Regenerate js/ outputs | ||
| run: yarn run build:javascript | ||
|
|
||
| - name: Fail if generated files are stale | ||
| run: ./ci/check-js-generated.sh | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #!/bin/bash | ||
| # Verify that the committed tsc outputs under js/ match what regenerating | ||
| # from js/module.ts would produce. CI runs `yarn build:javascript` first, | ||
| # so any change under js/ at this point is a stale generated file. | ||
| set -euo pipefail | ||
|
|
||
| dirty=$(git status --porcelain -- js/) | ||
|
|
||
| if [[ $dirty ]]; then | ||
|
summeroff marked this conversation as resolved.
Comment on lines
+1
to
+9
|
||
| echo "=================================================" | ||
| echo "Generated JS files are stale. Run locally:" | ||
| echo " yarn build:javascript" | ||
| echo "and commit the regenerated files." | ||
| echo "" | ||
| echo "Stale files:" | ||
| echo "$dirty" | ||
| echo "=================================================" | ||
| exit 1 | ||
| fi | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.