Skip to content

Commit c65d431

Browse files
authored
chore: remove TypeScript (#295)
Closes #293
1 parent 4d773e0 commit c65d431

File tree

452 files changed

+2
-70419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+2
-70419
lines changed

.github/workflows/api_ci.yml

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
- "tools/api_tools/**"
1313
- "crates/algod_client/**"
1414
- "crates/indexer_client/**"
15-
- "packages/typescript/**"
1615
- ".github/workflows/api_ci.yml"
1716
pull_request:
1817
branches:
@@ -22,7 +21,6 @@ on:
2221
- "tools/api_tools/**"
2322
- "crates/algod_client/**"
2423
- "crates/indexer_client/**"
25-
- "packages/typescript/**"
2624
- ".github/workflows/api_ci.yml"
2725
workflow_dispatch:
2826

@@ -72,74 +70,3 @@ jobs:
7270
- name: Verify generated code compiles
7371
run: cargo check --manifest-path Cargo.toml -p ${{ matrix.client }}_client
7472

75-
ts_api_client_generation:
76-
runs-on: ubuntu-latest
77-
needs: oas_lint_and_test
78-
strategy:
79-
matrix:
80-
client: [algod, indexer, kmd]
81-
include:
82-
- client: algod
83-
package_dir: packages/typescript/algod_client
84-
package_subdir: algod_client
85-
workspace: "@algorandfoundation/algod-client"
86-
algokit_utils_test_filter: tests/algod
87-
- client: indexer
88-
package_dir: packages/typescript/indexer_client
89-
package_subdir: indexer_client
90-
workspace: "@algorandfoundation/indexer-client"
91-
algokit_utils_test_filter: tests/indexer
92-
- client: kmd
93-
package_dir: packages/typescript/kmd_client
94-
package_subdir: kmd_client
95-
workspace: "@algorandfoundation/kmd-client"
96-
algokit_utils_test_filter: tests/kmd
97-
steps:
98-
- uses: actions/checkout@v4
99-
- uses: ./.github/actions/setup-api-tools
100-
with:
101-
setup_algokit: "true"
102-
- uses: actions/setup-node@v5
103-
with:
104-
node-version: "22"
105-
cache: "npm"
106-
cache-dependency-path: packages/typescript/package-lock.json
107-
108-
- name: Install TypeScript workspace dependencies
109-
working-directory: packages/typescript
110-
run: npm ci
111-
112-
- name: Generate ${{ matrix.client }} TypeScript API client
113-
run: cargo api generate-ts-${{ matrix.client }}
114-
115-
- name: Check output stability
116-
run: |
117-
git add -N ${{ matrix.package_dir }}
118-
if ! git diff --exit-code --minimal ${{ matrix.package_dir }}; then
119-
echo "❌ Generated ${{ matrix.client }} TypeScript client differs from committed version."
120-
echo "🔧 To fix: run 'cargo api generate-ts-${{ matrix.client }}' locally and commit the changes."
121-
exit 1
122-
fi
123-
124-
- name: Prettier check
125-
working-directory: packages/typescript
126-
run: npx --yes prettier --check ${{ matrix.package_subdir }}
127-
128-
- name: Lint generated client
129-
working-directory: packages/typescript
130-
run: npm run lint --workspace ${{ matrix.workspace }}
131-
132-
- name: Build workspace
133-
working-directory: packages/typescript
134-
run: |
135-
npm run build
136-
137-
- name: Update package links after build
138-
working-directory: packages/typescript
139-
run: |
140-
# Re-install to ensure dist folders are properly linked
141-
npm install --prefer-offline --no-audit --no-fund
142-
143-
- name: Test generated client
144-
working-directory: packages/typescript
145-
run: npm test --workspace @algorandfoundation/algokit-utils -- ${{ matrix.algokit_utils_test_filter }}

api/README.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -79,33 +79,6 @@ The generated Rust clients will be available at:
7979
- `../crates/indexer_client/`
8080
- `../crates/kmd_client/`
8181

82-
### Generate TypeScript API Clients
83-
84-
Generate all TypeScript API clients using the TypeScript generator:
85-
86-
```bash
87-
cargo api generate-ts-all
88-
```
89-
90-
Generate individual clients:
91-
92-
```bash
93-
# Generate algod client only
94-
cargo api generate-ts-algod
95-
96-
# Generate indexer client only
97-
cargo api generate-ts-indexer
98-
99-
# Generate kmd client only
100-
cargo api generate-ts-kmd
101-
```
102-
103-
The generated TypeScript clients will be available at:
104-
105-
- `../packages/typescript/algod_client/`
106-
- `../packages/typescript/indexer_client/`
107-
- `../packages/typescript/kmd_client/`
108-
10982
### Development Scripts
11083

11184
```bash

api/oas_generator/ts_oas_generator/__init__.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

api/oas_generator/ts_oas_generator/cli.py

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)