diff --git a/.buildkite/docker-image.yml b/.buildkite/docker-image.yml index 9c6f65dd2e..9345b8c8dc 100644 --- a/.buildkite/docker-image.yml +++ b/.buildkite/docker-image.yml @@ -14,7 +14,7 @@ steps: command: - git fetch --tags - export ELECTRIC_IMAGE_NAME="${DOCKER_REPO}/${IMAGE_NAME}" - - cd ./components/electric + - cd ./packages/electric - export ELECTRIC_VERSION=$(make --silent print_version_from_git) - export ELECTRIC_CANARY_IMAGE="${DOCKERHUB_REPO}/${IMAGE_NAME}:canary" - make docker-build-ci @@ -23,6 +23,6 @@ steps: if: build.tag =~ /@core\/electric@/ command: - export ELECTRIC_IMAGE_NAME="${DOCKERHUB_REPO}/${IMAGE_NAME}" - - cd ./components/electric + - cd ./packages/electric - export ELECTRIC_VERSION=$(make --silent print_version_from_git) - make docker-build-ci-crossplatform diff --git a/.github/workflows/cli_tests.yml b/.github/workflows/cli_tests.yml index c43231c527..a541a5453f 100644 --- a/.github/workflows/cli_tests.yml +++ b/.github/workflows/cli_tests.yml @@ -8,12 +8,12 @@ on: pull_request: paths: - "pnpm-lock.yaml" - - "components/cli/**" - - "!components/cli/**.md" + - "packages/cli/**" + - "!packages/cli/**.md" defaults: run: - working-directory: components/cli + working-directory: packages/cli concurrency: group: cli-${{ github.ref }} diff --git a/.github/workflows/drivers_tests.yml b/.github/workflows/drivers_tests.yml index 676e858d7e..4eee9b92da 100644 --- a/.github/workflows/drivers_tests.yml +++ b/.github/workflows/drivers_tests.yml @@ -8,12 +8,12 @@ on: pull_request: paths: - "pnpm-lock.yaml" - - "components/drivers/**" - - "!components/drivers/**.md" + - "packages/drivers/**" + - "!packages/drivers/**.md" defaults: run: - working-directory: components/drivers + working-directory: packages/drivers concurrency: group: drivers-${{ github.ref }} diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ddcb4c43a2..700fa14fed 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -61,15 +61,15 @@ jobs: - run: | echo "ELECTRIC_VERSION=$(make --silent print_version_from_git)" >> $GITHUB_ENV - working-directory: components/electric + working-directory: packages/electric - run: make docker-build-ci env: ELECTRIC_IMAGE_NAME: electric-sql-ci/electric - working-directory: components/electric + working-directory: packages/electric - run: make docker-build-ws-client env: ELECTRIC_CLIENT_IMAGE_NAME: electric-sql-ci/electric-ws-client - working-directory: components/electric + working-directory: packages/electric - name: Cache built lux uses: actions/cache@v4 @@ -152,15 +152,15 @@ jobs: - run: | echo "ELECTRIC_VERSION=$(make --silent print_version_from_git)" >> $GITHUB_ENV - working-directory: components/electric + working-directory: packages/electric - run: make docker-build-ci env: ELECTRIC_IMAGE_NAME: electric-sql-ci/electric - working-directory: components/electric + working-directory: packages/electric - run: make docker-build-ws-client env: ELECTRIC_CLIENT_IMAGE_NAME: electric-sql-ci/electric-ws-client - working-directory: components/electric + working-directory: packages/electric - name: Cache built lux uses: actions/cache@v4 diff --git a/.github/workflows/components_electric_tests.yml b/.github/workflows/packages_electric_tests.yml similarity index 67% rename from .github/workflows/components_electric_tests.yml rename to .github/workflows/packages_electric_tests.yml index 887f544e2b..d717de820e 100644 --- a/.github/workflows/components_electric_tests.yml +++ b/.github/workflows/packages_electric_tests.yml @@ -1,4 +1,4 @@ -name: Components / Electric / Tests +name: Packages / Electric / Tests on: push: @@ -6,15 +6,15 @@ on: - main pull_request: paths: - - "components/electric/**" - - "!components/electric/**README.md" + - "packages/electric/**" + - "!packages/electric/**README.md" env: OTP_VERSION: "27.0" ELIXIR_VERSION: "1.17.0-otp-27" concurrency: - group: components-electric-${{ github.ref }} + group: packages-electric-${{ github.ref }} cancel-in-progress: true jobs: @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: components/electric + working-directory: packages/electric env: MIX_ENV: test steps: @@ -40,29 +40,29 @@ jobs: - name: Restore dependencies uses: actions/cache/restore@v4 with: - path: components/electric/deps - key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }} + path: packages/electric/deps + key: ${{ runner.os }}-mixdeps-${{ hashFiles('packages/electric/**/mix.lock') }} restore-keys: ${{ runner.os }}-mixdeps- - name: Restore compiled code uses: actions/cache/restore@v4 with: path: | - components/electric/_build/*/lib - !components/electric/_build/*/lib/electric - key: ${{ runner.os }}-mixbuild-test-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }} + packages/electric/_build/*/lib + !packages/electric/_build/*/lib/electric + key: ${{ runner.os }}-mixbuild-test-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('packages/electric/**/mix.lock') }} - run: mix deps.get && mix deps.compile - name: Cache dependencies uses: actions/cache/save@v4 with: - path: components/electric/deps - key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }} + path: packages/electric/deps + key: ${{ runner.os }}-mixdeps-${{ hashFiles('packages/electric/**/mix.lock') }} - name: Save compiled code uses: actions/cache/save@v4 with: path: | - components/electric/_build/*/lib - !components/electric/_build/*/lib/electric - key: ${{ runner.os }}-mixbuild-test-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }} + packages/electric/_build/*/lib + !packages/electric/_build/*/lib/electric + key: ${{ runner.os }}-mixbuild-test-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('packages/electric/**/mix.lock') }} - run: mix compile --force --all-warnings --warnings-as-errors - name: Prepare auxiliary services @@ -74,7 +74,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: components/electric + working-directory: packages/electric steps: - uses: actions/checkout@v4 with: @@ -88,8 +88,8 @@ jobs: id: cache-deps uses: actions/cache@v4 with: - path: components/electric/deps - key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }} + path: packages/electric/deps + key: ${{ runner.os }}-mixdeps-${{ hashFiles('packages/electric/**/mix.lock') }} - run: mix deps.get - run: make check-format @@ -98,7 +98,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: components/electric + working-directory: packages/electric env: MIX_ENV: dev steps: @@ -115,28 +115,28 @@ jobs: id: cache-deps uses: actions/cache@v4 with: - path: components/electric/deps - key: ${{ runner.os }}-mixdeps-${{ hashFiles('components/electric/**/mix.lock') }} + path: packages/electric/deps + key: ${{ runner.os }}-mixdeps-${{ hashFiles('packages/electric/**/mix.lock') }} - name: Restore compiled code uses: actions/cache/restore@v4 with: path: | - components/electric/_build/*/lib - !components/electric/_build/*/lib/electric - key: ${{ runner.os }}-mixbuild-dev-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }} + packages/electric/_build/*/lib + !packages/electric/_build/*/lib/electric + key: ${{ runner.os }}-mixbuild-dev-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('packages/electric/**/mix.lock') }} - run: mix deps.get && mix deps.compile - name: Save compiled code uses: actions/cache/save@v4 with: path: | - components/electric/_build/*/lib - !components/electric/_build/*/lib/electric - key: ${{ runner.os }}-mixbuild-dev-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('components/electric/**/mix.lock') }} + packages/electric/_build/*/lib + !packages/electric/_build/*/lib/electric + key: ${{ runner.os }}-mixbuild-dev-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ hashFiles('packages/electric/**/mix.lock') }} - run: mix compile --force --all-warnings --warnings-as-errors - name: Cache PLT uses: actions/cache/restore@v4 with: - path: components/electric/_build/*/*.plt + path: packages/electric/_build/*/*.plt key: ${{ runner.os }}-plt-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ github.ref_name }} restore-keys: ${{ runner.os }}-plt-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}- @@ -147,5 +147,5 @@ jobs: if: ${{ always() && steps.dialyzer.outcome != 'cancelled' }} uses: actions/cache/save@v4 with: - path: components/electric/_build/*/*.plt + path: packages/electric/_build/*/*.plt key: ${{ runner.os }}-plt-${{ env.OTP_VERSION }}-${{ env.ELIXIR_VERSION }}-${{ github.ref_name }} diff --git a/.github/workflows/toolbar_tests.yml b/.github/workflows/toolbar_tests.yml index b48a9301fd..bc89d6f154 100644 --- a/.github/workflows/toolbar_tests.yml +++ b/.github/workflows/toolbar_tests.yml @@ -7,11 +7,11 @@ on: pull_request: paths: - "pnpm-lock.yaml" - - "components/toolbar/**" + - "packages/toolbar/**" defaults: run: - working-directory: components/toolbar + working-directory: packages/toolbar jobs: verify_formatting: diff --git a/Makefile b/Makefile index ff6fffbe09..d855bdecac 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ build_all: - make -C components/electric docker-build + make -C packages/electric docker-build test_all: - make -C components/electric deps tests + make -C packages/electric deps tests make -C clients/typescript deps tests make -C generator deps tests make -C e2e test update_protobuf: - make -C components/electric update_protobuf + make -C packages/electric update_protobuf make -C clients/typescript update_protobuf diff --git a/README.md b/README.md index 59be36301d..4565d90a5a 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ ElectricSQL then provides a whole developer experience for you to control what d This is the main repository for the ElectricSQL source code. Key components include: - [clients/typescript](https://github.com/electric-sql/electric/tree/main/clients/typescript) — TypeScript client that provides SQLite driver adapters, reactivity and a type-safe data access library -- [components/electric](https://github.com/electric-sql/electric/tree/main/components/electric) — Elixir sync service that manages active-active replication between Postgres and SQLite +- [packages/electric](https://github.com/electric-sql/electric/tree/main/packages/electric) — Elixir sync service that manages active-active replication between Postgres and SQLite - [generator](https://github.com/electric-sql/electric/tree/main/generator) — Prisma generator that creates the type safe data access library - [protocol/satellite.proto](https://github.com/electric-sql/electric/tree/main/protocol/satellite.proto) — Protocol Buffers definition of the Satellite replication protocol diff --git a/clients/typescript/Makefile b/clients/typescript/Makefile index 17e3a4949b..9fb462b766 100644 --- a/clients/typescript/Makefile +++ b/clients/typescript/Makefile @@ -3,7 +3,7 @@ build_generator: deps: pnpm install --frozen-lockfile - make -C ../../components/drivers build + make -C ../../packages/drivers build # npm install tslint tslint-config-prettier node_modules: diff --git a/clients/typescript/package.json b/clients/typescript/package.json index 9a54410ef7..06ba5d3bb0 100644 --- a/clients/typescript/package.json +++ b/clients/typescript/package.json @@ -168,7 +168,7 @@ "build": "shx rm -rf dist && concurrently \"tsup\" \"tsc -p tsconfig.build.json\" && node scripts/fix-imports.js", "test": "ava", "test-CI": "DISABLE_DIALECT=postgres npm run test", - "generate-test-client": "npx tsx ../../components/cli/src/client/generateTestClient.ts", + "generate-test-client": "npx tsx ../../packages/cli/src/client/generateTestClient.ts", "typecheck": "tsc -p tsconfig.json", "posttest": "npm run typecheck", "prepublishOnly": "pnpm run build", diff --git a/clients/typescript/src/client/execution/executor.ts b/clients/typescript/src/client/execution/executor.ts index 9f93ca1fbd..7147393c33 100644 --- a/clients/typescript/src/client/execution/executor.ts +++ b/clients/typescript/src/client/execution/executor.ts @@ -1,4 +1,7 @@ -import { DatabaseAdapter, RunResult } from '@electric-sql/drivers' +import { + DatabaseAdapter, + RunResult, +} from '@electric-sql/drivers' import { QueryBuilder } from 'squel' import { DB } from './db' import { TransactionalDB } from './transactionalDB' diff --git a/clients/typescript/src/client/execution/nonTransactionalDB.ts b/clients/typescript/src/client/execution/nonTransactionalDB.ts index c94df8eaa7..6558b11d76 100644 --- a/clients/typescript/src/client/execution/nonTransactionalDB.ts +++ b/clients/typescript/src/client/execution/nonTransactionalDB.ts @@ -1,4 +1,7 @@ -import { DatabaseAdapter, RunResult } from '@electric-sql/drivers' +import { + DatabaseAdapter, + RunResult, +} from '@electric-sql/drivers' import { QueryBuilder } from 'squel' import { DB } from './db' import * as z from 'zod' diff --git a/clients/typescript/src/electric/index.ts b/clients/typescript/src/electric/index.ts index dd043cfb1d..5c5a2cde4e 100644 --- a/clients/typescript/src/electric/index.ts +++ b/clients/typescript/src/electric/index.ts @@ -1,5 +1,5 @@ import { ElectricConfigWithDialect, hydrateConfig } from '../config/index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Migrator } from '../migrators/index' import { EventNotifier, Notifier } from '../notifiers/index' import { globalRegistry, Registry } from '../satellite/index' diff --git a/clients/typescript/src/electric/namespace.ts b/clients/typescript/src/electric/namespace.ts index 006927cff9..5d0301c002 100644 --- a/clients/typescript/src/electric/namespace.ts +++ b/clients/typescript/src/electric/namespace.ts @@ -1,6 +1,6 @@ // This is the namespace that's patched onto the user's database client // (technically via the proxy machinery) as the `.electric` property. -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Notifier, UnsubscribeFunction } from '../notifiers' import { ConnectivityState } from '../util/types' import { GlobalRegistry, Registry } from '../satellite' diff --git a/clients/typescript/src/migrators/bundle.ts b/clients/typescript/src/migrators/bundle.ts index 8573df317b..df813aa900 100644 --- a/clients/typescript/src/migrators/bundle.ts +++ b/clients/typescript/src/migrators/bundle.ts @@ -5,7 +5,7 @@ import { Migrator, StmtMigration, } from './index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { buildInitialMigration as makeBaseMigration } from './schema' import Log from 'loglevel' import { QualifiedTablename, SatelliteError, SatelliteErrorCode } from '../util' diff --git a/clients/typescript/src/satellite/index.ts b/clients/typescript/src/satellite/index.ts index 844277aa32..9c7beb6ae0 100644 --- a/clients/typescript/src/satellite/index.ts +++ b/clients/typescript/src/satellite/index.ts @@ -1,7 +1,7 @@ import Long from 'long' import { AuthConfig, AuthState } from '../auth/index' import { InternalElectricConfig } from '../config/index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Migrator } from '../migrators/index' import { Notifier } from '../notifiers/index' import { SocketFactory } from '../sockets' diff --git a/clients/typescript/src/satellite/mock.ts b/clients/typescript/src/satellite/mock.ts index 1164d64a38..b3d3c72887 100644 --- a/clients/typescript/src/satellite/mock.ts +++ b/clients/typescript/src/satellite/mock.ts @@ -1,5 +1,5 @@ import { AuthState } from '../auth/index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Migrator } from '../migrators/index' import { Notifier } from '../notifiers/index' import { sleepAsync } from '../util/timer' diff --git a/clients/typescript/src/satellite/process.ts b/clients/typescript/src/satellite/process.ts index 4654a3f8b8..d6735fc4c5 100644 --- a/clients/typescript/src/satellite/process.ts +++ b/clients/typescript/src/satellite/process.ts @@ -5,7 +5,7 @@ import { SatRelation_RelationType, } from '../_generated/protocol/satellite' import { AuthConfig, AuthState } from '../auth/index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter, RunResult } from '@electric-sql/drivers' import { Migrator } from '../migrators/index' import { AuthStateNotification, @@ -710,7 +710,7 @@ export class SatelliteProcess implements Satellite { * Runs the provided statements in a transaction and disables FK checks if `this.fkChecks` is set to `disabled`. * `this.fkChecks` should only be set to true when using SQLite as we already disable FK checks for incoming TXs when using Postgres */ - async runInTransaction(...stmts: Statement[]) { + async runInTransaction(...stmts: Statement[]): Promise { return runInTransaction(this.adapter, this.fkChecks, ...stmts) } diff --git a/clients/typescript/src/satellite/registry.ts b/clients/typescript/src/satellite/registry.ts index 255e00dfbd..65992f5261 100644 --- a/clients/typescript/src/satellite/registry.ts +++ b/clients/typescript/src/satellite/registry.ts @@ -1,5 +1,5 @@ import { InternalElectricConfig, HydratedConfig } from '../config/index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Migrator } from '../migrators/index' import { Notifier } from '../notifiers/index' import { DbName } from '../util/types' diff --git a/clients/typescript/src/util/relations.ts b/clients/typescript/src/util/relations.ts index 665dff7c47..a25d917923 100644 --- a/clients/typescript/src/util/relations.ts +++ b/clients/typescript/src/util/relations.ts @@ -1,5 +1,5 @@ import { SatRelation_RelationType } from '../_generated/protocol/satellite' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { QueryBuilder } from '../migrators/query-builder' import { SatelliteOpts } from '../satellite/config' import { QualifiedTablename } from './tablename' diff --git a/clients/typescript/src/util/transactions.ts b/clients/typescript/src/util/transactions.ts index 04c2277aed..48ccf4c46f 100644 --- a/clients/typescript/src/util/transactions.ts +++ b/clients/typescript/src/util/transactions.ts @@ -1,6 +1,6 @@ import { Statement } from '.' import { ForeignKeyChecks } from '../config' -import { DatabaseAdapter, RunResult } from '@electric-sql/drivers' +import { DatabaseAdapter, RunResult } from '../../../../packages/drivers/dist' /** * Runs the provided statements in a transaction and sets the `foreign_keys` pragma based on the `fkChecks` flag. diff --git a/clients/typescript/src/util/types.ts b/clients/typescript/src/util/types.ts index 3ebcdd61a5..673c0f3167 100644 --- a/clients/typescript/src/util/types.ts +++ b/clients/typescript/src/util/types.ts @@ -7,7 +7,7 @@ import { SatRelation_RelationType, } from '../_generated/protocol/satellite' import { Tag } from '../satellite/oplog' -import type { Row } from '@electric-sql/drivers/util' +import type { Row } from '../../../../packages/drivers/dist/util' export type { DbName, @@ -15,7 +15,7 @@ export type { Row, BindParams, Statement, -} from '@electric-sql/drivers/util' +} from '../../../../packages/drivers/dist/util' export type DbNamespace = string export type Tablename = string diff --git a/clients/typescript/test/frameworks/react.test.tsx b/clients/typescript/test/frameworks/react.test.tsx index 411c41ee31..37d78ee043 100644 --- a/clients/typescript/test/frameworks/react.test.tsx +++ b/clients/typescript/test/frameworks/react.test.tsx @@ -6,7 +6,10 @@ import React from 'react' import { EventEmitter } from 'events' import { act, renderHook, waitFor } from '@testing-library/react' -import { DatabaseAdapter, MockDatabase } from '@electric-sql/drivers/wa-sqlite' +import { + DatabaseAdapter, + MockDatabase, +} from '../../../../packages/drivers/dist/wa-sqlite' import { MockNotifier } from '../../src/notifiers/mock' import { QualifiedTablename } from '../../src/util/tablename' diff --git a/clients/typescript/test/frameworks/vuejs.test.ts b/clients/typescript/test/frameworks/vuejs.test.ts index b80dd92afe..03ea057b39 100644 --- a/clients/typescript/test/frameworks/vuejs.test.ts +++ b/clients/typescript/test/frameworks/vuejs.test.ts @@ -8,7 +8,10 @@ import { import { mount, shallowMount, flushPromises } from '@vue/test-utils' import { computed, defineComponent, shallowRef, ref, isProxy, watch } from 'vue' -import { DatabaseAdapter, MockDatabase } from '@electric-sql/drivers/wa-sqlite' +import { + DatabaseAdapter, + MockDatabase, +} from '../../../../packages/drivers/dist/wa-sqlite' import { MockNotifier } from '../../src/notifiers/mock' import { QualifiedTablename } from '../../src/util/tablename' diff --git a/clients/typescript/test/migrators/bundle.ts b/clients/typescript/test/migrators/bundle.ts index 8f52aac584..c0a732e812 100644 --- a/clients/typescript/test/migrators/bundle.ts +++ b/clients/typescript/test/migrators/bundle.ts @@ -1,7 +1,7 @@ import { TestFn } from 'ava' import { makeStmtMigration } from '../../src/migrators' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Migration } from '../../src/migrators' import { BundleMigratorBase as BundleMigrator } from '../../src/migrators/bundle' diff --git a/clients/typescript/test/migrators/triggers.ts b/clients/typescript/test/migrators/triggers.ts index 6ac8bb64e4..3f9dfea081 100644 --- a/clients/typescript/test/migrators/triggers.ts +++ b/clients/typescript/test/migrators/triggers.ts @@ -1,5 +1,5 @@ import { TestFn } from 'ava' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Dialect } from '../../src/migrators/query-builder/builder' import { Table } from '../../src/migrators/triggers' import { SatelliteOpts } from '../../src/satellite/config' diff --git a/clients/typescript/test/satellite/common.ts b/clients/typescript/test/satellite/common.ts index 3c03289519..ff685a506a 100644 --- a/clients/typescript/test/satellite/common.ts +++ b/clients/typescript/test/satellite/common.ts @@ -23,11 +23,11 @@ import { ElectricClient } from '../../src/client/model' import EventEmitter from 'events' import { QueryBuilder } from '../../src/migrators/query-builder' import { BundleMigratorBase } from '../../src/migrators/bundle' -import { makePgDatabase } from '@electric-sql/drivers/node-postgres' +import { makePgDatabase } from '../../../../packages/drivers/dist/node-postgres' import { DatabaseAdapter as PgDatabaseAdapter } from '../../src/drivers/node-postgres' import { PGlite } from '@electric-sql/pglite' import { DatabaseAdapter as PgliteDatabaseAdapter } from '../../src/drivers/pglite' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' export const dbDescription = new DbSchema( { diff --git a/clients/typescript/test/satellite/merge.test.ts b/clients/typescript/test/satellite/merge.test.ts index 512b784237..28f407fa3a 100644 --- a/clients/typescript/test/satellite/merge.test.ts +++ b/clients/typescript/test/satellite/merge.test.ts @@ -23,8 +23,8 @@ import { import { DatabaseAdapter as SQLiteDatabaseAdapter } from '../../src/drivers/better-sqlite3' import { DatabaseAdapter as PgDatabaseAdapter } from '../../src/drivers/node-postgres' import { DatabaseAdapter as PgliteDatabaseAdapter } from '../../src/drivers/pglite' -import { DatabaseAdapter as DatabaseAdapterInterface } from '@electric-sql/drivers' -import { makePgDatabase } from '@electric-sql/drivers/node-postgres' +import { DatabaseAdapter as DatabaseAdapterInterface } from '../../../../packages/drivers/dist' +import { makePgDatabase } from '../../../../packages/drivers/dist/node-postgres' import { randomValue } from '../../src/util/random' import { PGlite } from '@electric-sql/pglite' diff --git a/clients/typescript/test/satellite/process.migration.ts b/clients/typescript/test/satellite/process.migration.ts index 7b356e216d..3609557da8 100644 --- a/clients/typescript/test/satellite/process.migration.ts +++ b/clients/typescript/test/satellite/process.migration.ts @@ -25,7 +25,7 @@ import { getPgMatchingShadowEntries, } from '../support/satellite-helpers' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import isEqual from 'lodash.isequal' import { QueryBuilder } from '../../src/migrators/query-builder' diff --git a/clients/typescript/test/satellite/registry.test.ts b/clients/typescript/test/satellite/registry.test.ts index 26265c40eb..f9c1515031 100644 --- a/clients/typescript/test/satellite/registry.test.ts +++ b/clients/typescript/test/satellite/registry.test.ts @@ -4,7 +4,7 @@ import { ForeignKeyChecks, InternalElectricConfig, } from '../../src/config/index' -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { Migrator } from '../../src/migrators/index' import { Notifier } from '../../src/notifiers/index' import { MockSatelliteProcess, MockRegistry } from '../../src/satellite/mock' diff --git a/clients/typescript/test/satellite/serialization.ts b/clients/typescript/test/satellite/serialization.ts index 68a1cf5310..22bb906c18 100644 --- a/clients/typescript/test/satellite/serialization.ts +++ b/clients/typescript/test/satellite/serialization.ts @@ -5,7 +5,7 @@ import { Relation, DbRecord } from '../../src/util/types' import { DbSchema, TableSchema } from '../../src/client/model/schema' import { PgBasicType } from '../../src/client/conversions/types' import { HKT } from '../../src/client/util/hkt' -import { DatabaseAdapter as DatabaseAdapterInterface } from '@electric-sql/drivers' +import { DatabaseAdapter as DatabaseAdapterInterface } from '../../../../packages/drivers/dist' import { inferRelationsFromDb } from '../../src/util/relations' import { SatelliteOpts } from '../../src/satellite/config' import { QueryBuilder } from '../../src/migrators/query-builder' diff --git a/clients/typescript/test/support/satellite-helpers.ts b/clients/typescript/test/support/satellite-helpers.ts index 009e393ddc..692dc4bf16 100644 --- a/clients/typescript/test/support/satellite-helpers.ts +++ b/clients/typescript/test/support/satellite-helpers.ts @@ -1,4 +1,4 @@ -import { DatabaseAdapter } from '@electric-sql/drivers' +import { DatabaseAdapter } from '../../../../packages/drivers/dist' import { QueryBuilder, pgBuilder, diff --git a/clients/typescript/test/util/transactions.test.ts b/clients/typescript/test/util/transactions.test.ts index 029bc35268..0184c6506d 100644 --- a/clients/typescript/test/util/transactions.test.ts +++ b/clients/typescript/test/util/transactions.test.ts @@ -2,7 +2,7 @@ import t, { TestFn } from 'ava' import Database from 'better-sqlite3' import type { Database as DB } from 'better-sqlite3' import { DatabaseAdapter } from '../../src/drivers/better-sqlite3' -import { DatabaseAdapter as DatabaseAdapterInterface } from '@electric-sql/drivers' +import { DatabaseAdapter as DatabaseAdapterInterface } from '../../../../packages/drivers/dist' import { runInTransaction } from '../../src/util/transactions' import { ForeignKeyChecks } from '../../src/config' diff --git a/e2e/README.md b/e2e/README.md index bcf191a495..a9098da0d5 100644 --- a/e2e/README.md +++ b/e2e/README.md @@ -7,7 +7,7 @@ Tests dependencies: You will also need an Electric Docker image, specified by the environment variables `ELECTRIC_IMAGE_NAME` and `ELECTRIC_IMAGE_TAG`, which defaults to the image `electric:local-build` that can be built using: ```sh -cd ../components/electric +cd ../packages/electric make docker-build ``` diff --git a/e2e/elixir_client/Makefile b/e2e/elixir_client/Makefile index f4576a6df0..d3f3bb472d 100644 --- a/e2e/elixir_client/Makefile +++ b/e2e/elixir_client/Makefile @@ -7,7 +7,7 @@ DOCKER_WORKDIR=${E2E_ROOT}/elixir_client export DOCKER_REPO ?= europe-docker.pkg.dev/vaxine/ci export ELECTRIC_CLIENT_IMAGE_NAME ?= electric-ws-client -ELECTRIC_DIR=${PROJECT_ROOT}/components/electric +ELECTRIC_DIR=${PROJECT_ROOT}/packages/electric build: make -C ${ELECTRIC_DIR} docker-build-ws-client diff --git a/e2e/satellite_client/Dockerfile b/e2e/satellite_client/Dockerfile index d22074154d..d8f2386175 100644 --- a/e2e/satellite_client/Dockerfile +++ b/e2e/satellite_client/Dockerfile @@ -15,7 +15,7 @@ COPY pnpm-workspace.yaml ./ COPY clients/typescript ./clients/typescript COPY common ./common COPY generator ./generator -COPY components/drivers ./components/drivers +COPY packages/drivers ./packages/drivers COPY e2e/satellite_client/package.json ./e2e/satellite_client/ RUN pnpm install -r --offline --filter @internal/satellite-client^... RUN pnpm run -r --filter @internal/satellite-client^... build diff --git a/e2e/satellite_client/Makefile b/e2e/satellite_client/Makefile index 0191b0244b..6b157334d1 100644 --- a/e2e/satellite_client/Makefile +++ b/e2e/satellite_client/Makefile @@ -15,7 +15,7 @@ build: docker buildx build --load ${CACHING_SETTINGS} -f ./Dockerfile -t satellite_client:local ${PROJECT_ROOT} local-build: - make -C ../../components/drivers build + make -C ../../packages/drivers build pnpm i --frozen-lockfile make -C ../../clients/typescript build pnpm run build diff --git a/components/cli/.eslintrc.cjs b/packages/cli/.eslintrc.cjs similarity index 100% rename from components/cli/.eslintrc.cjs rename to packages/cli/.eslintrc.cjs diff --git a/components/cli/.gitignore b/packages/cli/.gitignore similarity index 100% rename from components/cli/.gitignore rename to packages/cli/.gitignore diff --git a/components/cli/.prettierignore b/packages/cli/.prettierignore similarity index 100% rename from components/cli/.prettierignore rename to packages/cli/.prettierignore diff --git a/components/cli/.prettierrc.cjs b/packages/cli/.prettierrc.cjs similarity index 100% rename from components/cli/.prettierrc.cjs rename to packages/cli/.prettierrc.cjs diff --git a/components/cli/.prettierrc.json b/packages/cli/.prettierrc.json similarity index 100% rename from components/cli/.prettierrc.json rename to packages/cli/.prettierrc.json diff --git a/components/cli/LICENSE b/packages/cli/LICENSE similarity index 100% rename from components/cli/LICENSE rename to packages/cli/LICENSE diff --git a/components/cli/Makefile b/packages/cli/Makefile similarity index 100% rename from components/cli/Makefile rename to packages/cli/Makefile diff --git a/components/cli/README.md b/packages/cli/README.md similarity index 100% rename from components/cli/README.md rename to packages/cli/README.md diff --git a/components/cli/ava.config.js b/packages/cli/ava.config.js similarity index 100% rename from components/cli/ava.config.js rename to packages/cli/ava.config.js diff --git a/components/cli/package.json b/packages/cli/package.json similarity index 100% rename from components/cli/package.json rename to packages/cli/package.json diff --git a/components/cli/scripts/fix-imports.js b/packages/cli/scripts/fix-imports.js similarity index 100% rename from components/cli/scripts/fix-imports.js rename to packages/cli/scripts/fix-imports.js diff --git a/components/cli/src/client/generateTestClient.ts b/packages/cli/src/client/generateTestClient.ts similarity index 100% rename from components/cli/src/client/generateTestClient.ts rename to packages/cli/src/client/generateTestClient.ts diff --git a/components/cli/src/config-options.ts b/packages/cli/src/config-options.ts similarity index 100% rename from components/cli/src/config-options.ts rename to packages/cli/src/config-options.ts diff --git a/components/cli/src/config.ts b/packages/cli/src/config.ts similarity index 100% rename from components/cli/src/config.ts rename to packages/cli/src/config.ts diff --git a/components/cli/src/configure/command-show-config.ts b/packages/cli/src/configure/command-show-config.ts similarity index 100% rename from components/cli/src/configure/command-show-config.ts rename to packages/cli/src/configure/command-show-config.ts diff --git a/components/cli/src/configure/command-with-config.ts b/packages/cli/src/configure/command-with-config.ts similarity index 100% rename from components/cli/src/configure/command-with-config.ts rename to packages/cli/src/configure/command-with-config.ts diff --git a/components/cli/src/docker-commands/command-psql.ts b/packages/cli/src/docker-commands/command-psql.ts similarity index 100% rename from components/cli/src/docker-commands/command-psql.ts rename to packages/cli/src/docker-commands/command-psql.ts diff --git a/components/cli/src/docker-commands/command-start.ts b/packages/cli/src/docker-commands/command-start.ts similarity index 100% rename from components/cli/src/docker-commands/command-start.ts rename to packages/cli/src/docker-commands/command-start.ts diff --git a/components/cli/src/docker-commands/command-status.ts b/packages/cli/src/docker-commands/command-status.ts similarity index 100% rename from components/cli/src/docker-commands/command-status.ts rename to packages/cli/src/docker-commands/command-status.ts diff --git a/components/cli/src/docker-commands/command-stop.ts b/packages/cli/src/docker-commands/command-stop.ts similarity index 100% rename from components/cli/src/docker-commands/command-stop.ts rename to packages/cli/src/docker-commands/command-stop.ts diff --git a/components/cli/src/docker-commands/docker-utils.ts b/packages/cli/src/docker-commands/docker-utils.ts similarity index 100% rename from components/cli/src/docker-commands/docker-utils.ts rename to packages/cli/src/docker-commands/docker-utils.ts diff --git a/components/cli/src/docker-commands/docker/compose-with-postgres.yaml b/packages/cli/src/docker-commands/docker/compose-with-postgres.yaml similarity index 100% rename from components/cli/src/docker-commands/docker/compose-with-postgres.yaml rename to packages/cli/src/docker-commands/docker/compose-with-postgres.yaml diff --git a/components/cli/src/docker-commands/docker/compose.yaml b/packages/cli/src/docker-commands/docker/compose.yaml similarity index 100% rename from components/cli/src/docker-commands/docker/compose.yaml rename to packages/cli/src/docker-commands/docker/compose.yaml diff --git a/components/cli/src/docker-commands/docker/postgres.conf b/packages/cli/src/docker-commands/docker/postgres.conf similarity index 100% rename from components/cli/src/docker-commands/docker/postgres.conf rename to packages/cli/src/docker-commands/docker/postgres.conf diff --git a/components/cli/src/index.ts b/packages/cli/src/index.ts similarity index 100% rename from components/cli/src/index.ts rename to packages/cli/src/index.ts diff --git a/components/cli/src/main.ts b/packages/cli/src/main.ts similarity index 100% rename from components/cli/src/main.ts rename to packages/cli/src/main.ts diff --git a/components/cli/src/migrations/builder.ts b/packages/cli/src/migrations/builder.ts similarity index 100% rename from components/cli/src/migrations/builder.ts rename to packages/cli/src/migrations/builder.ts diff --git a/components/cli/src/migrations/command-generate.ts b/packages/cli/src/migrations/command-generate.ts similarity index 100% rename from components/cli/src/migrations/command-generate.ts rename to packages/cli/src/migrations/command-generate.ts diff --git a/components/cli/src/migrations/migrate.ts b/packages/cli/src/migrations/migrate.ts similarity index 100% rename from components/cli/src/migrations/migrate.ts rename to packages/cli/src/migrations/migrate.ts diff --git a/components/cli/src/tunnel/command-proxy-tunnel.ts b/packages/cli/src/tunnel/command-proxy-tunnel.ts similarity index 100% rename from components/cli/src/tunnel/command-proxy-tunnel.ts rename to packages/cli/src/tunnel/command-proxy-tunnel.ts diff --git a/components/cli/src/util/index.ts b/packages/cli/src/util/index.ts similarity index 100% rename from components/cli/src/util/index.ts rename to packages/cli/src/util/index.ts diff --git a/components/cli/src/util/io.ts b/packages/cli/src/util/io.ts similarity index 100% rename from components/cli/src/util/io.ts rename to packages/cli/src/util/io.ts diff --git a/components/cli/src/util/parse.ts b/packages/cli/src/util/parse.ts similarity index 100% rename from components/cli/src/util/parse.ts rename to packages/cli/src/util/parse.ts diff --git a/components/cli/src/util/paths.ts b/packages/cli/src/util/paths.ts similarity index 100% rename from components/cli/src/util/paths.ts rename to packages/cli/src/util/paths.ts diff --git a/components/cli/src/util/serialize.ts b/packages/cli/src/util/serialize.ts similarity index 100% rename from components/cli/src/util/serialize.ts rename to packages/cli/src/util/serialize.ts diff --git a/components/cli/src/util/string.ts b/packages/cli/src/util/string.ts similarity index 100% rename from components/cli/src/util/string.ts rename to packages/cli/src/util/string.ts diff --git a/components/cli/src/util/version.ts b/packages/cli/src/util/version.ts similarity index 100% rename from components/cli/src/util/version.ts rename to packages/cli/src/util/version.ts diff --git a/components/cli/test/config-options.test.ts b/packages/cli/test/config-options.test.ts similarity index 100% rename from components/cli/test/config-options.test.ts rename to packages/cli/test/config-options.test.ts diff --git a/components/cli/test/config.test.ts b/packages/cli/test/config.test.ts similarity index 100% rename from components/cli/test/config.test.ts rename to packages/cli/test/config.test.ts diff --git a/components/cli/test/migrations/builder.test.ts b/packages/cli/test/migrations/builder.test.ts similarity index 100% rename from components/cli/test/migrations/builder.test.ts rename to packages/cli/test/migrations/builder.test.ts diff --git a/components/cli/test/migrations/migrate.generation.test.ts b/packages/cli/test/migrations/migrate.generation.test.ts similarity index 100% rename from components/cli/test/migrations/migrate.generation.test.ts rename to packages/cli/test/migrations/migrate.generation.test.ts diff --git a/components/cli/test/migrations/migrate.test.ts b/packages/cli/test/migrations/migrate.test.ts similarity index 100% rename from components/cli/test/migrations/migrate.test.ts rename to packages/cli/test/migrations/migrate.test.ts diff --git a/components/cli/test/support/migrations.js b/packages/cli/test/support/migrations.js similarity index 100% rename from components/cli/test/support/migrations.js rename to packages/cli/test/support/migrations.js diff --git a/components/cli/test/util/parse.test.ts b/packages/cli/test/util/parse.test.ts similarity index 100% rename from components/cli/test/util/parse.test.ts rename to packages/cli/test/util/parse.test.ts diff --git a/components/cli/test/util/string.test.ts b/packages/cli/test/util/string.test.ts similarity index 100% rename from components/cli/test/util/string.test.ts rename to packages/cli/test/util/string.test.ts diff --git a/components/cli/tsconfig.build.json b/packages/cli/tsconfig.build.json similarity index 100% rename from components/cli/tsconfig.build.json rename to packages/cli/tsconfig.build.json diff --git a/components/cli/tsconfig.json b/packages/cli/tsconfig.json similarity index 100% rename from components/cli/tsconfig.json rename to packages/cli/tsconfig.json diff --git a/components/cli/tsup.config.ts b/packages/cli/tsup.config.ts similarity index 100% rename from components/cli/tsup.config.ts rename to packages/cli/tsup.config.ts diff --git a/components/drivers/.eslintrc.cjs b/packages/drivers/.eslintrc.cjs similarity index 100% rename from components/drivers/.eslintrc.cjs rename to packages/drivers/.eslintrc.cjs diff --git a/components/drivers/.gitignore b/packages/drivers/.gitignore similarity index 100% rename from components/drivers/.gitignore rename to packages/drivers/.gitignore diff --git a/components/drivers/.prettierignore b/packages/drivers/.prettierignore similarity index 100% rename from components/drivers/.prettierignore rename to packages/drivers/.prettierignore diff --git a/components/drivers/.prettierrc.cjs b/packages/drivers/.prettierrc.cjs similarity index 100% rename from components/drivers/.prettierrc.cjs rename to packages/drivers/.prettierrc.cjs diff --git a/components/drivers/LICENSE b/packages/drivers/LICENSE similarity index 100% rename from components/drivers/LICENSE rename to packages/drivers/LICENSE diff --git a/components/drivers/Makefile b/packages/drivers/Makefile similarity index 100% rename from components/drivers/Makefile rename to packages/drivers/Makefile diff --git a/components/drivers/README.md b/packages/drivers/README.md similarity index 100% rename from components/drivers/README.md rename to packages/drivers/README.md diff --git a/components/drivers/ava.config.js b/packages/drivers/ava.config.js similarity index 100% rename from components/drivers/ava.config.js rename to packages/drivers/ava.config.js diff --git a/components/drivers/package.json b/packages/drivers/package.json similarity index 99% rename from components/drivers/package.json rename to packages/drivers/package.json index 95d91cffff..eab843de52 100644 --- a/components/drivers/package.json +++ b/packages/drivers/package.json @@ -2,7 +2,7 @@ "version": "0.0.1", "name": "@electric-sql/drivers", "description": "ElectricSQL database drivers.", - "repository": "https://github.com/electric-sql/electric/tree/main/components/drivers", + "repository": "https://github.com/electric-sql/electric/tree/main/packages/drivers", "author": "Electric DB Limited", "homepage": "https://electric-sql.com", "license": "Apache-2.0", diff --git a/components/drivers/src/adapter.ts b/packages/drivers/src/adapter.ts similarity index 100% rename from components/drivers/src/adapter.ts rename to packages/drivers/src/adapter.ts diff --git a/components/drivers/src/better-sqlite3/adapter.ts b/packages/drivers/src/better-sqlite3/adapter.ts similarity index 100% rename from components/drivers/src/better-sqlite3/adapter.ts rename to packages/drivers/src/better-sqlite3/adapter.ts diff --git a/components/drivers/src/better-sqlite3/database.ts b/packages/drivers/src/better-sqlite3/database.ts similarity index 100% rename from components/drivers/src/better-sqlite3/database.ts rename to packages/drivers/src/better-sqlite3/database.ts diff --git a/components/drivers/src/better-sqlite3/index.ts b/packages/drivers/src/better-sqlite3/index.ts similarity index 100% rename from components/drivers/src/better-sqlite3/index.ts rename to packages/drivers/src/better-sqlite3/index.ts diff --git a/components/drivers/src/better-sqlite3/mock.ts b/packages/drivers/src/better-sqlite3/mock.ts similarity index 100% rename from components/drivers/src/better-sqlite3/mock.ts rename to packages/drivers/src/better-sqlite3/mock.ts diff --git a/components/drivers/src/capacitor-sqlite/adapter.ts b/packages/drivers/src/capacitor-sqlite/adapter.ts similarity index 100% rename from components/drivers/src/capacitor-sqlite/adapter.ts rename to packages/drivers/src/capacitor-sqlite/adapter.ts diff --git a/components/drivers/src/capacitor-sqlite/database.ts b/packages/drivers/src/capacitor-sqlite/database.ts similarity index 100% rename from components/drivers/src/capacitor-sqlite/database.ts rename to packages/drivers/src/capacitor-sqlite/database.ts diff --git a/components/drivers/src/capacitor-sqlite/index.ts b/packages/drivers/src/capacitor-sqlite/index.ts similarity index 100% rename from components/drivers/src/capacitor-sqlite/index.ts rename to packages/drivers/src/capacitor-sqlite/index.ts diff --git a/components/drivers/src/capacitor-sqlite/mock.ts b/packages/drivers/src/capacitor-sqlite/mock.ts similarity index 100% rename from components/drivers/src/capacitor-sqlite/mock.ts rename to packages/drivers/src/capacitor-sqlite/mock.ts diff --git a/components/drivers/src/expo-sqlite-next/adapter.ts b/packages/drivers/src/expo-sqlite-next/adapter.ts similarity index 100% rename from components/drivers/src/expo-sqlite-next/adapter.ts rename to packages/drivers/src/expo-sqlite-next/adapter.ts diff --git a/components/drivers/src/expo-sqlite-next/database.ts b/packages/drivers/src/expo-sqlite-next/database.ts similarity index 100% rename from components/drivers/src/expo-sqlite-next/database.ts rename to packages/drivers/src/expo-sqlite-next/database.ts diff --git a/components/drivers/src/expo-sqlite-next/index.ts b/packages/drivers/src/expo-sqlite-next/index.ts similarity index 100% rename from components/drivers/src/expo-sqlite-next/index.ts rename to packages/drivers/src/expo-sqlite-next/index.ts diff --git a/components/drivers/src/expo-sqlite-next/mock.ts b/packages/drivers/src/expo-sqlite-next/mock.ts similarity index 100% rename from components/drivers/src/expo-sqlite-next/mock.ts rename to packages/drivers/src/expo-sqlite-next/mock.ts diff --git a/components/drivers/src/expo-sqlite/adapter.ts b/packages/drivers/src/expo-sqlite/adapter.ts similarity index 100% rename from components/drivers/src/expo-sqlite/adapter.ts rename to packages/drivers/src/expo-sqlite/adapter.ts diff --git a/components/drivers/src/expo-sqlite/database.ts b/packages/drivers/src/expo-sqlite/database.ts similarity index 100% rename from components/drivers/src/expo-sqlite/database.ts rename to packages/drivers/src/expo-sqlite/database.ts diff --git a/components/drivers/src/expo-sqlite/index.ts b/packages/drivers/src/expo-sqlite/index.ts similarity index 100% rename from components/drivers/src/expo-sqlite/index.ts rename to packages/drivers/src/expo-sqlite/index.ts diff --git a/components/drivers/src/expo-sqlite/mock.ts b/packages/drivers/src/expo-sqlite/mock.ts similarity index 100% rename from components/drivers/src/expo-sqlite/mock.ts rename to packages/drivers/src/expo-sqlite/mock.ts diff --git a/components/drivers/src/generic/adapter.ts b/packages/drivers/src/generic/adapter.ts similarity index 100% rename from components/drivers/src/generic/adapter.ts rename to packages/drivers/src/generic/adapter.ts diff --git a/components/drivers/src/generic/index.ts b/packages/drivers/src/generic/index.ts similarity index 100% rename from components/drivers/src/generic/index.ts rename to packages/drivers/src/generic/index.ts diff --git a/components/drivers/src/generic/mock.ts b/packages/drivers/src/generic/mock.ts similarity index 100% rename from components/drivers/src/generic/mock.ts rename to packages/drivers/src/generic/mock.ts diff --git a/components/drivers/src/index.ts b/packages/drivers/src/index.ts similarity index 100% rename from components/drivers/src/index.ts rename to packages/drivers/src/index.ts diff --git a/components/drivers/src/node-postgres/adapter.ts b/packages/drivers/src/node-postgres/adapter.ts similarity index 100% rename from components/drivers/src/node-postgres/adapter.ts rename to packages/drivers/src/node-postgres/adapter.ts diff --git a/components/drivers/src/node-postgres/database.ts b/packages/drivers/src/node-postgres/database.ts similarity index 100% rename from components/drivers/src/node-postgres/database.ts rename to packages/drivers/src/node-postgres/database.ts diff --git a/components/drivers/src/node-postgres/index.ts b/packages/drivers/src/node-postgres/index.ts similarity index 100% rename from components/drivers/src/node-postgres/index.ts rename to packages/drivers/src/node-postgres/index.ts diff --git a/components/drivers/src/node-postgres/mock.ts b/packages/drivers/src/node-postgres/mock.ts similarity index 100% rename from components/drivers/src/node-postgres/mock.ts rename to packages/drivers/src/node-postgres/mock.ts diff --git a/components/drivers/src/node-postgres/util.ts b/packages/drivers/src/node-postgres/util.ts similarity index 100% rename from components/drivers/src/node-postgres/util.ts rename to packages/drivers/src/node-postgres/util.ts diff --git a/components/drivers/src/op-sqlite/adapter.ts b/packages/drivers/src/op-sqlite/adapter.ts similarity index 100% rename from components/drivers/src/op-sqlite/adapter.ts rename to packages/drivers/src/op-sqlite/adapter.ts diff --git a/components/drivers/src/op-sqlite/database.ts b/packages/drivers/src/op-sqlite/database.ts similarity index 100% rename from components/drivers/src/op-sqlite/database.ts rename to packages/drivers/src/op-sqlite/database.ts diff --git a/components/drivers/src/op-sqlite/index.ts b/packages/drivers/src/op-sqlite/index.ts similarity index 100% rename from components/drivers/src/op-sqlite/index.ts rename to packages/drivers/src/op-sqlite/index.ts diff --git a/components/drivers/src/op-sqlite/mock.ts b/packages/drivers/src/op-sqlite/mock.ts similarity index 100% rename from components/drivers/src/op-sqlite/mock.ts rename to packages/drivers/src/op-sqlite/mock.ts diff --git a/components/drivers/src/pglite/adapter.ts b/packages/drivers/src/pglite/adapter.ts similarity index 100% rename from components/drivers/src/pglite/adapter.ts rename to packages/drivers/src/pglite/adapter.ts diff --git a/components/drivers/src/pglite/database.ts b/packages/drivers/src/pglite/database.ts similarity index 100% rename from components/drivers/src/pglite/database.ts rename to packages/drivers/src/pglite/database.ts diff --git a/components/drivers/src/pglite/index.ts b/packages/drivers/src/pglite/index.ts similarity index 100% rename from components/drivers/src/pglite/index.ts rename to packages/drivers/src/pglite/index.ts diff --git a/components/drivers/src/pglite/mock.ts b/packages/drivers/src/pglite/mock.ts similarity index 100% rename from components/drivers/src/pglite/mock.ts rename to packages/drivers/src/pglite/mock.ts diff --git a/components/drivers/src/tauri-postgres/adapter.ts b/packages/drivers/src/tauri-postgres/adapter.ts similarity index 100% rename from components/drivers/src/tauri-postgres/adapter.ts rename to packages/drivers/src/tauri-postgres/adapter.ts diff --git a/components/drivers/src/tauri-postgres/database.ts b/packages/drivers/src/tauri-postgres/database.ts similarity index 100% rename from components/drivers/src/tauri-postgres/database.ts rename to packages/drivers/src/tauri-postgres/database.ts diff --git a/components/drivers/src/tauri-postgres/index.ts b/packages/drivers/src/tauri-postgres/index.ts similarity index 100% rename from components/drivers/src/tauri-postgres/index.ts rename to packages/drivers/src/tauri-postgres/index.ts diff --git a/components/drivers/src/tauri-postgres/mock.ts b/packages/drivers/src/tauri-postgres/mock.ts similarity index 100% rename from components/drivers/src/tauri-postgres/mock.ts rename to packages/drivers/src/tauri-postgres/mock.ts diff --git a/components/drivers/src/tauri-sqlite/adapter.ts b/packages/drivers/src/tauri-sqlite/adapter.ts similarity index 100% rename from components/drivers/src/tauri-sqlite/adapter.ts rename to packages/drivers/src/tauri-sqlite/adapter.ts diff --git a/components/drivers/src/tauri-sqlite/database.ts b/packages/drivers/src/tauri-sqlite/database.ts similarity index 100% rename from components/drivers/src/tauri-sqlite/database.ts rename to packages/drivers/src/tauri-sqlite/database.ts diff --git a/components/drivers/src/tauri-sqlite/index.ts b/packages/drivers/src/tauri-sqlite/index.ts similarity index 100% rename from components/drivers/src/tauri-sqlite/index.ts rename to packages/drivers/src/tauri-sqlite/index.ts diff --git a/components/drivers/src/util/index.ts b/packages/drivers/src/util/index.ts similarity index 100% rename from components/drivers/src/util/index.ts rename to packages/drivers/src/util/index.ts diff --git a/components/drivers/src/util/results.ts b/packages/drivers/src/util/results.ts similarity index 100% rename from components/drivers/src/util/results.ts rename to packages/drivers/src/util/results.ts diff --git a/components/drivers/src/util/types.ts b/packages/drivers/src/util/types.ts similarity index 100% rename from components/drivers/src/util/types.ts rename to packages/drivers/src/util/types.ts diff --git a/components/drivers/src/wa-sqlite/adapter.ts b/packages/drivers/src/wa-sqlite/adapter.ts similarity index 100% rename from components/drivers/src/wa-sqlite/adapter.ts rename to packages/drivers/src/wa-sqlite/adapter.ts diff --git a/components/drivers/src/wa-sqlite/database.ts b/packages/drivers/src/wa-sqlite/database.ts similarity index 100% rename from components/drivers/src/wa-sqlite/database.ts rename to packages/drivers/src/wa-sqlite/database.ts diff --git a/components/drivers/src/wa-sqlite/index.ts b/packages/drivers/src/wa-sqlite/index.ts similarity index 100% rename from components/drivers/src/wa-sqlite/index.ts rename to packages/drivers/src/wa-sqlite/index.ts diff --git a/components/drivers/src/wa-sqlite/mock.ts b/packages/drivers/src/wa-sqlite/mock.ts similarity index 100% rename from components/drivers/src/wa-sqlite/mock.ts rename to packages/drivers/src/wa-sqlite/mock.ts diff --git a/components/drivers/src/wa-sqlite/wa-sqlite.d.ts b/packages/drivers/src/wa-sqlite/wa-sqlite.d.ts similarity index 100% rename from components/drivers/src/wa-sqlite/wa-sqlite.d.ts rename to packages/drivers/src/wa-sqlite/wa-sqlite.d.ts diff --git a/components/drivers/test/better-sqlite3.test.ts b/packages/drivers/test/better-sqlite3.test.ts similarity index 100% rename from components/drivers/test/better-sqlite3.test.ts rename to packages/drivers/test/better-sqlite3.test.ts diff --git a/components/drivers/test/capacitor-sqlite.test.ts b/packages/drivers/test/capacitor-sqlite.test.ts similarity index 100% rename from components/drivers/test/capacitor-sqlite.test.ts rename to packages/drivers/test/capacitor-sqlite.test.ts diff --git a/components/drivers/test/expo-next.test.ts b/packages/drivers/test/expo-next.test.ts similarity index 100% rename from components/drivers/test/expo-next.test.ts rename to packages/drivers/test/expo-next.test.ts diff --git a/components/drivers/test/expo.test.ts b/packages/drivers/test/expo.test.ts similarity index 100% rename from components/drivers/test/expo.test.ts rename to packages/drivers/test/expo.test.ts diff --git a/components/drivers/test/generic-adapters.test.ts b/packages/drivers/test/generic-adapters.test.ts similarity index 100% rename from components/drivers/test/generic-adapters.test.ts rename to packages/drivers/test/generic-adapters.test.ts diff --git a/components/drivers/test/node-postgres.test.ts b/packages/drivers/test/node-postgres.test.ts similarity index 100% rename from components/drivers/test/node-postgres.test.ts rename to packages/drivers/test/node-postgres.test.ts diff --git a/components/drivers/test/op-sqlite.test.ts b/packages/drivers/test/op-sqlite.test.ts similarity index 100% rename from components/drivers/test/op-sqlite.test.ts rename to packages/drivers/test/op-sqlite.test.ts diff --git a/components/drivers/test/pglite.test.ts b/packages/drivers/test/pglite.test.ts similarity index 100% rename from components/drivers/test/pglite.test.ts rename to packages/drivers/test/pglite.test.ts diff --git a/components/drivers/test/tauri-postgres.test.ts b/packages/drivers/test/tauri-postgres.test.ts similarity index 100% rename from components/drivers/test/tauri-postgres.test.ts rename to packages/drivers/test/tauri-postgres.test.ts diff --git a/components/drivers/test/wa-sqlite.test.ts b/packages/drivers/test/wa-sqlite.test.ts similarity index 100% rename from components/drivers/test/wa-sqlite.test.ts rename to packages/drivers/test/wa-sqlite.test.ts diff --git a/components/drivers/tsconfig.build.json b/packages/drivers/tsconfig.build.json similarity index 100% rename from components/drivers/tsconfig.build.json rename to packages/drivers/tsconfig.build.json diff --git a/components/drivers/tsconfig.json b/packages/drivers/tsconfig.json similarity index 100% rename from components/drivers/tsconfig.json rename to packages/drivers/tsconfig.json diff --git a/components/drivers/tsup.config.ts b/packages/drivers/tsup.config.ts similarity index 100% rename from components/drivers/tsup.config.ts rename to packages/drivers/tsup.config.ts diff --git a/components/electric/.dockerignore b/packages/electric/.dockerignore similarity index 100% rename from components/electric/.dockerignore rename to packages/electric/.dockerignore diff --git a/components/electric/.env.dev b/packages/electric/.env.dev similarity index 100% rename from components/electric/.env.dev rename to packages/electric/.env.dev diff --git a/components/electric/.env.test b/packages/electric/.env.test similarity index 100% rename from components/electric/.env.test rename to packages/electric/.env.test diff --git a/components/electric/.formatter.exs b/packages/electric/.formatter.exs similarity index 100% rename from components/electric/.formatter.exs rename to packages/electric/.formatter.exs diff --git a/components/electric/.gitignore b/packages/electric/.gitignore similarity index 100% rename from components/electric/.gitignore rename to packages/electric/.gitignore diff --git a/components/electric/CHANGELOG.md b/packages/electric/CHANGELOG.md similarity index 100% rename from components/electric/CHANGELOG.md rename to packages/electric/CHANGELOG.md diff --git a/components/electric/Dockerfile b/packages/electric/Dockerfile similarity index 100% rename from components/electric/Dockerfile rename to packages/electric/Dockerfile diff --git a/components/electric/Makefile b/packages/electric/Makefile similarity index 100% rename from components/electric/Makefile rename to packages/electric/Makefile diff --git a/components/electric/README.md b/packages/electric/README.md similarity index 100% rename from components/electric/README.md rename to packages/electric/README.md diff --git a/components/electric/config/runtime.exs b/packages/electric/config/runtime.exs similarity index 100% rename from components/electric/config/runtime.exs rename to packages/electric/config/runtime.exs diff --git a/components/electric/config/runtime.test.exs b/packages/electric/config/runtime.test.exs similarity index 100% rename from components/electric/config/runtime.test.exs rename to packages/electric/config/runtime.test.exs diff --git a/components/electric/config/ws_client_runtime.exs b/packages/electric/config/ws_client_runtime.exs similarity index 100% rename from components/electric/config/ws_client_runtime.exs rename to packages/electric/config/ws_client_runtime.exs diff --git a/components/electric/dev/compose.yaml b/packages/electric/dev/compose.yaml similarity index 100% rename from components/electric/dev/compose.yaml rename to packages/electric/dev/compose.yaml diff --git a/components/electric/dev/postgres.conf b/packages/electric/dev/postgres.conf similarity index 100% rename from components/electric/dev/postgres.conf rename to packages/electric/dev/postgres.conf diff --git a/components/electric/lib/electric.ex b/packages/electric/lib/electric.ex similarity index 100% rename from components/electric/lib/electric.ex rename to packages/electric/lib/electric.ex diff --git a/components/electric/lib/electric/application.ex b/packages/electric/lib/electric/application.ex similarity index 100% rename from components/electric/lib/electric/application.ex rename to packages/electric/lib/electric/application.ex diff --git a/components/electric/lib/electric/config.ex b/packages/electric/lib/electric/config.ex similarity index 100% rename from components/electric/lib/electric/config.ex rename to packages/electric/lib/electric/config.ex diff --git a/components/electric/lib/electric/ddlx/command.ex b/packages/electric/lib/electric/ddlx/command.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command.ex rename to packages/electric/lib/electric/ddlx/command.ex diff --git a/components/electric/lib/electric/ddlx/command/assign.ex b/packages/electric/lib/electric/ddlx/command/assign.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/assign.ex rename to packages/electric/lib/electric/ddlx/command/assign.ex diff --git a/components/electric/lib/electric/ddlx/command/common.ex b/packages/electric/lib/electric/ddlx/command/common.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/common.ex rename to packages/electric/lib/electric/ddlx/command/common.ex diff --git a/components/electric/lib/electric/ddlx/command/disable.ex b/packages/electric/lib/electric/ddlx/command/disable.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/disable.ex rename to packages/electric/lib/electric/ddlx/command/disable.ex diff --git a/components/electric/lib/electric/ddlx/command/enable.ex b/packages/electric/lib/electric/ddlx/command/enable.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/enable.ex rename to packages/electric/lib/electric/ddlx/command/enable.ex diff --git a/components/electric/lib/electric/ddlx/command/error.ex b/packages/electric/lib/electric/ddlx/command/error.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/error.ex rename to packages/electric/lib/electric/ddlx/command/error.ex diff --git a/components/electric/lib/electric/ddlx/command/grant.ex b/packages/electric/lib/electric/ddlx/command/grant.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/grant.ex rename to packages/electric/lib/electric/ddlx/command/grant.ex diff --git a/components/electric/lib/electric/ddlx/command/revoke.ex b/packages/electric/lib/electric/ddlx/command/revoke.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/revoke.ex rename to packages/electric/lib/electric/ddlx/command/revoke.ex diff --git a/components/electric/lib/electric/ddlx/command/sqlite.ex b/packages/electric/lib/electric/ddlx/command/sqlite.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/sqlite.ex rename to packages/electric/lib/electric/ddlx/command/sqlite.ex diff --git a/components/electric/lib/electric/ddlx/command/unassign.ex b/packages/electric/lib/electric/ddlx/command/unassign.ex similarity index 100% rename from components/electric/lib/electric/ddlx/command/unassign.ex rename to packages/electric/lib/electric/ddlx/command/unassign.ex diff --git a/components/electric/lib/electric/ddlx/ddlx.ex b/packages/electric/lib/electric/ddlx/ddlx.ex similarity index 100% rename from components/electric/lib/electric/ddlx/ddlx.ex rename to packages/electric/lib/electric/ddlx/ddlx.ex diff --git a/components/electric/lib/electric/ddlx/parser.ex b/packages/electric/lib/electric/ddlx/parser.ex similarity index 100% rename from components/electric/lib/electric/ddlx/parser.ex rename to packages/electric/lib/electric/ddlx/parser.ex diff --git a/components/electric/lib/electric/ddlx/parser/build.ex b/packages/electric/lib/electric/ddlx/parser/build.ex similarity index 100% rename from components/electric/lib/electric/ddlx/parser/build.ex rename to packages/electric/lib/electric/ddlx/parser/build.ex diff --git a/components/electric/lib/electric/ddlx/parser/macros.ex b/packages/electric/lib/electric/ddlx/parser/macros.ex similarity index 100% rename from components/electric/lib/electric/ddlx/parser/macros.ex rename to packages/electric/lib/electric/ddlx/parser/macros.ex diff --git a/components/electric/lib/electric/ddlx/parser/tokenizer.ex b/packages/electric/lib/electric/ddlx/parser/tokenizer.ex similarity index 100% rename from components/electric/lib/electric/ddlx/parser/tokenizer.ex rename to packages/electric/lib/electric/ddlx/parser/tokenizer.ex diff --git a/components/electric/lib/electric/ddlx/readme.md b/packages/electric/lib/electric/ddlx/readme.md similarity index 100% rename from components/electric/lib/electric/ddlx/readme.md rename to packages/electric/lib/electric/ddlx/readme.md diff --git a/components/electric/lib/electric/errors.ex b/packages/electric/lib/electric/errors.ex similarity index 100% rename from components/electric/lib/electric/errors.ex rename to packages/electric/lib/electric/errors.ex diff --git a/components/electric/lib/electric/features.ex b/packages/electric/lib/electric/features.ex similarity index 100% rename from components/electric/lib/electric/features.ex rename to packages/electric/lib/electric/features.ex diff --git a/components/electric/lib/electric/plug/migrations.ex b/packages/electric/lib/electric/plug/migrations.ex similarity index 100% rename from components/electric/lib/electric/plug/migrations.ex rename to packages/electric/lib/electric/plug/migrations.ex diff --git a/components/electric/lib/electric/plug/proxy_websocket_plug.ex b/packages/electric/lib/electric/plug/proxy_websocket_plug.ex similarity index 100% rename from components/electric/lib/electric/plug/proxy_websocket_plug.ex rename to packages/electric/lib/electric/plug/proxy_websocket_plug.ex diff --git a/components/electric/lib/electric/plug/router.ex b/packages/electric/lib/electric/plug/router.ex similarity index 100% rename from components/electric/lib/electric/plug/router.ex rename to packages/electric/lib/electric/plug/router.ex diff --git a/components/electric/lib/electric/plug/satellite_websocket_plug.ex b/packages/electric/lib/electric/plug/satellite_websocket_plug.ex similarity index 100% rename from components/electric/lib/electric/plug/satellite_websocket_plug.ex rename to packages/electric/lib/electric/plug/satellite_websocket_plug.ex diff --git a/components/electric/lib/electric/plug/status.ex b/packages/electric/lib/electric/plug/status.ex similarity index 100% rename from components/electric/lib/electric/plug/status.ex rename to packages/electric/lib/electric/plug/status.ex diff --git a/components/electric/lib/electric/postgres.ex b/packages/electric/lib/electric/postgres.ex similarity index 100% rename from components/electric/lib/electric/postgres.ex rename to packages/electric/lib/electric/postgres.ex diff --git a/components/electric/lib/electric/postgres/cached_wal/api.ex b/packages/electric/lib/electric/postgres/cached_wal/api.ex similarity index 100% rename from components/electric/lib/electric/postgres/cached_wal/api.ex rename to packages/electric/lib/electric/postgres/cached_wal/api.ex diff --git a/components/electric/lib/electric/postgres/cached_wal/ets_backed.ex b/packages/electric/lib/electric/postgres/cached_wal/ets_backed.ex similarity index 100% rename from components/electric/lib/electric/postgres/cached_wal/ets_backed.ex rename to packages/electric/lib/electric/postgres/cached_wal/ets_backed.ex diff --git a/components/electric/lib/electric/postgres/cached_wal/producer.ex b/packages/electric/lib/electric/postgres/cached_wal/producer.ex similarity index 100% rename from components/electric/lib/electric/postgres/cached_wal/producer.ex rename to packages/electric/lib/electric/postgres/cached_wal/producer.ex diff --git a/components/electric/lib/electric/postgres/dialect.ex b/packages/electric/lib/electric/postgres/dialect.ex similarity index 100% rename from components/electric/lib/electric/postgres/dialect.ex rename to packages/electric/lib/electric/postgres/dialect.ex diff --git a/components/electric/lib/electric/postgres/dialect/builder.ex b/packages/electric/lib/electric/postgres/dialect/builder.ex similarity index 100% rename from components/electric/lib/electric/postgres/dialect/builder.ex rename to packages/electric/lib/electric/postgres/dialect/builder.ex diff --git a/components/electric/lib/electric/postgres/dialect/postgresql.ex b/packages/electric/lib/electric/postgres/dialect/postgresql.ex similarity index 100% rename from components/electric/lib/electric/postgres/dialect/postgresql.ex rename to packages/electric/lib/electric/postgres/dialect/postgresql.ex diff --git a/components/electric/lib/electric/postgres/dialect/sqlite.ex b/packages/electric/lib/electric/postgres/dialect/sqlite.ex similarity index 100% rename from components/electric/lib/electric/postgres/dialect/sqlite.ex rename to packages/electric/lib/electric/postgres/dialect/sqlite.ex diff --git a/components/electric/lib/electric/postgres/extension.ex b/packages/electric/lib/electric/postgres/extension.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension.ex rename to packages/electric/lib/electric/postgres/extension.ex diff --git a/components/electric/lib/electric/postgres/extension/functions.ex b/packages/electric/lib/electric/postgres/extension/functions.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/functions.ex rename to packages/electric/lib/electric/postgres/extension/functions.ex diff --git a/components/electric/lib/electric/postgres/extension/migration.ex b/packages/electric/lib/electric/postgres/extension/migration.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migration.ex rename to packages/electric/lib/electric/postgres/extension/migration.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230328113927_setup_extension.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230328113927_setup_extension.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230328113927_setup_extension.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230328113927_setup_extension.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/LICENSE.md b/packages/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/LICENSE.md similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/LICENSE.md rename to packages/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/LICENSE.md diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/ddlx-14.sql b/packages/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/ddlx-14.sql similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/ddlx-14.sql rename to packages/electric/lib/electric/postgres/extension/migrations/20230424154425_ddlx/ddlx-14.sql diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/electric_tag_type_and_operators.sql b/packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/electric_tag_type_and_operators.sql similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/electric_tag_type_and_operators.sql rename to packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/electric_tag_type_and_operators.sql diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/shadow_table_creation_and_update.sql b/packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/shadow_table_creation_and_update.sql similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/shadow_table_creation_and_update.sql rename to packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/shadow_table_creation_and_update.sql diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/trigger_function_installers.sql b/packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/trigger_function_installers.sql similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/trigger_function_installers.sql rename to packages/electric/lib/electric/postgres/extension/migrations/20230512000000_conflict_resolution_triggers/trigger_function_installers.sql diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230605141256_electrify_function.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230605141256_electrify_function.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230605141256_electrify_function.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230605141256_electrify_function.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230715000000_utilities_table.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230715000000_utilities_table.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230715000000_utilities_table.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230715000000_utilities_table.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/LICENSE.md b/packages/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/LICENSE.md similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/LICENSE.md rename to packages/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/LICENSE.md diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/ddlgen-14.sql.eex b/packages/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/ddlgen-14.sql.eex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/ddlgen-14.sql.eex rename to packages/electric/lib/electric/postgres/extension/migrations/20230814170123_rename_ddlx_functions/ddlgen-14.sql.eex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl/ddlx_init.sql.eex b/packages/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl/ddlx_init.sql.eex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl/ddlx_init.sql.eex rename to packages/electric/lib/electric/postgres/extension/migrations/20230814170745_electric_ddl/ddlx_init.sql.eex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230829000000_acknowledged_client_lsns_table.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230829000000_acknowledged_client_lsns_table.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230829000000_acknowledged_client_lsns_table.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230829000000_acknowledged_client_lsns_table.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230918115714_add_unique_constraint_ddl_commands.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230918115714_add_unique_constraint_ddl_commands.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230918115714_add_unique_constraint_ddl_commands.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230918115714_add_unique_constraint_ddl_commands.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230921161045_drop_event_triggers.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230921161045_drop_event_triggers.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230921161045_drop_event_triggers.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230921161045_drop_event_triggers.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20230921161418_proxy_compatibility.ex b/packages/electric/lib/electric/postgres/extension/migrations/20230921161418_proxy_compatibility.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20230921161418_proxy_compatibility.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20230921161418_proxy_compatibility.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20231009121515_allow_large_migrations.ex b/packages/electric/lib/electric/postgres/extension/migrations/20231009121515_allow_large_migrations.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20231009121515_allow_large_migrations.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20231009121515_allow_large_migrations.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20231010123118_add_priority_to_version.ex b/packages/electric/lib/electric/postgres/extension/migrations/20231010123118_add_priority_to_version.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20231010123118_add_priority_to_version.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20231010123118_add_priority_to_version.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20231016141000_convert_function_to_procedure.ex b/packages/electric/lib/electric/postgres/extension/migrations/20231016141000_convert_function_to_procedure.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20231016141000_convert_function_to_procedure.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20231016141000_convert_function_to_procedure.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always.ex b/packages/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always/replace_replica_triggers.sql b/packages/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always/replace_replica_triggers.sql similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always/replace_replica_triggers.sql rename to packages/electric/lib/electric/postgres/extension/migrations/20231206130400_convert_replica_triggers_to_always/replace_replica_triggers.sql diff --git a/components/electric/lib/electric/postgres/extension/migrations/20240110110200_drop_unused_functions.ex b/packages/electric/lib/electric/postgres/extension/migrations/20240110110200_drop_unused_functions.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20240110110200_drop_unused_functions.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20240110110200_drop_unused_functions.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20240205141200_reinstall_trigger_function__write_correct_max_tag.ex b/packages/electric/lib/electric/postgres/extension/migrations/20240205141200_reinstall_trigger_function__write_correct_max_tag.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20240205141200_reinstall_trigger_function__write_correct_max_tag.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20240205141200_reinstall_trigger_function__write_correct_max_tag.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20240213160300_drop_generate_electrified_sql_function.ex b/packages/electric/lib/electric/postgres/extension/migrations/20240213160300_drop_generate_electrified_sql_function.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20240213160300_drop_generate_electrified_sql_function.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20240213160300_drop_generate_electrified_sql_function.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20240417131000_client_reconnection_info_tables.ex b/packages/electric/lib/electric/postgres/extension/migrations/20240417131000_client_reconnection_info_tables.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20240417131000_client_reconnection_info_tables.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20240417131000_client_reconnection_info_tables.ex diff --git a/components/electric/lib/electric/postgres/extension/migrations/20240501000000_client_reconnection_unsub_points.ex b/packages/electric/lib/electric/postgres/extension/migrations/20240501000000_client_reconnection_unsub_points.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/migrations/20240501000000_client_reconnection_unsub_points.ex rename to packages/electric/lib/electric/postgres/extension/migrations/20240501000000_client_reconnection_unsub_points.ex diff --git a/components/electric/lib/electric/postgres/extension/schema_cache.ex b/packages/electric/lib/electric/postgres/extension/schema_cache.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/schema_cache.ex rename to packages/electric/lib/electric/postgres/extension/schema_cache.ex diff --git a/components/electric/lib/electric/postgres/extension/schema_cache/global.ex b/packages/electric/lib/electric/postgres/extension/schema_cache/global.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/schema_cache/global.ex rename to packages/electric/lib/electric/postgres/extension/schema_cache/global.ex diff --git a/components/electric/lib/electric/postgres/extension/schema_loader.ex b/packages/electric/lib/electric/postgres/extension/schema_loader.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/schema_loader.ex rename to packages/electric/lib/electric/postgres/extension/schema_loader.ex diff --git a/components/electric/lib/electric/postgres/extension/schema_loader/epgsql.ex b/packages/electric/lib/electric/postgres/extension/schema_loader/epgsql.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/schema_loader/epgsql.ex rename to packages/electric/lib/electric/postgres/extension/schema_loader/epgsql.ex diff --git a/components/electric/lib/electric/postgres/extension/schema_loader/version.ex b/packages/electric/lib/electric/postgres/extension/schema_loader/version.ex similarity index 100% rename from components/electric/lib/electric/postgres/extension/schema_loader/version.ex rename to packages/electric/lib/electric/postgres/extension/schema_loader/version.ex diff --git a/components/electric/lib/electric/postgres/logical_replication.ex b/packages/electric/lib/electric/postgres/logical_replication.ex similarity index 100% rename from components/electric/lib/electric/postgres/logical_replication.ex rename to packages/electric/lib/electric/postgres/logical_replication.ex diff --git a/components/electric/lib/electric/postgres/logical_replication/decoder.ex b/packages/electric/lib/electric/postgres/logical_replication/decoder.ex similarity index 100% rename from components/electric/lib/electric/postgres/logical_replication/decoder.ex rename to packages/electric/lib/electric/postgres/logical_replication/decoder.ex diff --git a/components/electric/lib/electric/postgres/logical_replication/encoder.ex b/packages/electric/lib/electric/postgres/logical_replication/encoder.ex similarity index 100% rename from components/electric/lib/electric/postgres/logical_replication/encoder.ex rename to packages/electric/lib/electric/postgres/logical_replication/encoder.ex diff --git a/components/electric/lib/electric/postgres/logical_replication/messages.ex b/packages/electric/lib/electric/postgres/logical_replication/messages.ex similarity index 100% rename from components/electric/lib/electric/postgres/logical_replication/messages.ex rename to packages/electric/lib/electric/postgres/logical_replication/messages.ex diff --git a/components/electric/lib/electric/postgres/lsn.ex b/packages/electric/lib/electric/postgres/lsn.ex similarity index 100% rename from components/electric/lib/electric/postgres/lsn.ex rename to packages/electric/lib/electric/postgres/lsn.ex diff --git a/components/electric/lib/electric/postgres/messaging.ex b/packages/electric/lib/electric/postgres/messaging.ex similarity index 100% rename from components/electric/lib/electric/postgres/messaging.ex rename to packages/electric/lib/electric/postgres/messaging.ex diff --git a/components/electric/lib/electric/postgres/name_parser.ex b/packages/electric/lib/electric/postgres/name_parser.ex similarity index 100% rename from components/electric/lib/electric/postgres/name_parser.ex rename to packages/electric/lib/electric/postgres/name_parser.ex diff --git a/components/electric/lib/electric/postgres/oid_database.ex b/packages/electric/lib/electric/postgres/oid_database.ex similarity index 100% rename from components/electric/lib/electric/postgres/oid_database.ex rename to packages/electric/lib/electric/postgres/oid_database.ex diff --git a/components/electric/lib/electric/postgres/oid_database/default_types.csv b/packages/electric/lib/electric/postgres/oid_database/default_types.csv similarity index 100% rename from components/electric/lib/electric/postgres/oid_database/default_types.csv rename to packages/electric/lib/electric/postgres/oid_database/default_types.csv diff --git a/components/electric/lib/electric/postgres/oid_database/defaults.ex b/packages/electric/lib/electric/postgres/oid_database/defaults.ex similarity index 100% rename from components/electric/lib/electric/postgres/oid_database/defaults.ex rename to packages/electric/lib/electric/postgres/oid_database/defaults.ex diff --git a/components/electric/lib/electric/postgres/oid_database/pg_type.ex b/packages/electric/lib/electric/postgres/oid_database/pg_type.ex similarity index 100% rename from components/electric/lib/electric/postgres/oid_database/pg_type.ex rename to packages/electric/lib/electric/postgres/oid_database/pg_type.ex diff --git a/components/electric/lib/electric/postgres/pg_query.ex b/packages/electric/lib/electric/postgres/pg_query.ex similarity index 100% rename from components/electric/lib/electric/postgres/pg_query.ex rename to packages/electric/lib/electric/postgres/pg_query.ex diff --git a/components/electric/lib/electric/postgres/proxy.ex b/packages/electric/lib/electric/postgres/proxy.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy.ex rename to packages/electric/lib/electric/postgres/proxy.ex diff --git a/components/electric/lib/electric/postgres/proxy/errors.ex b/packages/electric/lib/electric/postgres/proxy/errors.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/errors.ex rename to packages/electric/lib/electric/postgres/proxy/errors.ex diff --git a/components/electric/lib/electric/postgres/proxy/handler.ex b/packages/electric/lib/electric/postgres/proxy/handler.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/handler.ex rename to packages/electric/lib/electric/postgres/proxy/handler.ex diff --git a/components/electric/lib/electric/postgres/proxy/handler/tracing.ex b/packages/electric/lib/electric/postgres/proxy/handler/tracing.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/handler/tracing.ex rename to packages/electric/lib/electric/postgres/proxy/handler/tracing.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector.ex b/packages/electric/lib/electric/postgres/proxy/injector.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector.ex rename to packages/electric/lib/electric/postgres/proxy/injector.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/electric.ex b/packages/electric/lib/electric/postgres/proxy/injector/electric.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/electric.ex rename to packages/electric/lib/electric/postgres/proxy/injector/electric.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/operation.ex b/packages/electric/lib/electric/postgres/proxy/injector/operation.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/operation.ex rename to packages/electric/lib/electric/postgres/proxy/injector/operation.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/prisma.ex b/packages/electric/lib/electric/postgres/proxy/injector/prisma.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/prisma.ex rename to packages/electric/lib/electric/postgres/proxy/injector/prisma.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/send.ex b/packages/electric/lib/electric/postgres/proxy/injector/send.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/send.ex rename to packages/electric/lib/electric/postgres/proxy/injector/send.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/shadow.ex b/packages/electric/lib/electric/postgres/proxy/injector/shadow.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/shadow.ex rename to packages/electric/lib/electric/postgres/proxy/injector/shadow.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/state.ex b/packages/electric/lib/electric/postgres/proxy/injector/state.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/state.ex rename to packages/electric/lib/electric/postgres/proxy/injector/state.ex diff --git a/components/electric/lib/electric/postgres/proxy/injector/transparent.ex b/packages/electric/lib/electric/postgres/proxy/injector/transparent.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/injector/transparent.ex rename to packages/electric/lib/electric/postgres/proxy/injector/transparent.ex diff --git a/components/electric/lib/electric/postgres/proxy/parser.ex b/packages/electric/lib/electric/postgres/proxy/parser.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/parser.ex rename to packages/electric/lib/electric/postgres/proxy/parser.ex diff --git a/components/electric/lib/electric/postgres/proxy/prisma.ex b/packages/electric/lib/electric/postgres/proxy/prisma.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/prisma.ex rename to packages/electric/lib/electric/postgres/proxy/prisma.ex diff --git a/components/electric/lib/electric/postgres/proxy/prisma/query.ex b/packages/electric/lib/electric/postgres/proxy/prisma/query.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/prisma/query.ex rename to packages/electric/lib/electric/postgres/proxy/prisma/query.ex diff --git a/components/electric/lib/electric/postgres/proxy/query_analyser.ex b/packages/electric/lib/electric/postgres/proxy/query_analyser.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/query_analyser.ex rename to packages/electric/lib/electric/postgres/proxy/query_analyser.ex diff --git a/components/electric/lib/electric/postgres/proxy/sasl.ex b/packages/electric/lib/electric/postgres/proxy/sasl.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/sasl.ex rename to packages/electric/lib/electric/postgres/proxy/sasl.ex diff --git a/components/electric/lib/electric/postgres/proxy/sasl/scram_locked_cache.ex b/packages/electric/lib/electric/postgres/proxy/sasl/scram_locked_cache.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/sasl/scram_locked_cache.ex rename to packages/electric/lib/electric/postgres/proxy/sasl/scram_locked_cache.ex diff --git a/components/electric/lib/electric/postgres/proxy/upstream_connection.ex b/packages/electric/lib/electric/postgres/proxy/upstream_connection.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/upstream_connection.ex rename to packages/electric/lib/electric/postgres/proxy/upstream_connection.ex diff --git a/components/electric/lib/electric/postgres/proxy/websocket_server.ex b/packages/electric/lib/electric/postgres/proxy/websocket_server.ex similarity index 100% rename from components/electric/lib/electric/postgres/proxy/websocket_server.ex rename to packages/electric/lib/electric/postgres/proxy/websocket_server.ex diff --git a/components/electric/lib/electric/postgres/replication.ex b/packages/electric/lib/electric/postgres/replication.ex similarity index 100% rename from components/electric/lib/electric/postgres/replication.ex rename to packages/electric/lib/electric/postgres/replication.ex diff --git a/components/electric/lib/electric/postgres/repo.ex b/packages/electric/lib/electric/postgres/repo.ex similarity index 100% rename from components/electric/lib/electric/postgres/repo.ex rename to packages/electric/lib/electric/postgres/repo.ex diff --git a/components/electric/lib/electric/postgres/repo/client.ex b/packages/electric/lib/electric/postgres/repo/client.ex similarity index 100% rename from components/electric/lib/electric/postgres/repo/client.ex rename to packages/electric/lib/electric/postgres/repo/client.ex diff --git a/components/electric/lib/electric/postgres/schema.ex b/packages/electric/lib/electric/postgres/schema.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema.ex rename to packages/electric/lib/electric/postgres/schema.ex diff --git a/components/electric/lib/electric/postgres/schema/ast.ex b/packages/electric/lib/electric/postgres/schema/ast.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/ast.ex rename to packages/electric/lib/electric/postgres/schema/ast.ex diff --git a/components/electric/lib/electric/postgres/schema/catalog.ex b/packages/electric/lib/electric/postgres/schema/catalog.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/catalog.ex rename to packages/electric/lib/electric/postgres/schema/catalog.ex diff --git a/components/electric/lib/electric/postgres/schema/proto.ex b/packages/electric/lib/electric/postgres/schema/proto.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/proto.ex rename to packages/electric/lib/electric/postgres/schema/proto.ex diff --git a/components/electric/lib/electric/postgres/schema/proto/messages.ex b/packages/electric/lib/electric/postgres/schema/proto/messages.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/proto/messages.ex rename to packages/electric/lib/electric/postgres/schema/proto/messages.ex diff --git a/components/electric/lib/electric/postgres/schema/update.ex b/packages/electric/lib/electric/postgres/schema/update.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/update.ex rename to packages/electric/lib/electric/postgres/schema/update.ex diff --git a/components/electric/lib/electric/postgres/schema/update/alter_table.ex b/packages/electric/lib/electric/postgres/schema/update/alter_table.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/update/alter_table.ex rename to packages/electric/lib/electric/postgres/schema/update/alter_table.ex diff --git a/components/electric/lib/electric/postgres/schema/update/cascade.ex b/packages/electric/lib/electric/postgres/schema/update/cascade.ex similarity index 100% rename from components/electric/lib/electric/postgres/schema/update/cascade.ex rename to packages/electric/lib/electric/postgres/schema/update/cascade.ex diff --git a/components/electric/lib/electric/postgres/shadow_table_transformation.ex b/packages/electric/lib/electric/postgres/shadow_table_transformation.ex similarity index 100% rename from components/electric/lib/electric/postgres/shadow_table_transformation.ex rename to packages/electric/lib/electric/postgres/shadow_table_transformation.ex diff --git a/components/electric/lib/electric/postgres/types/array.ex b/packages/electric/lib/electric/postgres/types/array.ex similarity index 100% rename from components/electric/lib/electric/postgres/types/array.ex rename to packages/electric/lib/electric/postgres/types/array.ex diff --git a/components/electric/lib/electric/postgres/types/bytea.ex b/packages/electric/lib/electric/postgres/types/bytea.ex similarity index 100% rename from components/electric/lib/electric/postgres/types/bytea.ex rename to packages/electric/lib/electric/postgres/types/bytea.ex diff --git a/components/electric/lib/electric/postgres/types/datetime.ex b/packages/electric/lib/electric/postgres/types/datetime.ex similarity index 100% rename from components/electric/lib/electric/postgres/types/datetime.ex rename to packages/electric/lib/electric/postgres/types/datetime.ex diff --git a/components/electric/lib/electric/postgres/types/electric_tag.ex b/packages/electric/lib/electric/postgres/types/electric_tag.ex similarity index 100% rename from components/electric/lib/electric/postgres/types/electric_tag.ex rename to packages/electric/lib/electric/postgres/types/electric_tag.ex diff --git a/components/electric/lib/electric/replication/changes.ex b/packages/electric/lib/electric/replication/changes.ex similarity index 100% rename from components/electric/lib/electric/replication/changes.ex rename to packages/electric/lib/electric/replication/changes.ex diff --git a/components/electric/lib/electric/replication/changes/ownership.ex b/packages/electric/lib/electric/replication/changes/ownership.ex similarity index 100% rename from components/electric/lib/electric/replication/changes/ownership.ex rename to packages/electric/lib/electric/replication/changes/ownership.ex diff --git a/components/electric/lib/electric/replication/connectors.ex b/packages/electric/lib/electric/replication/connectors.ex similarity index 100% rename from components/electric/lib/electric/replication/connectors.ex rename to packages/electric/lib/electric/replication/connectors.ex diff --git a/components/electric/lib/electric/replication/eval/env.ex b/packages/electric/lib/electric/replication/eval/env.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/env.ex rename to packages/electric/lib/electric/replication/eval/env.ex diff --git a/components/electric/lib/electric/replication/eval/env/basic_types.ex b/packages/electric/lib/electric/replication/eval/env/basic_types.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/env/basic_types.ex rename to packages/electric/lib/electric/replication/eval/env/basic_types.ex diff --git a/components/electric/lib/electric/replication/eval/env/explicit_casts.ex b/packages/electric/lib/electric/replication/eval/env/explicit_casts.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/env/explicit_casts.ex rename to packages/electric/lib/electric/replication/eval/env/explicit_casts.ex diff --git a/components/electric/lib/electric/replication/eval/env/implicit_casts.ex b/packages/electric/lib/electric/replication/eval/env/implicit_casts.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/env/implicit_casts.ex rename to packages/electric/lib/electric/replication/eval/env/implicit_casts.ex diff --git a/components/electric/lib/electric/replication/eval/env/known_functions.ex b/packages/electric/lib/electric/replication/eval/env/known_functions.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/env/known_functions.ex rename to packages/electric/lib/electric/replication/eval/env/known_functions.ex diff --git a/components/electric/lib/electric/replication/eval/expr.ex b/packages/electric/lib/electric/replication/eval/expr.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/expr.ex rename to packages/electric/lib/electric/replication/eval/expr.ex diff --git a/components/electric/lib/electric/replication/eval/known_definition.ex b/packages/electric/lib/electric/replication/eval/known_definition.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/known_definition.ex rename to packages/electric/lib/electric/replication/eval/known_definition.ex diff --git a/components/electric/lib/electric/replication/eval/lookups.ex b/packages/electric/lib/electric/replication/eval/lookups.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/lookups.ex rename to packages/electric/lib/electric/replication/eval/lookups.ex diff --git a/components/electric/lib/electric/replication/eval/parser.ex b/packages/electric/lib/electric/replication/eval/parser.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/parser.ex rename to packages/electric/lib/electric/replication/eval/parser.ex diff --git a/components/electric/lib/electric/replication/eval/runner.ex b/packages/electric/lib/electric/replication/eval/runner.ex similarity index 100% rename from components/electric/lib/electric/replication/eval/runner.ex rename to packages/electric/lib/electric/replication/eval/runner.ex diff --git a/components/electric/lib/electric/replication/initial_sync.ex b/packages/electric/lib/electric/replication/initial_sync.ex similarity index 100% rename from components/electric/lib/electric/replication/initial_sync.ex rename to packages/electric/lib/electric/replication/initial_sync.ex diff --git a/components/electric/lib/electric/replication/postgres/client.ex b/packages/electric/lib/electric/replication/postgres/client.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres/client.ex rename to packages/electric/lib/electric/replication/postgres/client.ex diff --git a/components/electric/lib/electric/replication/postgres/logical_replication_producer.ex b/packages/electric/lib/electric/replication/postgres/logical_replication_producer.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres/logical_replication_producer.ex rename to packages/electric/lib/electric/replication/postgres/logical_replication_producer.ex diff --git a/components/electric/lib/electric/replication/postgres/migration_consumer.ex b/packages/electric/lib/electric/replication/postgres/migration_consumer.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres/migration_consumer.ex rename to packages/electric/lib/electric/replication/postgres/migration_consumer.ex diff --git a/components/electric/lib/electric/replication/postgres/slot_server.ex b/packages/electric/lib/electric/replication/postgres/slot_server.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres/slot_server.ex rename to packages/electric/lib/electric/replication/postgres/slot_server.ex diff --git a/components/electric/lib/electric/replication/postgres/tcp_server.ex b/packages/electric/lib/electric/replication/postgres/tcp_server.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres/tcp_server.ex rename to packages/electric/lib/electric/replication/postgres/tcp_server.ex diff --git a/components/electric/lib/electric/replication/postgres/writer.ex b/packages/electric/lib/electric/replication/postgres/writer.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres/writer.ex rename to packages/electric/lib/electric/replication/postgres/writer.ex diff --git a/components/electric/lib/electric/replication/postgres_connector.ex b/packages/electric/lib/electric/replication/postgres_connector.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres_connector.ex rename to packages/electric/lib/electric/replication/postgres_connector.ex diff --git a/components/electric/lib/electric/replication/postgres_connector_sup.ex b/packages/electric/lib/electric/replication/postgres_connector_sup.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres_connector_sup.ex rename to packages/electric/lib/electric/replication/postgres_connector_sup.ex diff --git a/components/electric/lib/electric/replication/postgres_interop/casting.ex b/packages/electric/lib/electric/replication/postgres_interop/casting.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres_interop/casting.ex rename to packages/electric/lib/electric/replication/postgres_interop/casting.ex diff --git a/components/electric/lib/electric/replication/postgres_manager.ex b/packages/electric/lib/electric/replication/postgres_manager.ex similarity index 100% rename from components/electric/lib/electric/replication/postgres_manager.ex rename to packages/electric/lib/electric/replication/postgres_manager.ex diff --git a/components/electric/lib/electric/replication/satellite_collector_consumer.ex b/packages/electric/lib/electric/replication/satellite_collector_consumer.ex similarity index 100% rename from components/electric/lib/electric/replication/satellite_collector_consumer.ex rename to packages/electric/lib/electric/replication/satellite_collector_consumer.ex diff --git a/components/electric/lib/electric/replication/satellite_collector_producer.ex b/packages/electric/lib/electric/replication/satellite_collector_producer.ex similarity index 100% rename from components/electric/lib/electric/replication/satellite_collector_producer.ex rename to packages/electric/lib/electric/replication/satellite_collector_producer.ex diff --git a/components/electric/lib/electric/replication/satellite_connector.ex b/packages/electric/lib/electric/replication/satellite_connector.ex similarity index 100% rename from components/electric/lib/electric/replication/satellite_connector.ex rename to packages/electric/lib/electric/replication/satellite_connector.ex diff --git a/components/electric/lib/electric/replication/shapes.ex b/packages/electric/lib/electric/replication/shapes.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes.ex rename to packages/electric/lib/electric/replication/shapes.ex diff --git a/components/electric/lib/electric/replication/shapes/change_processing.ex b/packages/electric/lib/electric/replication/shapes/change_processing.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes/change_processing.ex rename to packages/electric/lib/electric/replication/shapes/change_processing.ex diff --git a/components/electric/lib/electric/replication/shapes/change_processing/reduction.ex b/packages/electric/lib/electric/replication/shapes/change_processing/reduction.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes/change_processing/reduction.ex rename to packages/electric/lib/electric/replication/shapes/change_processing/reduction.ex diff --git a/components/electric/lib/electric/replication/shapes/querying.ex b/packages/electric/lib/electric/replication/shapes/querying.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes/querying.ex rename to packages/electric/lib/electric/replication/shapes/querying.ex diff --git a/components/electric/lib/electric/replication/shapes/sent_rows_graph.ex b/packages/electric/lib/electric/replication/shapes/sent_rows_graph.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes/sent_rows_graph.ex rename to packages/electric/lib/electric/replication/shapes/sent_rows_graph.ex diff --git a/components/electric/lib/electric/replication/shapes/shape_request.ex b/packages/electric/lib/electric/replication/shapes/shape_request.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes/shape_request.ex rename to packages/electric/lib/electric/replication/shapes/shape_request.ex diff --git a/components/electric/lib/electric/replication/shapes/shape_request/validation.ex b/packages/electric/lib/electric/replication/shapes/shape_request/validation.ex similarity index 100% rename from components/electric/lib/electric/replication/shapes/shape_request/validation.ex rename to packages/electric/lib/electric/replication/shapes/shape_request/validation.ex diff --git a/components/electric/lib/electric/retry.ex b/packages/electric/lib/electric/retry.ex similarity index 100% rename from components/electric/lib/electric/retry.ex rename to packages/electric/lib/electric/retry.ex diff --git a/components/electric/lib/electric/satellite/auth.ex b/packages/electric/lib/electric/satellite/auth.ex similarity index 100% rename from components/electric/lib/electric/satellite/auth.ex rename to packages/electric/lib/electric/satellite/auth.ex diff --git a/components/electric/lib/electric/satellite/auth/insecure.ex b/packages/electric/lib/electric/satellite/auth/insecure.ex similarity index 100% rename from components/electric/lib/electric/satellite/auth/insecure.ex rename to packages/electric/lib/electric/satellite/auth/insecure.ex diff --git a/components/electric/lib/electric/satellite/auth/jwt_util.ex b/packages/electric/lib/electric/satellite/auth/jwt_util.ex similarity index 100% rename from components/electric/lib/electric/satellite/auth/jwt_util.ex rename to packages/electric/lib/electric/satellite/auth/jwt_util.ex diff --git a/components/electric/lib/electric/satellite/auth/secure.ex b/packages/electric/lib/electric/satellite/auth/secure.ex similarity index 100% rename from components/electric/lib/electric/satellite/auth/secure.ex rename to packages/electric/lib/electric/satellite/auth/secure.ex diff --git a/components/electric/lib/electric/satellite/auth/token_error.ex b/packages/electric/lib/electric/satellite/auth/token_error.ex similarity index 100% rename from components/electric/lib/electric/satellite/auth/token_error.ex rename to packages/electric/lib/electric/satellite/auth/token_error.ex diff --git a/components/electric/lib/electric/satellite/client_manager.ex b/packages/electric/lib/electric/satellite/client_manager.ex similarity index 100% rename from components/electric/lib/electric/satellite/client_manager.ex rename to packages/electric/lib/electric/satellite/client_manager.ex diff --git a/components/electric/lib/electric/satellite/client_reconnection_info.ex b/packages/electric/lib/electric/satellite/client_reconnection_info.ex similarity index 100% rename from components/electric/lib/electric/satellite/client_reconnection_info.ex rename to packages/electric/lib/electric/satellite/client_reconnection_info.ex diff --git a/components/electric/lib/electric/satellite/lsn.ex b/packages/electric/lib/electric/satellite/lsn.ex similarity index 100% rename from components/electric/lib/electric/satellite/lsn.ex rename to packages/electric/lib/electric/satellite/lsn.ex diff --git a/components/electric/lib/electric/satellite/protobuf.ex b/packages/electric/lib/electric/satellite/protobuf.ex similarity index 100% rename from components/electric/lib/electric/satellite/protobuf.ex rename to packages/electric/lib/electric/satellite/protobuf.ex diff --git a/components/electric/lib/electric/satellite/protobuf_messages.ex b/packages/electric/lib/electric/satellite/protobuf_messages.ex similarity index 100% rename from components/electric/lib/electric/satellite/protobuf_messages.ex rename to packages/electric/lib/electric/satellite/protobuf_messages.ex diff --git a/components/electric/lib/electric/satellite/protocol.ex b/packages/electric/lib/electric/satellite/protocol.ex similarity index 100% rename from components/electric/lib/electric/satellite/protocol.ex rename to packages/electric/lib/electric/satellite/protocol.ex diff --git a/components/electric/lib/electric/satellite/protocol/in_rep.ex b/packages/electric/lib/electric/satellite/protocol/in_rep.ex similarity index 100% rename from components/electric/lib/electric/satellite/protocol/in_rep.ex rename to packages/electric/lib/electric/satellite/protocol/in_rep.ex diff --git a/components/electric/lib/electric/satellite/protocol/out_rep.ex b/packages/electric/lib/electric/satellite/protocol/out_rep.ex similarity index 100% rename from components/electric/lib/electric/satellite/protocol/out_rep.ex rename to packages/electric/lib/electric/satellite/protocol/out_rep.ex diff --git a/components/electric/lib/electric/satellite/protocol/state.ex b/packages/electric/lib/electric/satellite/protocol/state.ex similarity index 100% rename from components/electric/lib/electric/satellite/protocol/state.ex rename to packages/electric/lib/electric/satellite/protocol/state.ex diff --git a/components/electric/lib/electric/satellite/protocol/telemetry.ex b/packages/electric/lib/electric/satellite/protocol/telemetry.ex similarity index 100% rename from components/electric/lib/electric/satellite/protocol/telemetry.ex rename to packages/electric/lib/electric/satellite/protocol/telemetry.ex diff --git a/components/electric/lib/electric/satellite/serialization.ex b/packages/electric/lib/electric/satellite/serialization.ex similarity index 100% rename from components/electric/lib/electric/satellite/serialization.ex rename to packages/electric/lib/electric/satellite/serialization.ex diff --git a/components/electric/lib/electric/satellite/write_validation.ex b/packages/electric/lib/electric/satellite/write_validation.ex similarity index 100% rename from components/electric/lib/electric/satellite/write_validation.ex rename to packages/electric/lib/electric/satellite/write_validation.ex diff --git a/components/electric/lib/electric/satellite/write_validation/immutable_primary_key.ex b/packages/electric/lib/electric/satellite/write_validation/immutable_primary_key.ex similarity index 100% rename from components/electric/lib/electric/satellite/write_validation/immutable_primary_key.ex rename to packages/electric/lib/electric/satellite/write_validation/immutable_primary_key.ex diff --git a/components/electric/lib/electric/satellite/ws_server.ex b/packages/electric/lib/electric/satellite/ws_server.ex similarity index 100% rename from components/electric/lib/electric/satellite/ws_server.ex rename to packages/electric/lib/electric/satellite/ws_server.ex diff --git a/components/electric/lib/electric/telemetry.ex b/packages/electric/lib/electric/telemetry.ex similarity index 100% rename from components/electric/lib/electric/telemetry.ex rename to packages/electric/lib/electric/telemetry.ex diff --git a/components/electric/lib/electric/telemetry/call_home_reporter.ex b/packages/electric/lib/electric/telemetry/call_home_reporter.ex similarity index 100% rename from components/electric/lib/electric/telemetry/call_home_reporter.ex rename to packages/electric/lib/electric/telemetry/call_home_reporter.ex diff --git a/components/electric/lib/electric/telemetry/metrics.ex b/packages/electric/lib/electric/telemetry/metrics.ex similarity index 100% rename from components/electric/lib/electric/telemetry/metrics.ex rename to packages/electric/lib/electric/telemetry/metrics.ex diff --git a/components/electric/lib/electric/telemetry/open_telemetry.ex b/packages/electric/lib/electric/telemetry/open_telemetry.ex similarity index 100% rename from components/electric/lib/electric/telemetry/open_telemetry.ex rename to packages/electric/lib/electric/telemetry/open_telemetry.ex diff --git a/components/electric/lib/electric/utils.ex b/packages/electric/lib/electric/utils.ex similarity index 100% rename from components/electric/lib/electric/utils.ex rename to packages/electric/lib/electric/utils.ex diff --git a/components/electric/lib/electric/utils/gen_stage.ex b/packages/electric/lib/electric/utils/gen_stage.ex similarity index 100% rename from components/electric/lib/electric/utils/gen_stage.ex rename to packages/electric/lib/electric/utils/gen_stage.ex diff --git a/components/electric/lib/mint/web_socket_client.ex b/packages/electric/lib/mint/web_socket_client.ex similarity index 100% rename from components/electric/lib/mint/web_socket_client.ex rename to packages/electric/lib/mint/web_socket_client.ex diff --git a/components/electric/lib/mix/tasks/electric.gen.token.ex b/packages/electric/lib/mix/tasks/electric.gen.token.ex similarity index 100% rename from components/electric/lib/mix/tasks/electric.gen.token.ex rename to packages/electric/lib/mix/tasks/electric.gen.token.ex diff --git a/components/electric/lib/pg_interop/interval.ex b/packages/electric/lib/pg_interop/interval.ex similarity index 100% rename from components/electric/lib/pg_interop/interval.ex rename to packages/electric/lib/pg_interop/interval.ex diff --git a/components/electric/lib/pg_interop/interval/iso8601_alternative_parser.ex b/packages/electric/lib/pg_interop/interval/iso8601_alternative_parser.ex similarity index 100% rename from components/electric/lib/pg_interop/interval/iso8601_alternative_parser.ex rename to packages/electric/lib/pg_interop/interval/iso8601_alternative_parser.ex diff --git a/components/electric/lib/pg_interop/interval/iso8601_formatter.ex b/packages/electric/lib/pg_interop/interval/iso8601_formatter.ex similarity index 100% rename from components/electric/lib/pg_interop/interval/iso8601_formatter.ex rename to packages/electric/lib/pg_interop/interval/iso8601_formatter.ex diff --git a/components/electric/lib/pg_interop/interval/iso8601_parser.ex b/packages/electric/lib/pg_interop/interval/iso8601_parser.ex similarity index 100% rename from components/electric/lib/pg_interop/interval/iso8601_parser.ex rename to packages/electric/lib/pg_interop/interval/iso8601_parser.ex diff --git a/components/electric/lib/pg_interop/interval/postgres_and_sql_parser.ex b/packages/electric/lib/pg_interop/interval/postgres_and_sql_parser.ex similarity index 100% rename from components/electric/lib/pg_interop/interval/postgres_and_sql_parser.ex rename to packages/electric/lib/pg_interop/interval/postgres_and_sql_parser.ex diff --git a/components/electric/lib/satellite/protocol_helpers.ex b/packages/electric/lib/satellite/protocol_helpers.ex similarity index 100% rename from components/electric/lib/satellite/protocol_helpers.ex rename to packages/electric/lib/satellite/protocol_helpers.ex diff --git a/components/electric/lib/satellite/test_ws_client.ex b/packages/electric/lib/satellite/test_ws_client.ex similarity index 100% rename from components/electric/lib/satellite/test_ws_client.ex rename to packages/electric/lib/satellite/test_ws_client.ex diff --git a/components/electric/mix.exs b/packages/electric/mix.exs similarity index 100% rename from components/electric/mix.exs rename to packages/electric/mix.exs diff --git a/components/electric/mix.lock b/packages/electric/mix.lock similarity index 100% rename from components/electric/mix.lock rename to packages/electric/mix.lock diff --git a/components/electric/package.json b/packages/electric/package.json similarity index 100% rename from components/electric/package.json rename to packages/electric/package.json diff --git a/components/electric/priv/sql_function_templates/__pg_version.sql.eex b/packages/electric/priv/sql_function_templates/__pg_version.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/__pg_version.sql.eex rename to packages/electric/priv/sql_function_templates/__pg_version.sql.eex diff --git a/components/electric/priv/sql_function_templates/__primary_key_list.sql.eex b/packages/electric/priv/sql_function_templates/__primary_key_list.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/__primary_key_list.sql.eex rename to packages/electric/priv/sql_function_templates/__primary_key_list.sql.eex diff --git a/components/electric/priv/sql_function_templates/__resolve_table_from_names.sql.eex b/packages/electric/priv/sql_function_templates/__resolve_table_from_names.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/__resolve_table_from_names.sql.eex rename to packages/electric/priv/sql_function_templates/__resolve_table_from_names.sql.eex diff --git a/components/electric/priv/sql_function_templates/__session_replication_role.sql.eex b/packages/electric/priv/sql_function_templates/__session_replication_role.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/__session_replication_role.sql.eex rename to packages/electric/priv/sql_function_templates/__session_replication_role.sql.eex diff --git a/components/electric/priv/sql_function_templates/__table_schema.sql.eex b/packages/electric/priv/sql_function_templates/__table_schema.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/__table_schema.sql.eex rename to packages/electric/priv/sql_function_templates/__table_schema.sql.eex diff --git a/components/electric/priv/sql_function_templates/alter_shadow_table.sql.eex b/packages/electric/priv/sql_function_templates/alter_shadow_table.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/alter_shadow_table.sql.eex rename to packages/electric/priv/sql_function_templates/alter_shadow_table.sql.eex diff --git a/components/electric/priv/sql_function_templates/assign_default_version.sql.eex b/packages/electric/priv/sql_function_templates/assign_default_version.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/assign_default_version.sql.eex rename to packages/electric/priv/sql_function_templates/assign_default_version.sql.eex diff --git a/components/electric/priv/sql_function_templates/assign_migration_version.sql.eex b/packages/electric/priv/sql_function_templates/assign_migration_version.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/assign_migration_version.sql.eex rename to packages/electric/priv/sql_function_templates/assign_migration_version.sql.eex diff --git a/components/electric/priv/sql_function_templates/capture_ddl.sql.eex b/packages/electric/priv/sql_function_templates/capture_ddl.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/capture_ddl.sql.eex rename to packages/electric/priv/sql_function_templates/capture_ddl.sql.eex diff --git a/components/electric/priv/sql_function_templates/current_transaction_id.sql.eex b/packages/electric/priv/sql_function_templates/current_transaction_id.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/current_transaction_id.sql.eex rename to packages/electric/priv/sql_function_templates/current_transaction_id.sql.eex diff --git a/components/electric/priv/sql_function_templates/current_xact_id.sql.eex b/packages/electric/priv/sql_function_templates/current_xact_id.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/current_xact_id.sql.eex rename to packages/electric/priv/sql_function_templates/current_xact_id.sql.eex diff --git a/components/electric/priv/sql_function_templates/current_xact_ts.sql.eex b/packages/electric/priv/sql_function_templates/current_xact_ts.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/current_xact_ts.sql.eex rename to packages/electric/priv/sql_function_templates/current_xact_ts.sql.eex diff --git a/components/electric/priv/sql_function_templates/ddlx/assign.sql.eex b/packages/electric/priv/sql_function_templates/ddlx/assign.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/ddlx/assign.sql.eex rename to packages/electric/priv/sql_function_templates/ddlx/assign.sql.eex diff --git a/components/electric/priv/sql_function_templates/ddlx/disable.sql.eex b/packages/electric/priv/sql_function_templates/ddlx/disable.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/ddlx/disable.sql.eex rename to packages/electric/priv/sql_function_templates/ddlx/disable.sql.eex diff --git a/components/electric/priv/sql_function_templates/ddlx/enable.sql.eex b/packages/electric/priv/sql_function_templates/ddlx/enable.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/ddlx/enable.sql.eex rename to packages/electric/priv/sql_function_templates/ddlx/enable.sql.eex diff --git a/components/electric/priv/sql_function_templates/ddlx/grant.sql.eex b/packages/electric/priv/sql_function_templates/ddlx/grant.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/ddlx/grant.sql.eex rename to packages/electric/priv/sql_function_templates/ddlx/grant.sql.eex diff --git a/components/electric/priv/sql_function_templates/ddlx/unassign.sql.eex b/packages/electric/priv/sql_function_templates/ddlx/unassign.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/ddlx/unassign.sql.eex rename to packages/electric/priv/sql_function_templates/ddlx/unassign.sql.eex diff --git a/components/electric/priv/sql_function_templates/electrify.sql.eex b/packages/electric/priv/sql_function_templates/electrify.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/electrify.sql.eex rename to packages/electric/priv/sql_function_templates/electrify.sql.eex diff --git a/components/electric/priv/sql_function_templates/electrify/__validate_table_column_defaults.sql.eex b/packages/electric/priv/sql_function_templates/electrify/__validate_table_column_defaults.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/electrify/__validate_table_column_defaults.sql.eex rename to packages/electric/priv/sql_function_templates/electrify/__validate_table_column_defaults.sql.eex diff --git a/components/electric/priv/sql_function_templates/electrify/__validate_table_column_types.sql.eex b/packages/electric/priv/sql_function_templates/electrify/__validate_table_column_types.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/electrify/__validate_table_column_types.sql.eex rename to packages/electric/priv/sql_function_templates/electrify/__validate_table_column_types.sql.eex diff --git a/components/electric/priv/sql_function_templates/electrify/__validate_table_constraints.sql.eex b/packages/electric/priv/sql_function_templates/electrify/__validate_table_constraints.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/electrify/__validate_table_constraints.sql.eex rename to packages/electric/priv/sql_function_templates/electrify/__validate_table_constraints.sql.eex diff --git a/components/electric/priv/sql_function_templates/electrify/__validate_table_schema.sql.eex b/packages/electric/priv/sql_function_templates/electrify/__validate_table_schema.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/electrify/__validate_table_schema.sql.eex rename to packages/electric/priv/sql_function_templates/electrify/__validate_table_schema.sql.eex diff --git a/components/electric/priv/sql_function_templates/electrify/generate_electrified_sql.sql.eex b/packages/electric/priv/sql_function_templates/electrify/generate_electrified_sql.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/electrify/generate_electrified_sql.sql.eex rename to packages/electric/priv/sql_function_templates/electrify/generate_electrified_sql.sql.eex diff --git a/components/electric/priv/sql_function_templates/find_fk_to_table.sql.eex b/packages/electric/priv/sql_function_templates/find_fk_to_table.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/find_fk_to_table.sql.eex rename to packages/electric/priv/sql_function_templates/find_fk_to_table.sql.eex diff --git a/components/electric/priv/sql_function_templates/function_installers/reinstall_trigger_function.sql.eex b/packages/electric/priv/sql_function_templates/function_installers/reinstall_trigger_function.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/function_installers/reinstall_trigger_function.sql.eex rename to packages/electric/priv/sql_function_templates/function_installers/reinstall_trigger_function.sql.eex diff --git a/components/electric/priv/sql_function_templates/function_installers/utils.sql.eex b/packages/electric/priv/sql_function_templates/function_installers/utils.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/function_installers/utils.sql.eex rename to packages/electric/priv/sql_function_templates/function_installers/utils.sql.eex diff --git a/components/electric/priv/sql_function_templates/install_conflict_resolution_functions.sql.eex b/packages/electric/priv/sql_function_templates/install_conflict_resolution_functions.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/install_conflict_resolution_functions.sql.eex rename to packages/electric/priv/sql_function_templates/install_conflict_resolution_functions.sql.eex diff --git a/components/electric/priv/sql_function_templates/install_function__send_self.sql.eex b/packages/electric/priv/sql_function_templates/install_function__send_self.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/install_function__send_self.sql.eex rename to packages/electric/priv/sql_function_templates/install_function__send_self.sql.eex diff --git a/components/electric/priv/sql_function_templates/install_function__write_correct_max_tag.sql.eex b/packages/electric/priv/sql_function_templates/install_function__write_correct_max_tag.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/install_function__write_correct_max_tag.sql.eex rename to packages/electric/priv/sql_function_templates/install_function__write_correct_max_tag.sql.eex diff --git a/components/electric/priv/sql_function_templates/install_functions_and_triggers.sql.eex b/packages/electric/priv/sql_function_templates/install_functions_and_triggers.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/install_functions_and_triggers.sql.eex rename to packages/electric/priv/sql_function_templates/install_functions_and_triggers.sql.eex diff --git a/components/electric/priv/sql_function_templates/list_foreign_keys.sql.eex b/packages/electric/priv/sql_function_templates/list_foreign_keys.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/list_foreign_keys.sql.eex rename to packages/electric/priv/sql_function_templates/list_foreign_keys.sql.eex diff --git a/components/electric/priv/sql_function_templates/lookup_columns.sql.eex b/packages/electric/priv/sql_function_templates/lookup_columns.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/lookup_columns.sql.eex rename to packages/electric/priv/sql_function_templates/lookup_columns.sql.eex diff --git a/components/electric/priv/sql_function_templates/migration_version.sql.eex b/packages/electric/priv/sql_function_templates/migration_version.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/migration_version.sql.eex rename to packages/electric/priv/sql_function_templates/migration_version.sql.eex diff --git a/components/electric/priv/sql_function_templates/perform_reordered_op_installer_function.sql.eex b/packages/electric/priv/sql_function_templates/perform_reordered_op_installer_function.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/perform_reordered_op_installer_function.sql.eex rename to packages/electric/priv/sql_function_templates/perform_reordered_op_installer_function.sql.eex diff --git a/components/electric/priv/sql_function_templates/row_touching.sql.eex b/packages/electric/priv/sql_function_templates/row_touching.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/row_touching.sql.eex rename to packages/electric/priv/sql_function_templates/row_touching.sql.eex diff --git a/components/electric/priv/sql_function_templates/string_utils.sql.eex b/packages/electric/priv/sql_function_templates/string_utils.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/string_utils.sql.eex rename to packages/electric/priv/sql_function_templates/string_utils.sql.eex diff --git a/components/electric/priv/sql_function_templates/test_helpers/__lookup_test_flag.sql.eex b/packages/electric/priv/sql_function_templates/test_helpers/__lookup_test_flag.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/test_helpers/__lookup_test_flag.sql.eex rename to packages/electric/priv/sql_function_templates/test_helpers/__lookup_test_flag.sql.eex diff --git a/components/electric/priv/sql_function_templates/tx_has_assigned_version.sql.eex b/packages/electric/priv/sql_function_templates/tx_has_assigned_version.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/tx_has_assigned_version.sql.eex rename to packages/electric/priv/sql_function_templates/tx_has_assigned_version.sql.eex diff --git a/components/electric/priv/sql_function_templates/upsert_acknowledged_client_lsn.sql.eex b/packages/electric/priv/sql_function_templates/upsert_acknowledged_client_lsn.sql.eex similarity index 100% rename from components/electric/priv/sql_function_templates/upsert_acknowledged_client_lsn.sql.eex rename to packages/electric/priv/sql_function_templates/upsert_acknowledged_client_lsn.sql.eex diff --git a/components/electric/rel/env.sh.eex b/packages/electric/rel/env.sh.eex similarity index 100% rename from components/electric/rel/env.sh.eex rename to packages/electric/rel/env.sh.eex diff --git a/components/electric/rel/vm.args.eex b/packages/electric/rel/vm.args.eex similarity index 100% rename from components/electric/rel/vm.args.eex rename to packages/electric/rel/vm.args.eex diff --git a/components/electric/src/.gitignore b/packages/electric/src/.gitignore similarity index 100% rename from components/electric/src/.gitignore rename to packages/electric/src/.gitignore diff --git a/components/electric/src/electric_ddlx_parser.yrl b/packages/electric/src/electric_ddlx_parser.yrl similarity index 100% rename from components/electric/src/electric_ddlx_parser.yrl rename to packages/electric/src/electric_ddlx_parser.yrl diff --git a/components/electric/test/electric/config_test.exs b/packages/electric/test/electric/config_test.exs similarity index 100% rename from components/electric/test/electric/config_test.exs rename to packages/electric/test/electric/config_test.exs diff --git a/components/electric/test/electric/ddlx/ddlx_commands_test.exs b/packages/electric/test/electric/ddlx/ddlx_commands_test.exs similarity index 100% rename from components/electric/test/electric/ddlx/ddlx_commands_test.exs rename to packages/electric/test/electric/ddlx/ddlx_commands_test.exs diff --git a/components/electric/test/electric/ddlx/ddlx_postgres_test.exs b/packages/electric/test/electric/ddlx/ddlx_postgres_test.exs similarity index 100% rename from components/electric/test/electric/ddlx/ddlx_postgres_test.exs rename to packages/electric/test/electric/ddlx/ddlx_postgres_test.exs diff --git a/components/electric/test/electric/ddlx/parser/tokenizer_test.exs b/packages/electric/test/electric/ddlx/parser/tokenizer_test.exs similarity index 100% rename from components/electric/test/electric/ddlx/parser/tokenizer_test.exs rename to packages/electric/test/electric/ddlx/parser/tokenizer_test.exs diff --git a/components/electric/test/electric/ddlx/parser_test.exs b/packages/electric/test/electric/ddlx/parser_test.exs similarity index 100% rename from components/electric/test/electric/ddlx/parser_test.exs rename to packages/electric/test/electric/ddlx/parser_test.exs diff --git a/components/electric/test/electric/ddlx/sql_repr_test.exs b/packages/electric/test/electric/ddlx/sql_repr_test.exs similarity index 100% rename from components/electric/test/electric/ddlx/sql_repr_test.exs rename to packages/electric/test/electric/ddlx/sql_repr_test.exs diff --git a/components/electric/test/electric/features_test.exs b/packages/electric/test/electric/features_test.exs similarity index 100% rename from components/electric/test/electric/features_test.exs rename to packages/electric/test/electric/features_test.exs diff --git a/components/electric/test/electric/plug_test.exs b/packages/electric/test/electric/plug_test.exs similarity index 100% rename from components/electric/test/electric/plug_test.exs rename to packages/electric/test/electric/plug_test.exs diff --git a/components/electric/test/electric/postgres/alter_table_test.exs b/packages/electric/test/electric/postgres/alter_table_test.exs similarity index 100% rename from components/electric/test/electric/postgres/alter_table_test.exs rename to packages/electric/test/electric/postgres/alter_table_test.exs diff --git a/components/electric/test/electric/postgres/dialect/sqlite_test.exs b/packages/electric/test/electric/postgres/dialect/sqlite_test.exs similarity index 100% rename from components/electric/test/electric/postgres/dialect/sqlite_test.exs rename to packages/electric/test/electric/postgres/dialect/sqlite_test.exs diff --git a/components/electric/test/electric/postgres/extension/alter_shadow_tables_test.exs b/packages/electric/test/electric/postgres/extension/alter_shadow_tables_test.exs similarity index 100% rename from components/electric/test/electric/postgres/extension/alter_shadow_tables_test.exs rename to packages/electric/test/electric/postgres/extension/alter_shadow_tables_test.exs diff --git a/components/electric/test/electric/postgres/extension/ddl_capture_test.exs b/packages/electric/test/electric/postgres/extension/ddl_capture_test.exs similarity index 100% rename from components/electric/test/electric/postgres/extension/ddl_capture_test.exs rename to packages/electric/test/electric/postgres/extension/ddl_capture_test.exs diff --git a/components/electric/test/electric/postgres/extension/electrify_test.exs b/packages/electric/test/electric/postgres/extension/electrify_test.exs similarity index 100% rename from components/electric/test/electric/postgres/extension/electrify_test.exs rename to packages/electric/test/electric/postgres/extension/electrify_test.exs diff --git a/components/electric/test/electric/postgres/extension/schema_cache_test.exs b/packages/electric/test/electric/postgres/extension/schema_cache_test.exs similarity index 100% rename from components/electric/test/electric/postgres/extension/schema_cache_test.exs rename to packages/electric/test/electric/postgres/extension/schema_cache_test.exs diff --git a/components/electric/test/electric/postgres/extension/triggers_test.exs b/packages/electric/test/electric/postgres/extension/triggers_test.exs similarity index 100% rename from components/electric/test/electric/postgres/extension/triggers_test.exs rename to packages/electric/test/electric/postgres/extension/triggers_test.exs diff --git a/components/electric/test/electric/postgres/extension_test.exs b/packages/electric/test/electric/postgres/extension_test.exs similarity index 100% rename from components/electric/test/electric/postgres/extension_test.exs rename to packages/electric/test/electric/postgres/extension_test.exs diff --git a/components/electric/test/electric/postgres/index_test.exs b/packages/electric/test/electric/postgres/index_test.exs similarity index 100% rename from components/electric/test/electric/postgres/index_test.exs rename to packages/electric/test/electric/postgres/index_test.exs diff --git a/components/electric/test/electric/postgres/logical_replication/decoder_test.exs b/packages/electric/test/electric/postgres/logical_replication/decoder_test.exs similarity index 100% rename from components/electric/test/electric/postgres/logical_replication/decoder_test.exs rename to packages/electric/test/electric/postgres/logical_replication/decoder_test.exs diff --git a/components/electric/test/electric/postgres/logical_replication/encoder_test.exs b/packages/electric/test/electric/postgres/logical_replication/encoder_test.exs similarity index 100% rename from components/electric/test/electric/postgres/logical_replication/encoder_test.exs rename to packages/electric/test/electric/postgres/logical_replication/encoder_test.exs diff --git a/components/electric/test/electric/postgres/logical_replication_test.exs b/packages/electric/test/electric/postgres/logical_replication_test.exs similarity index 100% rename from components/electric/test/electric/postgres/logical_replication_test.exs rename to packages/electric/test/electric/postgres/logical_replication_test.exs diff --git a/components/electric/test/electric/postgres/lsn_test.exs b/packages/electric/test/electric/postgres/lsn_test.exs similarity index 100% rename from components/electric/test/electric/postgres/lsn_test.exs rename to packages/electric/test/electric/postgres/lsn_test.exs diff --git a/components/electric/test/electric/postgres/name_parser_test.exs b/packages/electric/test/electric/postgres/name_parser_test.exs similarity index 100% rename from components/electric/test/electric/postgres/name_parser_test.exs rename to packages/electric/test/electric/postgres/name_parser_test.exs diff --git a/components/electric/test/electric/postgres/pg_parser_test.exs b/packages/electric/test/electric/postgres/pg_parser_test.exs similarity index 100% rename from components/electric/test/electric/postgres/pg_parser_test.exs rename to packages/electric/test/electric/postgres/pg_parser_test.exs diff --git a/components/electric/test/electric/postgres/proxy/ecto_test.exs b/packages/electric/test/electric/postgres/proxy/ecto_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/ecto_test.exs rename to packages/electric/test/electric/postgres/proxy/ecto_test.exs diff --git a/components/electric/test/electric/postgres/proxy/injector/electric_test.exs b/packages/electric/test/electric/postgres/proxy/injector/electric_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/injector/electric_test.exs rename to packages/electric/test/electric/postgres/proxy/injector/electric_test.exs diff --git a/components/electric/test/electric/postgres/proxy/injector/shadow_test.exs b/packages/electric/test/electric/postgres/proxy/injector/shadow_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/injector/shadow_test.exs rename to packages/electric/test/electric/postgres/proxy/injector/shadow_test.exs diff --git a/components/electric/test/electric/postgres/proxy/injector/transparent_test.exs b/packages/electric/test/electric/postgres/proxy/injector/transparent_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/injector/transparent_test.exs rename to packages/electric/test/electric/postgres/proxy/injector/transparent_test.exs diff --git a/components/electric/test/electric/postgres/proxy/injector_test.exs b/packages/electric/test/electric/postgres/proxy/injector_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/injector_test.exs rename to packages/electric/test/electric/postgres/proxy/injector_test.exs diff --git a/components/electric/test/electric/postgres/proxy/parser_test.exs b/packages/electric/test/electric/postgres/proxy/parser_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/parser_test.exs rename to packages/electric/test/electric/postgres/proxy/parser_test.exs diff --git a/components/electric/test/electric/postgres/proxy/prisma/query_test.exs b/packages/electric/test/electric/postgres/proxy/prisma/query_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/prisma/query_test.exs rename to packages/electric/test/electric/postgres/proxy/prisma/query_test.exs diff --git a/components/electric/test/electric/postgres/proxy/prisma_test.exs b/packages/electric/test/electric/postgres/proxy/prisma_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/prisma_test.exs rename to packages/electric/test/electric/postgres/proxy/prisma_test.exs diff --git a/components/electric/test/electric/postgres/proxy/query_analyser_test.exs b/packages/electric/test/electric/postgres/proxy/query_analyser_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy/query_analyser_test.exs rename to packages/electric/test/electric/postgres/proxy/query_analyser_test.exs diff --git a/components/electric/test/electric/postgres/proxy_test.exs b/packages/electric/test/electric/postgres/proxy_test.exs similarity index 100% rename from components/electric/test/electric/postgres/proxy_test.exs rename to packages/electric/test/electric/postgres/proxy_test.exs diff --git a/components/electric/test/electric/postgres/replication_test.exs b/packages/electric/test/electric/postgres/replication_test.exs similarity index 100% rename from components/electric/test/electric/postgres/replication_test.exs rename to packages/electric/test/electric/postgres/replication_test.exs diff --git a/components/electric/test/electric/postgres/schema_test.exs b/packages/electric/test/electric/postgres/schema_test.exs similarity index 100% rename from components/electric/test/electric/postgres/schema_test.exs rename to packages/electric/test/electric/postgres/schema_test.exs diff --git a/components/electric/test/electric/postgres/shadow_table_transformation_test.exs b/packages/electric/test/electric/postgres/shadow_table_transformation_test.exs similarity index 100% rename from components/electric/test/electric/postgres/shadow_table_transformation_test.exs rename to packages/electric/test/electric/postgres/shadow_table_transformation_test.exs diff --git a/components/electric/test/electric/postgres/sql_generator_test.exs b/packages/electric/test/electric/postgres/sql_generator_test.exs similarity index 100% rename from components/electric/test/electric/postgres/sql_generator_test.exs rename to packages/electric/test/electric/postgres/sql_generator_test.exs diff --git a/components/electric/test/electric/postgres/table_test.exs b/packages/electric/test/electric/postgres/table_test.exs similarity index 100% rename from components/electric/test/electric/postgres/table_test.exs rename to packages/electric/test/electric/postgres/table_test.exs diff --git a/components/electric/test/electric/postgres/types/array_test.exs b/packages/electric/test/electric/postgres/types/array_test.exs similarity index 100% rename from components/electric/test/electric/postgres/types/array_test.exs rename to packages/electric/test/electric/postgres/types/array_test.exs diff --git a/components/electric/test/electric/postgres/types/electric_tag_test.exs b/packages/electric/test/electric/postgres/types/electric_tag_test.exs similarity index 100% rename from components/electric/test/electric/postgres/types/electric_tag_test.exs rename to packages/electric/test/electric/postgres/types/electric_tag_test.exs diff --git a/components/electric/test/electric/postgres_test.exs b/packages/electric/test/electric/postgres_test.exs similarity index 100% rename from components/electric/test/electric/postgres_test.exs rename to packages/electric/test/electric/postgres_test.exs diff --git a/components/electric/test/electric/replication/changes/ownership_test.exs b/packages/electric/test/electric/replication/changes/ownership_test.exs similarity index 100% rename from components/electric/test/electric/replication/changes/ownership_test.exs rename to packages/electric/test/electric/replication/changes/ownership_test.exs diff --git a/components/electric/test/electric/replication/changes_test.exs b/packages/electric/test/electric/replication/changes_test.exs similarity index 100% rename from components/electric/test/electric/replication/changes_test.exs rename to packages/electric/test/electric/replication/changes_test.exs diff --git a/components/electric/test/electric/replication/connectors_test.exs b/packages/electric/test/electric/replication/connectors_test.exs similarity index 100% rename from components/electric/test/electric/replication/connectors_test.exs rename to packages/electric/test/electric/replication/connectors_test.exs diff --git a/components/electric/test/electric/replication/electrification_test.exs b/packages/electric/test/electric/replication/electrification_test.exs similarity index 100% rename from components/electric/test/electric/replication/electrification_test.exs rename to packages/electric/test/electric/replication/electrification_test.exs diff --git a/components/electric/test/electric/replication/eval/parser_test.exs b/packages/electric/test/electric/replication/eval/parser_test.exs similarity index 100% rename from components/electric/test/electric/replication/eval/parser_test.exs rename to packages/electric/test/electric/replication/eval/parser_test.exs diff --git a/components/electric/test/electric/replication/eval/runner_test.exs b/packages/electric/test/electric/replication/eval/runner_test.exs similarity index 100% rename from components/electric/test/electric/replication/eval/runner_test.exs rename to packages/electric/test/electric/replication/eval/runner_test.exs diff --git a/components/electric/test/electric/replication/initial_sync_test.exs b/packages/electric/test/electric/replication/initial_sync_test.exs similarity index 100% rename from components/electric/test/electric/replication/initial_sync_test.exs rename to packages/electric/test/electric/replication/initial_sync_test.exs diff --git a/components/electric/test/electric/replication/postgres/logical_replication_producer_test.exs b/packages/electric/test/electric/replication/postgres/logical_replication_producer_test.exs similarity index 100% rename from components/electric/test/electric/replication/postgres/logical_replication_producer_test.exs rename to packages/electric/test/electric/replication/postgres/logical_replication_producer_test.exs diff --git a/components/electric/test/electric/replication/postgres/migration_consumer_test.exs b/packages/electric/test/electric/replication/postgres/migration_consumer_test.exs similarity index 100% rename from components/electric/test/electric/replication/postgres/migration_consumer_test.exs rename to packages/electric/test/electric/replication/postgres/migration_consumer_test.exs diff --git a/components/electric/test/electric/replication/postgres/slot_server_test.exs b/packages/electric/test/electric/replication/postgres/slot_server_test.exs similarity index 100% rename from components/electric/test/electric/replication/postgres/slot_server_test.exs rename to packages/electric/test/electric/replication/postgres/slot_server_test.exs diff --git a/components/electric/test/electric/replication/postgres_interop/casting_test.exs b/packages/electric/test/electric/replication/postgres_interop/casting_test.exs similarity index 100% rename from components/electric/test/electric/replication/postgres_interop/casting_test.exs rename to packages/electric/test/electric/replication/postgres_interop/casting_test.exs diff --git a/components/electric/test/electric/replication/satellite_collector_producer_test.exs b/packages/electric/test/electric/replication/satellite_collector_producer_test.exs similarity index 100% rename from components/electric/test/electric/replication/satellite_collector_producer_test.exs rename to packages/electric/test/electric/replication/satellite_collector_producer_test.exs diff --git a/components/electric/test/electric/replication/shapes/change_processing_test.exs b/packages/electric/test/electric/replication/shapes/change_processing_test.exs similarity index 100% rename from components/electric/test/electric/replication/shapes/change_processing_test.exs rename to packages/electric/test/electric/replication/shapes/change_processing_test.exs diff --git a/components/electric/test/electric/replication/shapes/querying_test.exs b/packages/electric/test/electric/replication/shapes/querying_test.exs similarity index 100% rename from components/electric/test/electric/replication/shapes/querying_test.exs rename to packages/electric/test/electric/replication/shapes/querying_test.exs diff --git a/components/electric/test/electric/replication/shapes/sent_rows_graph_test.exs b/packages/electric/test/electric/replication/shapes/sent_rows_graph_test.exs similarity index 100% rename from components/electric/test/electric/replication/shapes/sent_rows_graph_test.exs rename to packages/electric/test/electric/replication/shapes/sent_rows_graph_test.exs diff --git a/components/electric/test/electric/replication/shapes_test.exs b/packages/electric/test/electric/replication/shapes_test.exs similarity index 100% rename from components/electric/test/electric/replication/shapes_test.exs rename to packages/electric/test/electric/replication/shapes_test.exs diff --git a/components/electric/test/electric/satellite/auth/insecure_test.exs b/packages/electric/test/electric/satellite/auth/insecure_test.exs similarity index 100% rename from components/electric/test/electric/satellite/auth/insecure_test.exs rename to packages/electric/test/electric/satellite/auth/insecure_test.exs diff --git a/components/electric/test/electric/satellite/auth/secure_test.exs b/packages/electric/test/electric/satellite/auth/secure_test.exs similarity index 100% rename from components/electric/test/electric/satellite/auth/secure_test.exs rename to packages/electric/test/electric/satellite/auth/secure_test.exs diff --git a/components/electric/test/electric/satellite/protobuf_test.exs b/packages/electric/test/electric/satellite/protobuf_test.exs similarity index 100% rename from components/electric/test/electric/satellite/protobuf_test.exs rename to packages/electric/test/electric/satellite/protobuf_test.exs diff --git a/components/electric/test/electric/satellite/serialization_test.exs b/packages/electric/test/electric/satellite/serialization_test.exs similarity index 100% rename from components/electric/test/electric/satellite/serialization_test.exs rename to packages/electric/test/electric/satellite/serialization_test.exs diff --git a/components/electric/test/electric/satellite/subscriptions_test.exs b/packages/electric/test/electric/satellite/subscriptions_test.exs similarity index 100% rename from components/electric/test/electric/satellite/subscriptions_test.exs rename to packages/electric/test/electric/satellite/subscriptions_test.exs diff --git a/components/electric/test/electric/satellite/write_validation/immutable_primary_key_test.exs b/packages/electric/test/electric/satellite/write_validation/immutable_primary_key_test.exs similarity index 100% rename from components/electric/test/electric/satellite/write_validation/immutable_primary_key_test.exs rename to packages/electric/test/electric/satellite/write_validation/immutable_primary_key_test.exs diff --git a/components/electric/test/electric/satellite/write_validation_test.exs b/packages/electric/test/electric/satellite/write_validation_test.exs similarity index 100% rename from components/electric/test/electric/satellite/write_validation_test.exs rename to packages/electric/test/electric/satellite/write_validation_test.exs diff --git a/components/electric/test/electric/satellite/ws_pg_to_satellite_test.exs b/packages/electric/test/electric/satellite/ws_pg_to_satellite_test.exs similarity index 100% rename from components/electric/test/electric/satellite/ws_pg_to_satellite_test.exs rename to packages/electric/test/electric/satellite/ws_pg_to_satellite_test.exs diff --git a/components/electric/test/electric/satellite/ws_server_test.exs b/packages/electric/test/electric/satellite/ws_server_test.exs similarity index 100% rename from components/electric/test/electric/satellite/ws_server_test.exs rename to packages/electric/test/electric/satellite/ws_server_test.exs diff --git a/components/electric/test/electric/satellite/ws_validations_test.exs b/packages/electric/test/electric/satellite/ws_validations_test.exs similarity index 100% rename from components/electric/test/electric/satellite/ws_validations_test.exs rename to packages/electric/test/electric/satellite/ws_validations_test.exs diff --git a/components/electric/test/electric/utils_test.exs b/packages/electric/test/electric/utils_test.exs similarity index 100% rename from components/electric/test/electric/utils_test.exs rename to packages/electric/test/electric/utils_test.exs diff --git a/components/electric/test/fixtures/keys/README.md b/packages/electric/test/fixtures/keys/README.md similarity index 100% rename from components/electric/test/fixtures/keys/README.md rename to packages/electric/test/fixtures/keys/README.md diff --git a/components/electric/test/fixtures/keys/ecc256.pem b/packages/electric/test/fixtures/keys/ecc256.pem similarity index 100% rename from components/electric/test/fixtures/keys/ecc256.pem rename to packages/electric/test/fixtures/keys/ecc256.pem diff --git a/components/electric/test/fixtures/keys/ecc256_pub.pem b/packages/electric/test/fixtures/keys/ecc256_pub.pem similarity index 100% rename from components/electric/test/fixtures/keys/ecc256_pub.pem rename to packages/electric/test/fixtures/keys/ecc256_pub.pem diff --git a/components/electric/test/fixtures/keys/ecc384.pem b/packages/electric/test/fixtures/keys/ecc384.pem similarity index 100% rename from components/electric/test/fixtures/keys/ecc384.pem rename to packages/electric/test/fixtures/keys/ecc384.pem diff --git a/components/electric/test/fixtures/keys/ecc384_pub.pem b/packages/electric/test/fixtures/keys/ecc384_pub.pem similarity index 100% rename from components/electric/test/fixtures/keys/ecc384_pub.pem rename to packages/electric/test/fixtures/keys/ecc384_pub.pem diff --git a/components/electric/test/fixtures/keys/ecc512.pem b/packages/electric/test/fixtures/keys/ecc512.pem similarity index 100% rename from components/electric/test/fixtures/keys/ecc512.pem rename to packages/electric/test/fixtures/keys/ecc512.pem diff --git a/components/electric/test/fixtures/keys/ecc512_pub.pem b/packages/electric/test/fixtures/keys/ecc512_pub.pem similarity index 100% rename from components/electric/test/fixtures/keys/ecc512_pub.pem rename to packages/electric/test/fixtures/keys/ecc512_pub.pem diff --git a/components/electric/test/fixtures/keys/rsa.pem b/packages/electric/test/fixtures/keys/rsa.pem similarity index 100% rename from components/electric/test/fixtures/keys/rsa.pem rename to packages/electric/test/fixtures/keys/rsa.pem diff --git a/components/electric/test/fixtures/keys/rsa_pub.pem b/packages/electric/test/fixtures/keys/rsa_pub.pem similarity index 100% rename from components/electric/test/fixtures/keys/rsa_pub.pem rename to packages/electric/test/fixtures/keys/rsa_pub.pem diff --git a/components/electric/test/mix/tasks/electric.gen.token_test.exs b/packages/electric/test/mix/tasks/electric.gen.token_test.exs similarity index 100% rename from components/electric/test/mix/tasks/electric.gen.token_test.exs rename to packages/electric/test/mix/tasks/electric.gen.token_test.exs diff --git a/components/electric/test/pg_interop/interval/iso8601_alternative_parser_test.exs b/packages/electric/test/pg_interop/interval/iso8601_alternative_parser_test.exs similarity index 100% rename from components/electric/test/pg_interop/interval/iso8601_alternative_parser_test.exs rename to packages/electric/test/pg_interop/interval/iso8601_alternative_parser_test.exs diff --git a/components/electric/test/pg_interop/interval/iso8601_formatter.exs b/packages/electric/test/pg_interop/interval/iso8601_formatter.exs similarity index 100% rename from components/electric/test/pg_interop/interval/iso8601_formatter.exs rename to packages/electric/test/pg_interop/interval/iso8601_formatter.exs diff --git a/components/electric/test/pg_interop/interval/iso8601_parser_test.exs b/packages/electric/test/pg_interop/interval/iso8601_parser_test.exs similarity index 100% rename from components/electric/test/pg_interop/interval/iso8601_parser_test.exs rename to packages/electric/test/pg_interop/interval/iso8601_parser_test.exs diff --git a/components/electric/test/pg_interop/interval/postgres_and_sql_parser_test.exs b/packages/electric/test/pg_interop/interval/postgres_and_sql_parser_test.exs similarity index 100% rename from components/electric/test/pg_interop/interval/postgres_and_sql_parser_test.exs rename to packages/electric/test/pg_interop/interval/postgres_and_sql_parser_test.exs diff --git a/components/electric/test/pg_interop/interval_test.exs b/packages/electric/test/pg_interop/interval_test.exs similarity index 100% rename from components/electric/test/pg_interop/interval_test.exs rename to packages/electric/test/pg_interop/interval_test.exs diff --git a/components/electric/test/support/ddlx_helpers.ex b/packages/electric/test/support/ddlx_helpers.ex similarity index 100% rename from components/electric/test/support/ddlx_helpers.ex rename to packages/electric/test/support/ddlx_helpers.ex diff --git a/components/electric/test/support/downstream_producer_mock.ex b/packages/electric/test/support/downstream_producer_mock.ex similarity index 100% rename from components/electric/test/support/downstream_producer_mock.ex rename to packages/electric/test/support/downstream_producer_mock.ex diff --git a/components/electric/test/support/dummy_consumer.ex b/packages/electric/test/support/dummy_consumer.ex similarity index 100% rename from components/electric/test/support/dummy_consumer.ex rename to packages/electric/test/support/dummy_consumer.ex diff --git a/components/electric/test/support/extension_case.ex b/packages/electric/test/support/extension_case.ex similarity index 100% rename from components/electric/test/support/extension_case.ex rename to packages/electric/test/support/extension_case.ex diff --git a/components/electric/test/support/injector_test/frameworks/ecto_framework.ex b/packages/electric/test/support/injector_test/frameworks/ecto_framework.ex similarity index 100% rename from components/electric/test/support/injector_test/frameworks/ecto_framework.ex rename to packages/electric/test/support/injector_test/frameworks/ecto_framework.ex diff --git a/components/electric/test/support/injector_test/scenarios/adhoc.ex b/packages/electric/test/support/injector_test/scenarios/adhoc.ex similarity index 100% rename from components/electric/test/support/injector_test/scenarios/adhoc.ex rename to packages/electric/test/support/injector_test/scenarios/adhoc.ex diff --git a/components/electric/test/support/injector_test/scenarios/extended_no_tx.ex b/packages/electric/test/support/injector_test/scenarios/extended_no_tx.ex similarity index 100% rename from components/electric/test/support/injector_test/scenarios/extended_no_tx.ex rename to packages/electric/test/support/injector_test/scenarios/extended_no_tx.ex diff --git a/components/electric/test/support/injector_test/scenarios/framework.ex b/packages/electric/test/support/injector_test/scenarios/framework.ex similarity index 100% rename from components/electric/test/support/injector_test/scenarios/framework.ex rename to packages/electric/test/support/injector_test/scenarios/framework.ex diff --git a/components/electric/test/support/injector_test/scenarios/framework_simple.ex b/packages/electric/test/support/injector_test/scenarios/framework_simple.ex similarity index 100% rename from components/electric/test/support/injector_test/scenarios/framework_simple.ex rename to packages/electric/test/support/injector_test/scenarios/framework_simple.ex diff --git a/components/electric/test/support/injector_test/scenarios/manual.ex b/packages/electric/test/support/injector_test/scenarios/manual.ex similarity index 100% rename from components/electric/test/support/injector_test/scenarios/manual.ex rename to packages/electric/test/support/injector_test/scenarios/manual.ex diff --git a/components/electric/test/support/injector_test/scenarios/manual_tx.ex b/packages/electric/test/support/injector_test/scenarios/manual_tx.ex similarity index 100% rename from components/electric/test/support/injector_test/scenarios/manual_tx.ex rename to packages/electric/test/support/injector_test/scenarios/manual_tx.ex diff --git a/components/electric/test/support/injector_test/table.ex b/packages/electric/test/support/injector_test/table.ex similarity index 100% rename from components/electric/test/support/injector_test/table.ex rename to packages/electric/test/support/injector_test/table.ex diff --git a/components/electric/test/support/injector_test/test_scenario.ex b/packages/electric/test/support/injector_test/test_scenario.ex similarity index 100% rename from components/electric/test/support/injector_test/test_scenario.ex rename to packages/electric/test/support/injector_test/test_scenario.ex diff --git a/components/electric/test/support/migrations/proxy/ecto/20230904162657_create_table.exs b/packages/electric/test/support/migrations/proxy/ecto/20230904162657_create_table.exs similarity index 100% rename from components/electric/test/support/migrations/proxy/ecto/20230904162657_create_table.exs rename to packages/electric/test/support/migrations/proxy/ecto/20230904162657_create_table.exs diff --git a/components/electric/test/support/migrations/proxy/ecto/20230905122033_alter_table.exs b/packages/electric/test/support/migrations/proxy/ecto/20230905122033_alter_table.exs similarity index 100% rename from components/electric/test/support/migrations/proxy/ecto/20230905122033_alter_table.exs rename to packages/electric/test/support/migrations/proxy/ecto/20230905122033_alter_table.exs diff --git a/components/electric/test/support/mock_schema_loader.ex b/packages/electric/test/support/mock_schema_loader.ex similarity index 100% rename from components/electric/test/support/mock_schema_loader.ex rename to packages/electric/test/support/mock_schema_loader.ex diff --git a/components/electric/test/support/postgres_case.ex b/packages/electric/test/support/postgres_case.ex similarity index 100% rename from components/electric/test/support/postgres_case.ex rename to packages/electric/test/support/postgres_case.ex diff --git a/components/electric/test/support/postgres_test_connection.ex b/packages/electric/test/support/postgres_test_connection.ex similarity index 100% rename from components/electric/test/support/postgres_test_connection.ex rename to packages/electric/test/support/postgres_test_connection.ex diff --git a/components/electric/test/support/prisma/001_query_test.sql b/packages/electric/test/support/prisma/001_query_test.sql similarity index 100% rename from components/electric/test/support/prisma/001_query_test.sql rename to packages/electric/test/support/prisma/001_query_test.sql diff --git a/components/electric/test/support/prisma/002_query_test.sql b/packages/electric/test/support/prisma/002_query_test.sql similarity index 100% rename from components/electric/test/support/prisma/002_query_test.sql rename to packages/electric/test/support/prisma/002_query_test.sql diff --git a/components/electric/test/support/prisma/003_query_test.sql b/packages/electric/test/support/prisma/003_query_test.sql similarity index 100% rename from components/electric/test/support/prisma/003_query_test.sql rename to packages/electric/test/support/prisma/003_query_test.sql diff --git a/components/electric/test/support/satellite_helpers.ex b/packages/electric/test/support/satellite_helpers.ex similarity index 100% rename from components/electric/test/support/satellite_helpers.ex rename to packages/electric/test/support/satellite_helpers.ex diff --git a/components/electric/test/support/setup_helpers.ex b/packages/electric/test/support/setup_helpers.ex similarity index 100% rename from components/electric/test/support/setup_helpers.ex rename to packages/electric/test/support/setup_helpers.ex diff --git a/components/electric/test/support/sql_generator.ex b/packages/electric/test/support/sql_generator.ex similarity index 100% rename from components/electric/test/support/sql_generator.ex rename to packages/electric/test/support/sql_generator.ex diff --git a/components/electric/test/support/sql_generator/column.ex b/packages/electric/test/support/sql_generator/column.ex similarity index 100% rename from components/electric/test/support/sql_generator/column.ex rename to packages/electric/test/support/sql_generator/column.ex diff --git a/components/electric/test/support/sql_generator/ddlx.ex b/packages/electric/test/support/sql_generator/ddlx.ex similarity index 100% rename from components/electric/test/support/sql_generator/ddlx.ex rename to packages/electric/test/support/sql_generator/ddlx.ex diff --git a/components/electric/test/support/sql_generator/index.ex b/packages/electric/test/support/sql_generator/index.ex similarity index 100% rename from components/electric/test/support/sql_generator/index.ex rename to packages/electric/test/support/sql_generator/index.ex diff --git a/components/electric/test/support/sql_generator/table.ex b/packages/electric/test/support/sql_generator/table.ex similarity index 100% rename from components/electric/test/support/sql_generator/table.ex rename to packages/electric/test/support/sql_generator/table.ex diff --git a/components/electric/test/support/test_repo.ex b/packages/electric/test/support/test_repo.ex similarity index 100% rename from components/electric/test/support/test_repo.ex rename to packages/electric/test/support/test_repo.ex diff --git a/components/electric/test/test_helper.exs b/packages/electric/test/test_helper.exs similarity index 100% rename from components/electric/test/test_helper.exs rename to packages/electric/test/test_helper.exs diff --git a/components/toolbar/.eslintrc.cjs b/packages/toolbar/.eslintrc.cjs similarity index 100% rename from components/toolbar/.eslintrc.cjs rename to packages/toolbar/.eslintrc.cjs diff --git a/components/toolbar/.gitignore b/packages/toolbar/.gitignore similarity index 100% rename from components/toolbar/.gitignore rename to packages/toolbar/.gitignore diff --git a/components/toolbar/.prettierignore b/packages/toolbar/.prettierignore similarity index 100% rename from components/toolbar/.prettierignore rename to packages/toolbar/.prettierignore diff --git a/components/toolbar/.prettierrc.json b/packages/toolbar/.prettierrc.json similarity index 100% rename from components/toolbar/.prettierrc.json rename to packages/toolbar/.prettierrc.json diff --git a/components/toolbar/CHANGELOG.md b/packages/toolbar/CHANGELOG.md similarity index 100% rename from components/toolbar/CHANGELOG.md rename to packages/toolbar/CHANGELOG.md diff --git a/components/toolbar/Makefile b/packages/toolbar/Makefile similarity index 100% rename from components/toolbar/Makefile rename to packages/toolbar/Makefile diff --git a/components/toolbar/README.md b/packages/toolbar/README.md similarity index 100% rename from components/toolbar/README.md rename to packages/toolbar/README.md diff --git a/components/toolbar/package.json b/packages/toolbar/package.json similarity index 100% rename from components/toolbar/package.json rename to packages/toolbar/package.json diff --git a/components/toolbar/src/SvgModule.d.ts b/packages/toolbar/src/SvgModule.d.ts similarity index 100% rename from components/toolbar/src/SvgModule.d.ts rename to packages/toolbar/src/SvgModule.d.ts diff --git a/components/toolbar/src/api/interface.ts b/packages/toolbar/src/api/interface.ts similarity index 100% rename from components/toolbar/src/api/interface.ts rename to packages/toolbar/src/api/interface.ts diff --git a/components/toolbar/src/api/statements.ts b/packages/toolbar/src/api/statements.ts similarity index 100% rename from components/toolbar/src/api/statements.ts rename to packages/toolbar/src/api/statements.ts diff --git a/components/toolbar/src/api/toolbar.ts b/packages/toolbar/src/api/toolbar.ts similarity index 100% rename from components/toolbar/src/api/toolbar.ts rename to packages/toolbar/src/api/toolbar.ts diff --git a/components/toolbar/src/components/DataTable.tsx b/packages/toolbar/src/components/DataTable.tsx similarity index 100% rename from components/toolbar/src/components/DataTable.tsx rename to packages/toolbar/src/components/DataTable.tsx diff --git a/components/toolbar/src/index.css b/packages/toolbar/src/index.css similarity index 100% rename from components/toolbar/src/index.css rename to packages/toolbar/src/index.css diff --git a/components/toolbar/src/index.tsx b/packages/toolbar/src/index.tsx similarity index 100% rename from components/toolbar/src/index.tsx rename to packages/toolbar/src/index.tsx diff --git a/components/toolbar/src/logo.svg b/packages/toolbar/src/logo.svg similarity index 100% rename from components/toolbar/src/logo.svg rename to packages/toolbar/src/logo.svg diff --git a/components/toolbar/src/tabs.tsx b/packages/toolbar/src/tabs.tsx similarity index 100% rename from components/toolbar/src/tabs.tsx rename to packages/toolbar/src/tabs.tsx diff --git a/components/toolbar/src/tabs/InspectTableTab.tsx b/packages/toolbar/src/tabs/InspectTableTab.tsx similarity index 100% rename from components/toolbar/src/tabs/InspectTableTab.tsx rename to packages/toolbar/src/tabs/InspectTableTab.tsx diff --git a/components/toolbar/src/tabs/LocalDBTab.tsx b/packages/toolbar/src/tabs/LocalDBTab.tsx similarity index 100% rename from components/toolbar/src/tabs/LocalDBTab.tsx rename to packages/toolbar/src/tabs/LocalDBTab.tsx diff --git a/components/toolbar/src/tabs/SQLTab.tsx b/packages/toolbar/src/tabs/SQLTab.tsx similarity index 100% rename from components/toolbar/src/tabs/SQLTab.tsx rename to packages/toolbar/src/tabs/SQLTab.tsx diff --git a/components/toolbar/src/tabs/ShapesTab.tsx b/packages/toolbar/src/tabs/ShapesTab.tsx similarity index 100% rename from components/toolbar/src/tabs/ShapesTab.tsx rename to packages/toolbar/src/tabs/ShapesTab.tsx diff --git a/components/toolbar/src/tabs/StatusTab.tsx b/packages/toolbar/src/tabs/StatusTab.tsx similarity index 100% rename from components/toolbar/src/tabs/StatusTab.tsx rename to packages/toolbar/src/tabs/StatusTab.tsx diff --git a/components/toolbar/src/utils/portal.ts b/packages/toolbar/src/utils/portal.ts similarity index 100% rename from components/toolbar/src/utils/portal.ts rename to packages/toolbar/src/utils/portal.ts diff --git a/components/toolbar/test/api.test.ts b/packages/toolbar/test/api.test.ts similarity index 100% rename from components/toolbar/test/api.test.ts rename to packages/toolbar/test/api.test.ts diff --git a/components/toolbar/test/generated/index.ts b/packages/toolbar/test/generated/index.ts similarity index 100% rename from components/toolbar/test/generated/index.ts rename to packages/toolbar/test/generated/index.ts diff --git a/components/toolbar/test/generated/migrations.ts b/packages/toolbar/test/generated/migrations.ts similarity index 100% rename from components/toolbar/test/generated/migrations.ts rename to packages/toolbar/test/generated/migrations.ts diff --git a/components/toolbar/test/generated/prismaClient.d.ts b/packages/toolbar/test/generated/prismaClient.d.ts similarity index 100% rename from components/toolbar/test/generated/prismaClient.d.ts rename to packages/toolbar/test/generated/prismaClient.d.ts diff --git a/components/toolbar/test/mocks.ts b/packages/toolbar/test/mocks.ts similarity index 100% rename from components/toolbar/test/mocks.ts rename to packages/toolbar/test/mocks.ts diff --git a/components/toolbar/tsconfig.build.json b/packages/toolbar/tsconfig.build.json similarity index 100% rename from components/toolbar/tsconfig.build.json rename to packages/toolbar/tsconfig.build.json diff --git a/components/toolbar/tsconfig.json b/packages/toolbar/tsconfig.json similarity index 100% rename from components/toolbar/tsconfig.json rename to packages/toolbar/tsconfig.json diff --git a/components/toolbar/vite.config.ts b/packages/toolbar/vite.config.ts similarity index 100% rename from components/toolbar/vite.config.ts rename to packages/toolbar/vite.config.ts diff --git a/components/toolbar/vitest.config.ts b/packages/toolbar/vitest.config.ts similarity index 100% rename from components/toolbar/vitest.config.ts rename to packages/toolbar/vitest.config.ts diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2dc9eb9576..a81176b3c5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: dependencies: '@electric-sql/drivers': specifier: workspace:* - version: link:../../components/drivers + version: link:../../packages/drivers async-mutex: specifier: ^0.4.0 version: 0.4.0 @@ -223,7 +223,169 @@ importers: specifier: ^1.8.27 version: 1.8.27(typescript@5.4.5) - components/cli: + e2e/satellite_client: + dependencies: + better-sqlite3: + specifier: ^11.0.0 + version: 11.0.0 + electric-sql: + specifier: workspace:* + version: link:../../clients/typescript + jsonwebtoken: + specifier: ^9.0.0 + version: 9.0.0 + pg: + specifier: ^8.11.3 + version: 8.11.3 + ts-dedent: + specifier: ^2.2.0 + version: 2.2.0 + uuid: + specifier: ^9.0.0 + version: 9.0.0 + zod: + specifier: 3.21.1 + version: 3.21.1 + devDependencies: + '@electric-sql/prisma-generator': + specifier: workspace:* + version: link:../../generator + '@prisma/client': + specifier: 4.8.1 + version: 4.8.1(prisma@4.8.1) + '@tsmodule/tsmodule': + specifier: ^44.7.0 + version: 44.7.0 + '@types/better-sqlite3': + specifier: 7.6.3 + version: 7.6.3 + '@types/jsonwebtoken': + specifier: ^9.0.1 + version: 9.0.1 + '@types/live-server': + specifier: ^1.2.1 + version: 1.2.1 + '@types/node': + specifier: ^16.9.1 + version: 16.9.1 + '@types/pg': + specifier: ^8.11.3 + version: 8.11.3 + '@types/uuid': + specifier: ^9.0.0 + version: 9.0.0 + esbuild: + specifier: ^0.18.17 + version: 0.18.17 + exponential-backoff: + specifier: ^3.1.0 + version: 3.1.0 + loglevel: + specifier: ^1.8.1 + version: 1.8.1 + prisma: + specifier: 4.8.1 + version: 4.8.1 + tslint: + specifier: ^6.1.3 + version: 6.1.3(typescript@4.9.5) + tslint-config-prettier: + specifier: ^1.18.0 + version: 1.18.0 + typescript: + specifier: ^4.4.3 + version: 4.9.5 + + examples/starter: + dependencies: + ora: + specifier: ^8.0.1 + version: 8.0.1 + prompt: + specifier: ^1.3.0 + version: 1.3.0 + shelljs: + specifier: ^0.8.5 + version: 0.8.5 + tcp-port-used: + specifier: ^1.0.2 + version: 1.0.2 + devDependencies: + '@tsmodule/tsmodule': + specifier: ^44.7.0 + version: 44.7.0 + '@types/shelljs': + specifier: ^0.8.15 + version: 0.8.15 + '@types/tcp-port-used': + specifier: ^1.0.4 + version: 1.0.4 + ava: + specifier: ^6.1.2 + version: 6.1.2 + prettier: + specifier: 3.3.2 + version: 3.3.2 + shx: + specifier: ^0.3.4 + version: 0.3.4 + typescript: + specifier: ^5.4.5 + version: 5.4.5 + + generator: + dependencies: + '@prisma/generator-helper': + specifier: ^4.11.0 + version: 4.11.0 + code-block-writer: + specifier: ^11.0.3 + version: 11.0.3 + lodash: + specifier: ^4.17.21 + version: 4.17.21 + zod: + specifier: 3.21.1 + version: 3.21.1 + devDependencies: + '@prisma/internals': + specifier: ^4.11.0 + version: 4.11.0 + '@types/lodash': + specifier: ^4.14.191 + version: 4.14.191 + '@typescript-eslint/eslint-plugin': + specifier: ^5.54.1 + version: 5.54.1(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0)(typescript@4.9.5) + '@typescript-eslint/parser': + specifier: ^5.54.1 + version: 5.54.1(eslint@8.57.0)(typescript@4.9.5) + eslint: + specifier: ^8.35.0 + version: 8.57.0 + eslint-config-prettier: + specifier: ^8.7.0 + version: 8.7.0(eslint@8.57.0) + eslint-config-universe: + specifier: ^11.2.0 + version: 11.2.0(eslint@8.57.0)(prettier@2.8.4)(typescript@4.9.5) + eslint-plugin-import: + specifier: ^2.27.5 + version: 2.27.5(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0) + eslint-plugin-prettier: + specifier: ^4.2.1 + version: 4.2.1(eslint-config-prettier@8.7.0(eslint@8.57.0))(eslint@8.57.0)(prettier@2.8.4) + prettier: + specifier: ^2.8.4 + version: 2.8.4 + typescript: + specifier: ^4.9.5 + version: 4.9.5 + vitest: + specifier: ^0.24.5 + version: 0.24.5(happy-dom@14.10.2)(jsdom@24.0.0)(terser@5.31.1) + + packages/cli: dependencies: '@electric-sql/prisma-generator': specifier: workspace:* @@ -254,7 +416,7 @@ importers: version: 2.2.0 ws: specifier: ^8.8.1 - version: 8.8.1 + version: 8.17.1 zod: specifier: 3.21.1 version: 3.21.1 @@ -305,7 +467,7 @@ importers: specifier: ^5.3.3 version: 5.4.5 - components/drivers: + packages/drivers: dependencies: '@capacitor-community/sqlite': specifier: '>= 5.6.2' @@ -384,9 +546,9 @@ importers: specifier: rhashimoto/wa-sqlite#semver:^0.9.8 version: https://codeload.github.com/rhashimoto/wa-sqlite/tar.gz/6dbe4f044502a7a285e815896f56304a808fe25b - components/electric: {} + packages/electric: {} - components/toolbar: + packages/toolbar: dependencies: '@glideapps/glide-data-grid': specifier: ^6.0.4-alpha8 @@ -480,168 +642,6 @@ importers: specifier: ^1.5.0 version: 1.5.0(@types/node@20.12.7)(happy-dom@14.10.2)(jsdom@24.0.0)(terser@5.31.1) - e2e/satellite_client: - dependencies: - better-sqlite3: - specifier: ^11.0.0 - version: 11.0.0 - electric-sql: - specifier: workspace:* - version: link:../../clients/typescript - jsonwebtoken: - specifier: ^9.0.0 - version: 9.0.0 - pg: - specifier: ^8.11.3 - version: 8.11.3 - ts-dedent: - specifier: ^2.2.0 - version: 2.2.0 - uuid: - specifier: ^9.0.0 - version: 9.0.0 - zod: - specifier: 3.21.1 - version: 3.21.1 - devDependencies: - '@electric-sql/prisma-generator': - specifier: workspace:* - version: link:../../generator - '@prisma/client': - specifier: 4.8.1 - version: 4.8.1(prisma@4.8.1) - '@tsmodule/tsmodule': - specifier: ^44.7.0 - version: 44.7.0 - '@types/better-sqlite3': - specifier: 7.6.3 - version: 7.6.3 - '@types/jsonwebtoken': - specifier: ^9.0.1 - version: 9.0.1 - '@types/live-server': - specifier: ^1.2.1 - version: 1.2.1 - '@types/node': - specifier: ^16.9.1 - version: 16.9.1 - '@types/pg': - specifier: ^8.11.3 - version: 8.11.3 - '@types/uuid': - specifier: ^9.0.0 - version: 9.0.0 - esbuild: - specifier: ^0.18.17 - version: 0.18.17 - exponential-backoff: - specifier: ^3.1.0 - version: 3.1.0 - loglevel: - specifier: ^1.8.1 - version: 1.8.1 - prisma: - specifier: 4.8.1 - version: 4.8.1 - tslint: - specifier: ^6.1.3 - version: 6.1.3(typescript@4.9.5) - tslint-config-prettier: - specifier: ^1.18.0 - version: 1.18.0 - typescript: - specifier: ^4.4.3 - version: 4.9.5 - - examples/starter: - dependencies: - ora: - specifier: ^8.0.1 - version: 8.0.1 - prompt: - specifier: ^1.3.0 - version: 1.3.0 - shelljs: - specifier: ^0.8.5 - version: 0.8.5 - tcp-port-used: - specifier: ^1.0.2 - version: 1.0.2 - devDependencies: - '@tsmodule/tsmodule': - specifier: ^44.7.0 - version: 44.7.0 - '@types/shelljs': - specifier: ^0.8.15 - version: 0.8.15 - '@types/tcp-port-used': - specifier: ^1.0.4 - version: 1.0.4 - ava: - specifier: ^6.1.2 - version: 6.1.2 - prettier: - specifier: 3.3.2 - version: 3.3.2 - shx: - specifier: ^0.3.4 - version: 0.3.4 - typescript: - specifier: ^5.4.5 - version: 5.4.5 - - generator: - dependencies: - '@prisma/generator-helper': - specifier: ^4.11.0 - version: 4.11.0 - code-block-writer: - specifier: ^11.0.3 - version: 11.0.3 - lodash: - specifier: ^4.17.21 - version: 4.17.21 - zod: - specifier: 3.21.1 - version: 3.21.1 - devDependencies: - '@prisma/internals': - specifier: ^4.11.0 - version: 4.11.0 - '@types/lodash': - specifier: ^4.14.191 - version: 4.14.191 - '@typescript-eslint/eslint-plugin': - specifier: ^5.54.1 - version: 5.54.1(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0)(typescript@4.9.5) - '@typescript-eslint/parser': - specifier: ^5.54.1 - version: 5.54.1(eslint@8.57.0)(typescript@4.9.5) - eslint: - specifier: ^8.35.0 - version: 8.57.0 - eslint-config-prettier: - specifier: ^8.7.0 - version: 8.7.0(eslint@8.57.0) - eslint-config-universe: - specifier: ^11.2.0 - version: 11.2.0(eslint@8.57.0)(prettier@2.8.4)(typescript@4.9.5) - eslint-plugin-import: - specifier: ^2.27.5 - version: 2.27.5(@typescript-eslint/parser@5.54.1(eslint@8.57.0)(typescript@4.9.5))(eslint@8.57.0) - eslint-plugin-prettier: - specifier: ^4.2.1 - version: 4.2.1(eslint-config-prettier@8.7.0(eslint@8.57.0))(eslint@8.57.0)(prettier@2.8.4) - prettier: - specifier: ^2.8.4 - version: 2.8.4 - typescript: - specifier: ^4.9.5 - version: 4.9.5 - vitest: - specifier: ^0.24.5 - version: 0.24.5(happy-dom@14.10.2)(jsdom@24.0.0)(terser@5.31.1) - packages: '@ampproject/remapping@2.3.0': diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 46fc1f8282..98c44022b6 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -3,4 +3,4 @@ packages: - 'e2e/satellite_client' - 'examples/starter' - 'generator' - - 'components/*' + - 'packages/*'