-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ast_tools): output typescript to a separate package (#6755)
Part of #6347. Moves typescript logic from derive_estree into a new ast_tools generator.
- Loading branch information
Showing
30 changed files
with
2,406 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains 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 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 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,54 @@ | ||
name: Release @oxc/types | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- npm/oxc-types/package.json # Please only commit this file, so we don't need to wait for all the other CI jobs to finish. | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
name: Check version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
version_changed: ${{ steps.version.outputs.changed }} | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- name: Check version changes | ||
uses: EndBug/version-check@v2 | ||
id: version | ||
with: | ||
static-checking: localIsNew | ||
file-url: https://unpkg.com/@oxc/types/package.json | ||
file-name: npm/oxc-types/package.json | ||
|
||
- name: Set version name | ||
if: steps.version.outputs.changed == 'true' | ||
run: | | ||
echo "Version change found! New version: ${{ steps.version.outputs.version }} (${{ steps.version.outputs.version_type }})" | ||
build: | ||
needs: check | ||
if: needs.check.outputs.version_changed == 'true' | ||
name: Release @oxc/types | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write # for `pnpm publish --provenance` | ||
steps: | ||
- uses: taiki-e/checkout-action@v1 | ||
|
||
- uses: ./.github/actions/pnpm | ||
|
||
- name: Publish | ||
working-directory: npm/oxc-types | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: pnpm publish --provenance --access public |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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,32 @@ | ||
export interface FormalParameterRest extends Span { | ||
type: 'RestElement'; | ||
argument: BindingPatternKind; | ||
typeAnnotation: TSTypeAnnotation | null; | ||
optional: boolean; | ||
} | ||
|
||
export type RegExpFlags = { | ||
/** Global flag */ | ||
G: 1; | ||
/** Ignore case flag */ | ||
I: 2; | ||
/** Multiline flag */ | ||
M: 4; | ||
/** DotAll flag */ | ||
S: 8; | ||
/** Unicode flag */ | ||
U: 16; | ||
/** Sticky flag */ | ||
Y: 32; | ||
/** Indices flag */ | ||
D: 64; | ||
/** Unicode sets flag */ | ||
V: 128; | ||
}; | ||
|
||
export type JSXElementName = | ||
| JSXIdentifier | ||
| JSXNamespacedName | ||
| JSXMemberExpression; | ||
|
||
export type JSXMemberExpressionObject = JSXIdentifier | JSXMemberExpression; |
This file contains 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.