From 7922b9c4e763f746f0071a37019ec8d906f0a873 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 07:17:41 -0700 Subject: [PATCH 1/8] [bfops/typescript-sdk-ci]: fix up sdks/typescript/.github --- .../.github => .github}/workflows/cr.yml | 4 ++- .../.github => .github}/workflows/lint.yml | 6 ++-- .../.github => .github}/workflows/release.yml | 4 ++- .../.github => .github}/workflows/test.yml | 29 ++++++++----------- .../.github/pull_request_template.md | 19 ------------ .../.github/spacetimedb-version.txt | 1 - sdks/typescript/DEVELOP.md | 4 +++ sdks/typescript/README.md | 2 +- 8 files changed, 27 insertions(+), 42 deletions(-) rename {sdks/typescript/.github => .github}/workflows/cr.yml (77%) rename {sdks/typescript/.github => .github}/workflows/lint.yml (86%) rename {sdks/typescript/.github => .github}/workflows/release.yml (80%) rename {sdks/typescript/.github => .github}/workflows/test.yml (83%) delete mode 100644 sdks/typescript/.github/pull_request_template.md delete mode 100644 sdks/typescript/.github/spacetimedb-version.txt diff --git a/sdks/typescript/.github/workflows/cr.yml b/.github/workflows/cr.yml similarity index 77% rename from sdks/typescript/.github/workflows/cr.yml rename to .github/workflows/cr.yml index 01353168c40..6470218be3c 100644 --- a/sdks/typescript/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -1,4 +1,4 @@ -name: Continuous Releases +name: TypeScript - Continuous Releases on: [push, pull_request] @@ -18,7 +18,9 @@ jobs: run_install: true - name: Build + working-directory: sdks/typescript run: pnpm compile - name: Release + working-directory: sdks/typescript run: cd packages/sdk && pnpm dlx pkg-pr-new publish --compact --pnpm diff --git a/sdks/typescript/.github/workflows/lint.yml b/.github/workflows/lint.yml similarity index 86% rename from sdks/typescript/.github/workflows/lint.yml rename to .github/workflows/lint.yml index 8adf4aa22aa..72c1f153f02 100644 --- a/sdks/typescript/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,10 +1,10 @@ -name: Lint +name: TypeScript - Lint on: pull_request: push: branches: - - main + - master jobs: build: @@ -25,6 +25,7 @@ jobs: run_install: true - name: Get pnpm store directory + working-directory: sdks/typescript shell: bash run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV @@ -38,4 +39,5 @@ jobs: ${{ runner.os }}-pnpm-store- - name: Lint + working-directory: sdks/typescript run: pnpm lint diff --git a/sdks/typescript/.github/workflows/release.yml b/.github/workflows/release.yml similarity index 80% rename from sdks/typescript/.github/workflows/release.yml rename to .github/workflows/release.yml index 5f97085ad9f..0e4a21eab00 100644 --- a/sdks/typescript/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,8 @@ -name: Publish +name: TypeScript - Publish on: push: branches: + # We leave this as `main` because it will only actually run in the mirrored repository (spacetimedb-typescript-sdk) for now. - 'main' concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -29,6 +30,7 @@ jobs: cache: 'pnpm' - run: pnpm compile + working-directory: sdks/typescript - name: Create Release Pull Request or Publish id: changesets diff --git a/sdks/typescript/.github/workflows/test.yml b/.github/workflows/test.yml similarity index 83% rename from sdks/typescript/.github/workflows/test.yml rename to .github/workflows/test.yml index 4a55076fcb0..06317e94d05 100644 --- a/sdks/typescript/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,9 +1,8 @@ -name: Tests +name: TypeScript - Tests on: push: branches: - - main - master pull_request: @@ -27,6 +26,7 @@ jobs: - name: Get pnpm store directory shell: bash + working-directory: sdks/typescript run: | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV @@ -39,10 +39,11 @@ jobs: ${{ runner.os }}-pnpm-store- - name: Compile + working-directory: sdks/typescript run: pnpm compile - name: Run sdk tests - working-directory: packages/sdk + working-directory: sdks/typescript/packages/sdk run: pnpm test # - name: Extract SpacetimeDB branch name from file @@ -70,26 +71,19 @@ jobs: # echo "branch=$branch" >> $GITHUB_OUTPUT # echo "Using SpacetimeDB branch from file: $branch" - - name: Checkout SpacetimeDB - uses: actions/checkout@v4 - with: - repository: clockworklabs/SpacetimeDB - # ref: ${{ steps.extract-branch.outputs.branch }} - path: SpacetimeDB - - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable - name: Cache Rust dependencies uses: Swatinem/rust-cache@v2 with: - workspaces: SpacetimeDB/modules/quickstart-chat + workspaces: modules/quickstart-chat shared-key: quickstart-chat-test - name: Install SpacetimeDB CLI from the local checkout run: | - cargo install --force --path SpacetimeDB/crates/cli --locked --message-format=short - cargo install --force --path SpacetimeDB/crates/standalone --locked --message-format=short + cargo install --force --path crates/cli --locked --message-format=short + cargo install --force --path crates/standalone --locked --message-format=short # Add a handy alias using the old binary name, so that we don't have to rewrite all scripts (incl. in submodules). rm -f $HOME/.cargo/bin/spacetime ln -s $HOME/.cargo/bin/spacetimedb-cli $HOME/.cargo/bin/spacetime @@ -97,15 +91,16 @@ jobs: spacetime server clear -y env: # Share the target directory with our local project to avoid rebuilding same SpacetimeDB crates twice. - CARGO_TARGET_DIR: SpacetimeDB/modules/quickstart-chat/target + CARGO_TARGET_DIR: modules/quickstart-chat/target - name: Generate client bindings - working-directory: SpacetimeDB/modules/quickstart-chat + working-directory: modules/quickstart-chat run: | - spacetime generate --lang typescript --out-dir ../../../examples/quickstart-chat/src/module_bindings + spacetime generate --lang typescript --out-dir ../../sdks/typescript/examples/quickstart-chat/src/module_bindings pnpm lint --write - name: Check for changes + working-directory: sdks/typescript run: | # This was copied from SpacetimeDB/tools/check-diff.sh. # It's required because `spacetime generate` creates lines with the SpacetimeDB commit @@ -133,7 +128,7 @@ jobs: # spacetime logs quickstart-chat - name: Check that quickstart-chat builds - working-directory: examples/quickstart-chat + working-directory: sdks/typescript/examples/quickstart-chat run: pnpm build # - name: Run quickstart-chat tests diff --git a/sdks/typescript/.github/pull_request_template.md b/sdks/typescript/.github/pull_request_template.md deleted file mode 100644 index 4b7720bd2d4..00000000000 --- a/sdks/typescript/.github/pull_request_template.md +++ /dev/null @@ -1,19 +0,0 @@ -## Description of Changes - -_Describe what has been changed, any new features or bug fixes_ - -## API - -- [ ] This is an API breaking change to the SDK - -_If the API is breaking, please state below what will break_ - -## Requires SpacetimeDB PRs - -_List any PRs here that are required for this SDK change to work_ - -## Testing - -_Write instructions for a test that you performed for this PR_ - -- [ ] Describe a test for this PR that you have completed diff --git a/sdks/typescript/.github/spacetimedb-version.txt b/sdks/typescript/.github/spacetimedb-version.txt deleted file mode 100644 index 1f7391f92b6..00000000000 --- a/sdks/typescript/.github/spacetimedb-version.txt +++ /dev/null @@ -1 +0,0 @@ -master diff --git a/sdks/typescript/DEVELOP.md b/sdks/typescript/DEVELOP.md index f01377803f1..aa816cc06f0 100644 --- a/sdks/typescript/DEVELOP.md +++ b/sdks/typescript/DEVELOP.md @@ -1,3 +1,7 @@ +# Migration note + +We are in the process of moving from the `spacetimedb-typescript-sdk` repo to the `sdks/typescript` subdirectory of [SpacetimeDB](https://github.com/clockworklabs/SpacetimeDB). **Any new changes should be made there**. Apologies in advance for any sharp edges while the migration is in progress. + # Notes for maintainers The directory `packages/sdk/src/client_api` is generated from [the SpacetimeDB client-api-messages](https://github.com/clockworklabs/SpacetimeDB/tree/master/crates/client-api-messages). diff --git a/sdks/typescript/README.md b/sdks/typescript/README.md index 23a253890e0..264f89a3612 100644 --- a/sdks/typescript/README.md +++ b/sdks/typescript/README.md @@ -1,3 +1,3 @@ `@clockworklabs/spacetimedb-sdk` is a TypeScript SDK for SpacetimeDB. -Source code can be found here on [GitHub](https://github.com/clockworklabs/spacetimedb-typescript-sdk/blob/main/packages/sdk). +Source code can be found here on [GitHub](https://github.com/clockworklabs/SpacetimeDB/blob/master/sdks/typescript/packages/sdk). From f5543341a0b926e090c9e22ef70c52279e0990bd Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 07:31:24 -0700 Subject: [PATCH 2/8] [bfops/typescript-sdk-ci]: fix CI --- .github/workflows/test.yml | 141 ------------------ .../typescript/.github}/workflows/cr.yml | 4 +- sdks/typescript/.github/workflows/release.yml | 40 +++++ 3 files changed, 41 insertions(+), 144 deletions(-) delete mode 100644 .github/workflows/test.yml rename {.github => sdks/typescript/.github}/workflows/cr.yml (77%) create mode 100644 sdks/typescript/.github/workflows/release.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 06317e94d05..00000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,141 +0,0 @@ -name: TypeScript - Tests - -on: - push: - branches: - - master - pull_request: - -jobs: - compile-and-test: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - - - uses: pnpm/action-setup@v4 - with: - version: 9.7 - run_install: true - - - name: Get pnpm store directory - shell: bash - working-directory: sdks/typescript - run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - - uses: actions/cache@v4 - name: Setup pnpm cache - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - - name: Compile - working-directory: sdks/typescript - run: pnpm compile - - - name: Run sdk tests - working-directory: sdks/typescript/packages/sdk - run: pnpm test - - # - name: Extract SpacetimeDB branch name from file - # id: extract-branch - # run: | - # # Define the path to the branch file - # BRANCH_FILE=".github/spacetimedb-branch.txt" - - # # Default to master if file doesn't exist - # if [ ! -f "$BRANCH_FILE" ]; then - # echo "::notice::No SpacetimeDB branch file found, using 'master'" - # echo "branch=master" >> $GITHUB_OUTPUT - # exit 0 - # fi - - # # Read and trim whitespace from the file - # branch=$(cat "$BRANCH_FILE" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') - - # # Fallback to master if empty - # if [ -z "$branch" ]; then - # echo "::warning::SpacetimeDB branch file is empty, using 'master'" - # branch="master" - # fi - - # echo "branch=$branch" >> $GITHUB_OUTPUT - # echo "Using SpacetimeDB branch from file: $branch" - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - - - name: Cache Rust dependencies - uses: Swatinem/rust-cache@v2 - with: - workspaces: modules/quickstart-chat - shared-key: quickstart-chat-test - - - name: Install SpacetimeDB CLI from the local checkout - run: | - cargo install --force --path crates/cli --locked --message-format=short - cargo install --force --path crates/standalone --locked --message-format=short - # Add a handy alias using the old binary name, so that we don't have to rewrite all scripts (incl. in submodules). - rm -f $HOME/.cargo/bin/spacetime - ln -s $HOME/.cargo/bin/spacetimedb-cli $HOME/.cargo/bin/spacetime - # Clear any existing information - spacetime server clear -y - env: - # Share the target directory with our local project to avoid rebuilding same SpacetimeDB crates twice. - CARGO_TARGET_DIR: modules/quickstart-chat/target - - - name: Generate client bindings - working-directory: modules/quickstart-chat - run: | - spacetime generate --lang typescript --out-dir ../../sdks/typescript/examples/quickstart-chat/src/module_bindings - pnpm lint --write - - - name: Check for changes - working-directory: sdks/typescript - run: | - # This was copied from SpacetimeDB/tools/check-diff.sh. - # It's required because `spacetime generate` creates lines with the SpacetimeDB commit - # version, which would make this `git diff` check very brittle if included. - PATTERN='^// This was generated using spacetimedb cli version.*' - if ! git diff --exit-code --ignore-matching-lines="$PATTERN" -- examples/quickstart-chat/src/module_bindings; then - echo "Error: Bindings are dirty. Please generate bindings again and commit them to this branch." - exit 1 - fi - - # - name: Start SpacetimeDB - # run: | - # spacetime start & - # disown - - # - name: Publish module to SpacetimeDB - # working-directory: SpacetimeDB/modules/quickstart-chat - # run: | - # spacetime logout && spacetime login --server-issued-login local - # spacetime publish -s local quickstart-chat -c -y - - # - name: Publish module to SpacetimeDB - # working-directory: SpacetimeDB/modules/quickstart-chat - # run: | - # spacetime logs quickstart-chat - - - name: Check that quickstart-chat builds - working-directory: sdks/typescript/examples/quickstart-chat - run: pnpm build - - # - name: Run quickstart-chat tests - # working-directory: examples/quickstart-chat - # run: pnpm test - # - # # Run this step always, even if the previous steps fail - # - name: Print rows in the user table - # if: always() - # run: spacetime sql quickstart-chat "SELECT * FROM user" diff --git a/.github/workflows/cr.yml b/sdks/typescript/.github/workflows/cr.yml similarity index 77% rename from .github/workflows/cr.yml rename to sdks/typescript/.github/workflows/cr.yml index 6470218be3c..01353168c40 100644 --- a/.github/workflows/cr.yml +++ b/sdks/typescript/.github/workflows/cr.yml @@ -1,4 +1,4 @@ -name: TypeScript - Continuous Releases +name: Continuous Releases on: [push, pull_request] @@ -18,9 +18,7 @@ jobs: run_install: true - name: Build - working-directory: sdks/typescript run: pnpm compile - name: Release - working-directory: sdks/typescript run: cd packages/sdk && pnpm dlx pkg-pr-new publish --compact --pnpm diff --git a/sdks/typescript/.github/workflows/release.yml b/sdks/typescript/.github/workflows/release.yml new file mode 100644 index 00000000000..5f97085ad9f --- /dev/null +++ b/sdks/typescript/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Publish +on: + push: + branches: + - 'main' + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + packages: write + pull-requests: write + issues: read + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9.7 + run_install: true + + - uses: actions/setup-node@v4 + with: + node-version: 18.x + cache: 'pnpm' + + - run: pnpm compile + + - name: Create Release Pull Request or Publish + id: changesets + uses: changesets/action@v1 + with: + publish: pnpm run ci:release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From 273bcf5d51bb93bbe19182200284c66dffe85a24 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 07:37:06 -0700 Subject: [PATCH 3/8] [bfops/typescript-sdk-ci]: add back test.yml --- .github/workflows/test.yml | 141 +++++++++++++++++++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000000..06317e94d05 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,141 @@ +name: TypeScript - Tests + +on: + push: + branches: + - master + pull_request: + +jobs: + compile-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - uses: pnpm/action-setup@v4 + with: + version: 9.7 + run_install: true + + - name: Get pnpm store directory + shell: bash + working-directory: sdks/typescript + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Compile + working-directory: sdks/typescript + run: pnpm compile + + - name: Run sdk tests + working-directory: sdks/typescript/packages/sdk + run: pnpm test + + # - name: Extract SpacetimeDB branch name from file + # id: extract-branch + # run: | + # # Define the path to the branch file + # BRANCH_FILE=".github/spacetimedb-branch.txt" + + # # Default to master if file doesn't exist + # if [ ! -f "$BRANCH_FILE" ]; then + # echo "::notice::No SpacetimeDB branch file found, using 'master'" + # echo "branch=master" >> $GITHUB_OUTPUT + # exit 0 + # fi + + # # Read and trim whitespace from the file + # branch=$(cat "$BRANCH_FILE" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') + + # # Fallback to master if empty + # if [ -z "$branch" ]; then + # echo "::warning::SpacetimeDB branch file is empty, using 'master'" + # branch="master" + # fi + + # echo "branch=$branch" >> $GITHUB_OUTPUT + # echo "Using SpacetimeDB branch from file: $branch" + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Cache Rust dependencies + uses: Swatinem/rust-cache@v2 + with: + workspaces: modules/quickstart-chat + shared-key: quickstart-chat-test + + - name: Install SpacetimeDB CLI from the local checkout + run: | + cargo install --force --path crates/cli --locked --message-format=short + cargo install --force --path crates/standalone --locked --message-format=short + # Add a handy alias using the old binary name, so that we don't have to rewrite all scripts (incl. in submodules). + rm -f $HOME/.cargo/bin/spacetime + ln -s $HOME/.cargo/bin/spacetimedb-cli $HOME/.cargo/bin/spacetime + # Clear any existing information + spacetime server clear -y + env: + # Share the target directory with our local project to avoid rebuilding same SpacetimeDB crates twice. + CARGO_TARGET_DIR: modules/quickstart-chat/target + + - name: Generate client bindings + working-directory: modules/quickstart-chat + run: | + spacetime generate --lang typescript --out-dir ../../sdks/typescript/examples/quickstart-chat/src/module_bindings + pnpm lint --write + + - name: Check for changes + working-directory: sdks/typescript + run: | + # This was copied from SpacetimeDB/tools/check-diff.sh. + # It's required because `spacetime generate` creates lines with the SpacetimeDB commit + # version, which would make this `git diff` check very brittle if included. + PATTERN='^// This was generated using spacetimedb cli version.*' + if ! git diff --exit-code --ignore-matching-lines="$PATTERN" -- examples/quickstart-chat/src/module_bindings; then + echo "Error: Bindings are dirty. Please generate bindings again and commit them to this branch." + exit 1 + fi + + # - name: Start SpacetimeDB + # run: | + # spacetime start & + # disown + + # - name: Publish module to SpacetimeDB + # working-directory: SpacetimeDB/modules/quickstart-chat + # run: | + # spacetime logout && spacetime login --server-issued-login local + # spacetime publish -s local quickstart-chat -c -y + + # - name: Publish module to SpacetimeDB + # working-directory: SpacetimeDB/modules/quickstart-chat + # run: | + # spacetime logs quickstart-chat + + - name: Check that quickstart-chat builds + working-directory: sdks/typescript/examples/quickstart-chat + run: pnpm build + + # - name: Run quickstart-chat tests + # working-directory: examples/quickstart-chat + # run: pnpm test + # + # # Run this step always, even if the previous steps fail + # - name: Print rows in the user table + # if: always() + # run: spacetime sql quickstart-chat "SELECT * FROM user" From 21a57e3a9f1993443f9ab2a3e77ea973e7f3204d Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 07:40:18 -0700 Subject: [PATCH 4/8] [bfops/typescript-sdk-ci]: remove --- .github/workflows/release.yml | 42 ----------------------------------- 1 file changed, 42 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 0e4a21eab00..00000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: TypeScript - Publish -on: - push: - branches: - # We leave this as `main` because it will only actually run in the mirrored repository (spacetimedb-typescript-sdk) for now. - - 'main' - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - id-token: write - contents: write - packages: write - pull-requests: write - issues: read - steps: - - uses: actions/checkout@v4 - - - uses: pnpm/action-setup@v4 - with: - version: 9.7 - run_install: true - - - uses: actions/setup-node@v4 - with: - node-version: 18.x - cache: 'pnpm' - - - run: pnpm compile - working-directory: sdks/typescript - - - name: Create Release Pull Request or Publish - id: changesets - uses: changesets/action@v1 - with: - publish: pnpm run ci:release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From c11878b8976d9e2c30a80f8d96f64b341961aed3 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 07:49:10 -0700 Subject: [PATCH 5/8] [bfops/typescript-sdk-ci]: change URLs --- sdks/typescript/.changeset/config.json | 2 +- sdks/typescript/packages/sdk/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/typescript/.changeset/config.json b/sdks/typescript/.changeset/config.json index 362ba234a2e..1aa0b7611c3 100644 --- a/sdks/typescript/.changeset/config.json +++ b/sdks/typescript/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "clockworklabs/spacetimedb-typescript-sdk" } + { "repo": "clockworklabs/SpacetimeDB" } ], "commit": false, "fixed": [], diff --git a/sdks/typescript/packages/sdk/package.json b/sdks/typescript/packages/sdk/package.json index 6b675b00371..2453af7aba6 100644 --- a/sdks/typescript/packages/sdk/package.json +++ b/sdks/typescript/packages/sdk/package.json @@ -30,7 +30,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/clockworklabs/spacetimedb-typescript-sdk" + "url": "https://github.com/clockworklabs/SpacetimeDB" }, "publishConfig": { "provenance": true From 3050560e7151968ac246fb57d01524d41641ca7b Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 08:17:03 -0700 Subject: [PATCH 6/8] [bfops/typescript-sdk-ci]: README --- modules/quickstart-chat/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/quickstart-chat/README.md b/modules/quickstart-chat/README.md index 805758f2e6e..33cefe667eb 100644 --- a/modules/quickstart-chat/README.md +++ b/modules/quickstart-chat/README.md @@ -20,5 +20,5 @@ and described by [the SpacetimeDB C# SDK quickstart](https://spacetimedb.com/doc ### TypeScript A web client for this module, built with TypeScript and React, is defined -in [the TypeScript SDK's examples](https://github.com/clockworklabs/spacetimedb-typescript-sdk/tree/main/examples/quickstart-chat), +in [the TypeScript SDK's examples](https://github.com/clockworklabs/SpacetimeDB/tree/master/sdks/typescript/examples/quickstart-chat), and described by [the SpacetimeDB TypeScript SDK quickstart](https://spacetimedb.com/docs/sdks/typescript/quickstart). From 147a78518f6b203ec83a7ad6f8ce2db943ad59f1 Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 08:35:01 -0700 Subject: [PATCH 7/8] [bfops/typescript-sdk-ci]: Fix generate bindings step --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06317e94d05..a73cda9a87e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,6 +97,7 @@ jobs: working-directory: modules/quickstart-chat run: | spacetime generate --lang typescript --out-dir ../../sdks/typescript/examples/quickstart-chat/src/module_bindings + cd ../../sdks/typescript pnpm lint --write - name: Check for changes From 5b78c01c8d9ab5296d10691f869852548238b51e Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Wed, 16 Jul 2025 10:55:07 -0700 Subject: [PATCH 8/8] [bfops/typescript-sdk-ci]: revert --- sdks/typescript/DEVELOP.md | 2 +- sdks/typescript/packages/sdk/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdks/typescript/DEVELOP.md b/sdks/typescript/DEVELOP.md index aa816cc06f0..a533def1b55 100644 --- a/sdks/typescript/DEVELOP.md +++ b/sdks/typescript/DEVELOP.md @@ -1,6 +1,6 @@ # Migration note -We are in the process of moving from the `spacetimedb-typescript-sdk` repo to the `sdks/typescript` subdirectory of [SpacetimeDB](https://github.com/clockworklabs/SpacetimeDB). **Any new changes should be made there**. Apologies in advance for any sharp edges while the migration is in progress. +We are in the process of moving from the `spacetimedb-typescript-sdk` repo to the `sdks/typescript` subdirectory of [SpacetimeDB](https://github.com/clockworklabs/SpacetimeDB). **Any new changes should be made there**. The `spacetimedb-typescript-sdk` repo will only be updated on release. Apologies in advance for any sharp edges while the migration is in progress. # Notes for maintainers diff --git a/sdks/typescript/packages/sdk/package.json b/sdks/typescript/packages/sdk/package.json index 2453af7aba6..6b675b00371 100644 --- a/sdks/typescript/packages/sdk/package.json +++ b/sdks/typescript/packages/sdk/package.json @@ -30,7 +30,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/clockworklabs/SpacetimeDB" + "url": "https://github.com/clockworklabs/spacetimedb-typescript-sdk" }, "publishConfig": { "provenance": true