Move @tursodatabase/sync code to sync/javascript

This commit is contained in:
Pekka Enberg
2025-08-18 14:22:00 +03:00
parent 33ddae1877
commit 13b805a992
27 changed files with 13 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ env:
defaults: defaults:
run: run:
working-directory: packages/turso-sync-js working-directory: sync/javascript
jobs: jobs:
build: build:
@@ -99,7 +99,7 @@ jobs:
if: ${{ matrix.settings.docker }} if: ${{ matrix.settings.docker }}
with: with:
image: ${{ matrix.settings.docker }} image: ${{ matrix.settings.docker }}
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build/packages/turso-sync-js" options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build/sync/javascript"
run: ${{ matrix.settings.build }} run: ${{ matrix.settings.build }}
- name: Build - name: Build
run: ${{ matrix.settings.build }} run: ${{ matrix.settings.build }}
@@ -110,8 +110,8 @@ jobs:
with: with:
name: turso-sync-js-${{ matrix.settings.target }} name: turso-sync-js-${{ matrix.settings.target }}
path: | path: |
packages/turso-sync-js/${{ env.APP_NAME }}.*.node sync/javascript/${{ env.APP_NAME }}.*.node
packages/turso-sync-js/${{ env.APP_NAME }}.*.wasm sync/javascript/${{ env.APP_NAME }}.*.wasm
if-no-files-found: error if-no-files-found: error
test-macOS-windows-binding: test-macOS-windows-binding:
name: Test turso-sync-js on ${{ matrix.settings.target }} - node@${{ matrix.node }} name: Test turso-sync-js on ${{ matrix.settings.target }} - node@${{ matrix.node }}
@@ -139,7 +139,7 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: turso-sync-js-${{ matrix.settings.target }} name: turso-sync-js-${{ matrix.settings.target }}
path: packages/turso-sync-js path: sync/javascript
- name: List packages - name: List packages
run: ls -R . run: ls -R .
shell: bash shell: bash
@@ -167,7 +167,7 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: turso-sync-js-x86_64-unknown-linux-gnu name: turso-sync-js-x86_64-unknown-linux-gnu
path: packages/turso-sync-js path: sync/javascript
- name: List packages - name: List packages
run: ls -R . run: ls -R .
shell: bash shell: bash
@@ -190,12 +190,12 @@ jobs:
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: turso-sync-js-x86_64-apple-darwin name: turso-sync-js-x86_64-apple-darwin
path: packages/turso-sync-js path: sync/javascript
- name: Download macOS arm64 artifact - name: Download macOS arm64 artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
name: turso-sync-js-aarch64-apple-darwin name: turso-sync-js-aarch64-apple-darwin
path: packages/turso-sync-js path: sync/javascript
- name: List packages - name: List packages
run: ls -R . run: ls -R .
shell: bash shell: bash
@@ -206,8 +206,8 @@ jobs:
with: with:
name: turso-sync-js-universal-apple-darwin name: turso-sync-js-universal-apple-darwin
path: | path: |
packages/turso-sync-js/${{ env.APP_NAME }}.*.node sync/javascript/${{ env.APP_NAME }}.*.node
packages/turso-sync-js${{ env.APP_NAME }}.*.wasm sync/javascript${{ env.APP_NAME }}.*.wasm
if-no-files-found: error if-no-files-found: error
publish: publish:
name: Publish name: Publish
@@ -233,7 +233,7 @@ jobs:
- name: Download all artifacts - name: Download all artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
path: packages/turso-sync-js/artifacts path: sync/javascript/artifacts
- name: Move artifacts - name: Move artifacts
run: yarn artifacts run: yarn artifacts
- name: List packages - name: List packages

View File

@@ -28,7 +28,7 @@ members = [
"vendored/sqlite3-parser/sqlparser_bench", "vendored/sqlite3-parser/sqlparser_bench",
"parser", "parser",
"packages/turso-sync-engine", "packages/turso-sync-engine",
"packages/turso-sync-js", "sync/javascript",
] ]
exclude = ["perf/latency/limbo"] exclude = ["perf/latency/limbo"]

View File

@@ -21,7 +21,7 @@ NPM_PACKAGES = [
"bindings/javascript/npm/linux-x64-gnu", "bindings/javascript/npm/linux-x64-gnu",
"bindings/javascript/npm/win32-x64-msvc", "bindings/javascript/npm/win32-x64-msvc",
"bindings/javascript/npm/wasm32-wasip1-threads", "bindings/javascript/npm/wasm32-wasip1-threads",
"packages/turso-sync-js", "sync/javascript",
] ]