From f46b37a531db9ee303154b5820f7c510bb3d6115 Mon Sep 17 00:00:00 2001 From: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com> Date: Sun, 29 Nov 2026 11:46:27 +0100 Subject: [PATCH 1/5] ci: check packages with publint and attw Add a test:build script to every public package that runs publint --strict and attw on the packed tarball, a root test:build that runs them all, and a step in the PR workflow's Preview job, which already builds every package. Profiles follow each package's exports: node16 where subpath exports cannot resolve under node10, esm-only for the ESM-only Preact and Solid bindings. browser-db-sqlite-persistence excludes its wasm and worker asset exports. svelte-db ignores internal-resolution-error because its declarations import ./DbProvider.svelte, which only Svelte tooling resolves. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/pr.yml | 2 + package.json | 2 + packages/angular-db/package.json | 1 + .../package.json | 1 + .../package.json | 1 + .../package.json | 1 + packages/convex-db-collection/package.json | 1 + packages/db-ivm/package.json | 1 + .../db-sqlite-persistence-core/package.json | 1 + packages/db/package.json | 1 + packages/electric-db-collection/package.json | 1 + .../package.json | 1 + .../expo-db-sqlite-persistence/package.json | 1 + .../node-db-sqlite-persistence/package.json | 1 + packages/offline-transactions/package.json | 1 + packages/powersync-db-collection/package.json | 1 + .../package.json | 1 + packages/preact-db/package.json | 1 + packages/query-db-collection/package.json | 1 + packages/react-db/package.json | 1 + .../package.json | 1 + packages/react-router-with-db/package.json | 1 + packages/rxdb-db-collection/package.json | 1 + packages/solid-db/package.json | 1 + packages/svelte-db/package.json | 1 + .../tauri-db-sqlite-persistence/package.json | 1 + packages/trailbase-db-collection/package.json | 1 + packages/vue-db/package.json | 1 + pnpm-lock.yaml | 237 +++++++++++++++++- 29 files changed, 265 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 5dda1a9b15..c6847f5e85 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -195,6 +195,8 @@ jobs: run: pnpm run build - name: Check that no build carries an oracle probe run: node scripts/check-dist-probes.mjs + - name: Check package exports and types + run: pnpm run test:build - name: Publish Previews run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*' size: diff --git a/package.json b/package.json index fc7b61a7c7..b16ae9464b 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "scripts": { "build": "pnpm --filter \"./packages/**\" build", "build:minified": "pnpm --filter \"./packages/**\" build:minified", + "test:build": "pnpm --filter \"./packages/**\" test:build", "changeset": "changeset", "changeset:publish": "node scripts/publish-packages.mjs", "changeset:version": "node scripts/version-packages.mjs", @@ -44,6 +45,7 @@ "test:collection-adapters:oracles:browser": "node scripts/run-collection-adapter-oracles.mjs --browser" }, "devDependencies": { + "@arethetypeswrong/cli": "^0.18.5", "@changesets/apply-release-plan": "7.1.1", "@changesets/assemble-release-plan": "6.0.10", "@changesets/cli": "^2.31.1", diff --git a/packages/angular-db/package.json b/packages/angular-db/package.json index 917c5fa148..3c79e93e01 100644 --- a/packages/angular-db/package.json +++ b/packages/angular-db/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/browser-db-sqlite-persistence/package.json b/packages/browser-db-sqlite-persistence/package.json index e386f872fb..2a5eb1aa3a 100644 --- a/packages/browser-db-sqlite-persistence/package.json +++ b/packages/browser-db-sqlite-persistence/package.json @@ -20,6 +20,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16 --exclude-entrypoints ./wa-sqlite.wasm ./opfs-worker.js", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/capacitor-db-sqlite-persistence/package.json b/packages/capacitor-db-sqlite-persistence/package.json index 0e4e06cd76..d8da201be6 100644 --- a/packages/capacitor-db-sqlite-persistence/package.json +++ b/packages/capacitor-db-sqlite-persistence/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json b/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json index 90e7ad58ea..f49f0cbde3 100644 --- a/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json +++ b/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/convex-db-collection/package.json b/packages/convex-db-collection/package.json index 38a08b33ed..7229bab625 100644 --- a/packages/convex-db-collection/package.json +++ b/packages/convex-db-collection/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest run", diff --git a/packages/db-ivm/package.json b/packages/db-ivm/package.json index e125ec08b7..5d8d58e5f2 100644 --- a/packages/db-ivm/package.json +++ b/packages/db-ivm/package.json @@ -20,6 +20,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/db-sqlite-persistence-core/package.json b/packages/db-sqlite-persistence-core/package.json index 50e396b0f5..695236d18f 100644 --- a/packages/db-sqlite-persistence-core/package.json +++ b/packages/db-sqlite-persistence-core/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/db/package.json b/packages/db/package.json index dc7503eebc..5dadba8c9d 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -18,6 +18,7 @@ "scripts": { "build": "vite build", "build:minified": "vite build --minify", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/electric-db-collection/package.json b/packages/electric-db-collection/package.json index cc90a98f26..0505e561f8 100644 --- a/packages/electric-db-collection/package.json +++ b/packages/electric-db-collection/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest run", diff --git a/packages/electron-db-sqlite-persistence/package.json b/packages/electron-db-sqlite-persistence/package.json index 924bd80ef9..21884a8a1e 100644 --- a/packages/electron-db-sqlite-persistence/package.json +++ b/packages/electron-db-sqlite-persistence/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/expo-db-sqlite-persistence/package.json b/packages/expo-db-sqlite-persistence/package.json index dc2955bfb7..53b5e411f1 100644 --- a/packages/expo-db-sqlite-persistence/package.json +++ b/packages/expo-db-sqlite-persistence/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/node-db-sqlite-persistence/package.json b/packages/node-db-sqlite-persistence/package.json index a35d41a173..a137ee3fb6 100644 --- a/packages/node-db-sqlite-persistence/package.json +++ b/packages/node-db-sqlite-persistence/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/offline-transactions/package.json b/packages/offline-transactions/package.json index b6353fc184..3529e97d88 100644 --- a/packages/offline-transactions/package.json +++ b/packages/offline-transactions/package.json @@ -20,6 +20,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "test": "vitest", "test:watch": "vitest --watch", diff --git a/packages/powersync-db-collection/package.json b/packages/powersync-db-collection/package.json index 4ec86e0ef5..346587900f 100644 --- a/packages/powersync-db-collection/package.json +++ b/packages/powersync-db-collection/package.json @@ -25,6 +25,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/powersync-direct-db-collection/package.json b/packages/powersync-direct-db-collection/package.json index 6a98681da8..12c74afd25 100644 --- a/packages/powersync-direct-db-collection/package.json +++ b/packages/powersync-direct-db-collection/package.json @@ -20,6 +20,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/preact-db/package.json b/packages/preact-db/package.json index 9dc0d9ee9b..b1d4ad298e 100644 --- a/packages/preact-db/package.json +++ b/packages/preact-db/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile esm-only", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/query-db-collection/package.json b/packages/query-db-collection/package.json index 62d51f73f5..6849bcda0b 100644 --- a/packages/query-db-collection/package.json +++ b/packages/query-db-collection/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest run", diff --git a/packages/react-db/package.json b/packages/react-db/package.json index e9640b1c50..270876b410 100644 --- a/packages/react-db/package.json +++ b/packages/react-db/package.json @@ -19,6 +19,7 @@ "scripts": { "build": "vite build && node scripts/check-use-client.mjs", "build:minified": "vite build --minify", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/react-native-db-sqlite-persistence/package.json b/packages/react-native-db-sqlite-persistence/package.json index 88160ab914..13275978b7 100644 --- a/packages/react-native-db-sqlite-persistence/package.json +++ b/packages/react-native-db-sqlite-persistence/package.json @@ -19,6 +19,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/react-router-with-db/package.json b/packages/react-router-with-db/package.json index 10ed988f92..cc33ff09c9 100644 --- a/packages/react-router-with-db/package.json +++ b/packages/react-router-with-db/package.json @@ -21,6 +21,7 @@ "scripts": { "build": "vite build", "build:minified": "vite build --minify", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run" diff --git a/packages/rxdb-db-collection/package.json b/packages/rxdb-db-collection/package.json index 9c5fdb5cf1..39d15dfc61 100644 --- a/packages/rxdb-db-collection/package.json +++ b/packages/rxdb-db-collection/package.json @@ -35,6 +35,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/solid-db/package.json b/packages/solid-db/package.json index 99c6905915..09d35df2a5 100644 --- a/packages/solid-db/package.json +++ b/packages/solid-db/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile esm-only", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/svelte-db/package.json b/packages/svelte-db/package.json index ca8045145d..726a7a77be 100644 --- a/packages/svelte-db/package.json +++ b/packages/svelte-db/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "svelte-package --input ./src --output ./dist --tsconfig ./tsconfig.build.json", + "test:build": "publint --strict && attw --pack . --profile esm-only --ignore-rules internal-resolution-error", "lint": "eslint . --fix", "test": "vitest --run", "test:types": "svelte-check --tsconfig ./tsconfig.json" diff --git a/packages/tauri-db-sqlite-persistence/package.json b/packages/tauri-db-sqlite-persistence/package.json index c7081d2a17..a7552b7894 100644 --- a/packages/tauri-db-sqlite-persistence/package.json +++ b/packages/tauri-db-sqlite-persistence/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack . --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/trailbase-db-collection/package.json b/packages/trailbase-db-collection/package.json index a7729e9fab..eb60e1e737 100644 --- a/packages/trailbase-db-collection/package.json +++ b/packages/trailbase-db-collection/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/vue-db/package.json b/packages/vue-db/package.json index ae2182858c..8efc76bb5c 100644 --- a/packages/vue-db/package.json +++ b/packages/vue-db/package.json @@ -18,6 +18,7 @@ ], "scripts": { "build": "vite build", + "test:build": "publint --strict && attw --pack .", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b1052b90bc..cefb918e3b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,6 +27,9 @@ importers: .: devDependencies: + '@arethetypeswrong/cli': + specifier: ^0.18.5 + version: 0.18.5 '@changesets/apply-release-plan': specifier: 7.1.1 version: 7.1.1 @@ -1988,6 +1991,9 @@ packages: resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} + '@andrewbranch/untar.js@1.0.4': + resolution: {integrity: sha512-pVXSwPsLuw8IGLo2Di0EaOfsk+ntVvpkk942J/sHYIkwvtKUakEcPh7HBgZ6tuimgzKSEHgCvO4XgQ05DEbwDw==} + '@angular-devkit/architect@0.2003.42': resolution: {integrity: sha512-yREf9kQOWGS70y8PFrJX7Ptr7dycXlVs0TOkO3Dn5nMSCGulxsID9iSCcAmnhk4ErHXY/2FrxDam+Vihr7SZaQ==} engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} @@ -2130,6 +2136,15 @@ packages: '@angular/platform-browser': 20.3.35 rxjs: ^6.5.3 || ^7.4.0 + '@arethetypeswrong/cli@0.18.5': + resolution: {integrity: sha512-gM+8vRsQOD/Uc7EnBedUhkG5OCsDWE4uoak5QvomGpMpaky0Eh41p04nIMgrWb8EOmqZUJGc6zz9hsP6E56R7g==} + engines: {node: '>=20'} + hasBin: true + + '@arethetypeswrong/core@0.18.5': + resolution: {integrity: sha512-9ytjzGwxjm9Uz7I9avfbt5vlQt6uk9uRRESzJjqrznl6WKvI6dwYTo+vJ3U02Wrq/mR3iql/PzhvHhKdJIAjDQ==} + engines: {node: '>=20'} + '@ark/schema@0.56.8': resolution: {integrity: sha512-R05TOe85oQBGFFw2zKMuZpqkXibLKuC/aJt6VwFn5Cjc4x3NkWfhvGRpRDycNkj3ddcHnOPtIsmjVowJO9Yxdw==} @@ -2846,6 +2861,9 @@ packages: '@better-fetch/fetch@1.3.1': resolution: {integrity: sha512-ABkD1WhyfPZprKRQI3bhATjeiFuNWC9PXhfGWqL+sg/gKrM977oFrYkdb4msM3hgUGonr7KlOsOFT5TU2rht9g==} + '@braidai/lang@1.1.2': + resolution: {integrity: sha512-qBcknbBufNHlui137Hft8xauQMTZDKdophmLFv05r2eNmdIv/MlPuP4TdUknHG68UdWLgVZwgxVe735HzJNIwA==} + '@capacitor-community/sqlite@8.0.1': resolution: {integrity: sha512-Bl1MhaWOWn912rgEwWOIy79Ou6HcAYHkVD1CiykE27CYunJMzK5cdooZbYVz5S9nEvBTG7flbmrD/PlCstYp5A==} engines: {node: '>=16.0.0'} @@ -2977,6 +2995,10 @@ packages: cpu: [x64] os: [win32] + '@colors/colors@1.5.0': + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} + engines: {node: '>=0.1.90'} + '@commitlint/parse@20.2.0': resolution: {integrity: sha512-LXStagGU1ivh07X7sM+hnEr4BvzFYn1iBJ6DRg2QsIN8lBfSzyvkUcVCDwok9Ia4PWiEgei5HQjju6xfJ1YaSQ==} engines: {node: '>=v18'} @@ -4777,6 +4799,9 @@ packages: cpu: [x64] os: [win32] + '@loaderkit/resolve@1.0.6': + resolution: {integrity: sha512-G8FdIoF5CypfwmD9rl8BXod5HDn8JqB0CCNBXDTaRZ+yRYhARrrSToX1zg1zy9jX3zLqigsELwhT4gNtkdQAUg==} + '@malept/cross-spawn-promise@2.0.0': resolution: {integrity: sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==} engines: {node: '>= 12.13.0'} @@ -6131,6 +6156,10 @@ packages: '@sinclair/typebox@0.27.8': resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + '@sindresorhus/is@7.2.0': resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==} engines: {node: '>=18'} @@ -6341,7 +6370,7 @@ packages: eslint: ^8.0.0 || ^9.0.0 '@tanstack/eslint-plugin-oracles@https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@b3dbde0': - resolution: {integrity: sha512-PRwJgvOo/GetcmToMs8RCgQtnwLLMrkp2AZNDP0n/zFf+fGzhMcMwfMhryU9J3f3ALarAfJd+Z0JTW0P7PEK9Q==, tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@b3dbde0} + resolution: {tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@b3dbde0} version: 0.0.0 engines: {node: '>=20'} peerDependencies: @@ -6352,7 +6381,7 @@ packages: engines: {node: '>=20.19'} '@tanstack/oracles@https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@b3dbde0': - resolution: {integrity: sha512-woTR5AxHJhj+p4jz6g/MX+1i2wIqiTaB3GbircEekrvfxx/AqRZOww2686FJNlcWe5H8xZSUO5/PN0cfclDBIg==, tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@b3dbde0} + resolution: {tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@b3dbde0} version: 0.0.0 engines: {node: '>=20'} hasBin: true @@ -7424,6 +7453,10 @@ packages: resolution: {integrity: sha512-YdhtCd19sKRKfAAUsrcC1wzm4JuzJoiX4pOJqIoW2qmKj5WzG/dL8uUJ0361zaXtHqK7gEhOwtAtz7t3Yq3X5g==} engines: {node: '>=18'} + ansi-escapes@7.3.0: + resolution: {integrity: sha512-BvU8nYgGQBxcmMuEeUEmNTvrMVjJNSH7RgW24vXexN4Ven6qCvy4TntnvlnwnMLTVlcRQQdbRY8NKnaIoeWDNg==} + engines: {node: '>=18'} + ansi-regex@4.1.1: resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==} engines: {node: '>=6'} @@ -7908,6 +7941,10 @@ packages: resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + chardet@2.1.1: resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==} @@ -7952,6 +7989,9 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} + cjs-module-lexer@1.4.3: + resolution: {integrity: sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==} + cli-cursor@2.1.0: resolution: {integrity: sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==} engines: {node: '>=4'} @@ -7960,10 +8000,19 @@ packages: resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} engines: {node: '>=18'} + cli-highlight@2.1.11: + resolution: {integrity: sha512-9KDcoEVwyUXrjcJNvHD0NFc/hiwe/WPVYIleQh2O1N2Zro5gWJZ/K+3DGn8w8P/F6FxOgzyC5bxDyHIgCSPhGg==} + engines: {node: '>=8.0.0', npm: '>=5.0.0'} + hasBin: true + cli-spinners@2.9.2: resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==} engines: {node: '>=6'} + cli-table3@0.6.5: + resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==} + engines: {node: 10.* || >= 12.*} + cli-truncate@4.0.0: resolution: {integrity: sha512-nPdaFdQ0h/GEigbPClz11D0v/ZJEwxmeVZGeMo3Z5StPtUTkA9o1lD6QwoirYiSDzbcwn2XcjwmCp68W1IS4TA==} engines: {node: '>=18'} @@ -7975,6 +8024,9 @@ packages: client-only@0.0.1: resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==} + cliui@7.0.4: + resolution: {integrity: sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==} + cliui@8.0.1: resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==} engines: {node: '>=12'} @@ -8021,6 +8073,10 @@ packages: comlink@4.4.2: resolution: {integrity: sha512-OxGdvBmJuNKSCMO4NTl1L47VRp6xn2wG4F/2hYzB6tiCb709otOxtEYCSvK80PtjODfXXZu8ds+Nw5kVCjqd2g==} + commander@10.0.1: + resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} + engines: {node: '>=14'} + commander@12.1.0: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} @@ -8522,6 +8578,9 @@ packages: emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + empathic@2.1.0: resolution: {integrity: sha512-AnfC1ATldl49/cvZdLPDjBfrRNwbDO05aibiOtzQu3qtlbJtomNLhF30HEtn/7iBz50dlMECqATo3fG0LrdEgw==} engines: {node: '>=14'} @@ -9478,6 +9537,9 @@ packages: hermes-parser@0.32.1: resolution: {integrity: sha512-175dz634X/W5AiwrpLdoMl/MOb17poLHyIqgyExlE8D9zQ1OPnoORnGMB5ltRKnpvQzBjMYvT2rN/sHeIfZW5Q==} + highlight.js@10.7.3: + resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} + hono@4.13.13: resolution: {integrity: sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==} engines: {node: '>=16.9.0'} @@ -10375,11 +10437,22 @@ packages: markdown-link-extractor@4.0.4: resolution: {integrity: sha512-Dw9saacqF4u1EjUm3O+f0ZTBM/o7l1IrdHS8z1KSFX2coECIcJTZbltICMKx6QwHBKlzMQXgtWYnIHX71WHZMw==} + marked-terminal@7.3.1: + resolution: {integrity: sha512-B1eKs5mRiacjHHMlex1zn0zkVomz2/KWjD/dyA8WRQTXk2d15OzVjiK/iuPfvDFB27Gvr8p/u6MYgU0NY/O45w==} + engines: {node: '>=16.0.0'} + peerDependencies: + marked: '>=1 <19' + marked@18.1.3: resolution: {integrity: sha512-9ChMH8EVVgjgID49nsL6IWxWk5c6GtAsq/xw7U1ggkjkU5AGuv68oLTVlFRtvcUYZtpbNyjyvGo3YDu0fGapiw==} engines: {node: '>= 20'} hasBin: true + marked@9.1.6: + resolution: {integrity: sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==} + engines: {node: '>= 16'} + hasBin: true + marky@1.3.0: resolution: {integrity: sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==} @@ -10763,6 +10836,10 @@ packages: node-api-version@0.2.1: resolution: {integrity: sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==} + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + node-fetch@2.7.0: resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} engines: {node: 4.x || >=6.0.0} @@ -11040,6 +11117,9 @@ packages: parse5-html-rewriting-stream@8.0.0: resolution: {integrity: sha512-wzh11mj8KKkno1pZEu+l2EVeWsuKDfR5KNWZOTsslfUX8lPDZx77m9T0kIoAVkFtD1nx6YF8oh4BnPHvxMtNMw==} + parse5-htmlparser2-tree-adapter@6.0.1: + resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==} + parse5-htmlparser2-tree-adapter@7.1.0: resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} @@ -11049,6 +11129,12 @@ packages: parse5-sax-parser@8.0.0: resolution: {integrity: sha512-/dQ8UzHZwnrzs3EvDj6IkKrD/jIZyTlB+8XrHJvcjNgRdmWruNdN9i9RK/JtxakmlUdPwKubKPTCqvbTgzGhrw==} + parse5@5.1.1: + resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==} + + parse5@6.0.1: + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + parse5@7.3.0: resolution: {integrity: sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==} @@ -12002,6 +12088,10 @@ packages: sisteransi@1.0.5: resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -12279,6 +12369,10 @@ packages: resolution: {integrity: sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==} engines: {node: '>=8'} + supports-hyperlinks@3.2.0: + resolution: {integrity: sha512-zFObLMyZeEwzAoKCyu1B91U79K2t7ApXuQfo8OuxwXLDgcKxuwM+YvcbIhm6QWqz7mHUH1TVytR1PwVVjEuMig==} + engines: {node: '>=14.18'} + supports-preserve-symlinks-flag@1.0.0: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} @@ -12586,6 +12680,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.6.1-rc: + resolution: {integrity: sha512-E3b2+1zEFu84jB0YQi9BORDjz9+jGbwwy1Zi3G0LUNw7a7cePUrHMRNy8aPh53nXpkFGVHSxIZo5vKTfYaFiBQ==} + engines: {node: '>=14.17'} + hasBin: true + typescript@5.9.3: resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} engines: {node: '>=14.17'} @@ -12631,6 +12730,10 @@ packages: resolution: {integrity: sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==} engines: {node: '>=4'} + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + unicode-match-property-ecmascript@2.0.0: resolution: {integrity: sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==} engines: {node: '>=4'} @@ -13262,6 +13365,10 @@ packages: engines: {node: '>= 14.6'} hasBin: true + yargs-parser@20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + yargs-parser@21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} @@ -13270,6 +13377,10 @@ packages: resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==} engines: {node: ^20.19.0 || ^22.12.0 || >=23} + yargs@16.2.2: + resolution: {integrity: sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==} + engines: {node: '>=10'} + yargs@17.7.2: resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==} engines: {node: '>=12'} @@ -13423,6 +13534,8 @@ snapshots: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 + '@andrewbranch/untar.js@1.0.4': {} + '@angular-devkit/architect@0.2003.42(chokidar@4.0.1)': dependencies: '@angular-devkit/core': 20.3.42(chokidar@4.0.1) @@ -13593,6 +13706,27 @@ snapshots: rxjs: 7.8.2 tslib: 2.8.1 + '@arethetypeswrong/cli@0.18.5': + dependencies: + '@arethetypeswrong/core': 0.18.5 + chalk: 4.1.2 + cli-table3: 0.6.5 + commander: 10.0.1 + marked: 9.1.6 + marked-terminal: 7.3.1(marked@9.1.6) + semver: 7.8.5 + + '@arethetypeswrong/core@0.18.5': + dependencies: + '@andrewbranch/untar.js': 1.0.4 + '@loaderkit/resolve': 1.0.6 + cjs-module-lexer: 1.4.3 + fflate: 0.8.3 + lru-cache: 11.5.3 + semver: 7.8.5 + typescript: 5.6.1-rc + validate-npm-package-name: 5.0.1 + '@ark/schema@0.56.8': dependencies: '@ark/util': 0.56.8 @@ -14932,6 +15066,8 @@ snapshots: '@better-fetch/fetch@1.3.1': {} + '@braidai/lang@1.1.2': {} + '@capacitor-community/sqlite@8.0.1(@capacitor/core@8.6.0)': dependencies: '@capacitor/core': 8.6.0 @@ -15150,6 +15286,9 @@ snapshots: '@cloudflare/workerd-windows-64@1.20261104.1': optional: true + '@colors/colors@1.5.0': + optional: true + '@commitlint/parse@20.2.0': dependencies: '@commitlint/types': 20.2.0 @@ -16996,6 +17135,10 @@ snapshots: '@lmdb/lmdb-win32-x64@3.4.2': optional: true + '@loaderkit/resolve@1.0.6': + dependencies: + '@braidai/lang': 1.1.2 + '@malept/cross-spawn-promise@2.0.0': dependencies: cross-spawn: 7.0.6 @@ -18403,6 +18546,8 @@ snapshots: '@sinclair/typebox@0.27.8': {} + '@sindresorhus/is@4.6.0': {} + '@sindresorhus/is@7.2.0': {} '@sinonjs/commons@3.0.1': @@ -19931,6 +20076,10 @@ snapshots: dependencies: environment: 1.1.0 + ansi-escapes@7.3.0: + dependencies: + environment: 1.1.0 + ansi-regex@4.1.1: {} ansi-regex@5.0.1: {} @@ -20581,6 +20730,8 @@ snapshots: chalk@5.6.2: {} + char-regex@1.0.2: {} + chardet@2.1.1: {} cheerio-select@2.1.0: @@ -20644,6 +20795,8 @@ snapshots: ci-info@3.9.0: {} + cjs-module-lexer@1.4.3: {} + cli-cursor@2.1.0: dependencies: restore-cursor: 2.0.0 @@ -20652,8 +20805,23 @@ snapshots: dependencies: restore-cursor: 5.1.0 + cli-highlight@2.1.11: + dependencies: + chalk: 4.1.2 + highlight.js: 10.7.3 + mz: 2.7.0 + parse5: 5.1.1 + parse5-htmlparser2-tree-adapter: 6.0.1 + yargs: 16.2.2 + cli-spinners@2.9.2: {} + cli-table3@0.6.5: + dependencies: + string-width: 4.2.3 + optionalDependencies: + '@colors/colors': 1.5.0 + cli-truncate@4.0.0: dependencies: slice-ansi: 5.0.0 @@ -20663,6 +20831,12 @@ snapshots: client-only@0.0.1: {} + cliui@7.0.4: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 7.0.0 + cliui@8.0.1: dependencies: string-width: 4.2.3 @@ -20709,6 +20883,8 @@ snapshots: comlink@4.4.2: {} + commander@10.0.1: {} + commander@12.1.0: {} commander@13.1.0: {} @@ -21079,6 +21255,8 @@ snapshots: emoji-regex@9.2.2: {} + emojilib@2.4.0: {} + empathic@2.1.0: {} encodeurl@1.0.2: {} @@ -22519,6 +22697,8 @@ snapshots: dependencies: hermes-estree: 0.32.1 + highlight.js@10.7.3: {} + hono@4.13.13: {} hosted-git-info@7.0.2: @@ -23455,8 +23635,21 @@ snapshots: html-link-extractor: 1.0.5 marked: 18.1.3 + marked-terminal@7.3.1(marked@9.1.6): + dependencies: + ansi-escapes: 7.3.0 + ansi-regex: 6.4.0 + chalk: 5.6.2 + cli-highlight: 2.1.11 + cli-table3: 0.6.5 + marked: 9.1.6 + node-emoji: 2.2.0 + supports-hyperlinks: 3.2.0 + marked@18.1.3: {} + marked@9.1.6: {} + marky@1.3.0: {} math-intrinsics@1.1.0: {} @@ -23910,6 +24103,13 @@ snapshots: dependencies: semver: 7.8.5 + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + node-fetch@2.7.0: dependencies: whatwg-url: 5.0.0 @@ -24255,6 +24455,10 @@ snapshots: parse5: 8.0.1 parse5-sax-parser: 8.0.0 + parse5-htmlparser2-tree-adapter@6.0.1: + dependencies: + parse5: 6.0.1 + parse5-htmlparser2-tree-adapter@7.1.0: dependencies: domhandler: 5.0.3 @@ -24268,6 +24472,10 @@ snapshots: dependencies: parse5: 8.0.1 + parse5@5.1.1: {} + + parse5@6.0.1: {} + parse5@7.3.0: dependencies: entities: 6.0.1 @@ -25587,6 +25795,10 @@ snapshots: sisteransi@1.0.5: {} + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + slash@3.0.0: {} slice-ansi@4.0.0: @@ -25866,6 +26078,11 @@ snapshots: has-flag: 4.0.0 supports-color: 7.2.0 + supports-hyperlinks@3.2.0: + dependencies: + has-flag: 4.0.0 + supports-color: 7.2.0 + supports-preserve-symlinks-flag@1.0.0: {} svelte-check@4.7.8(picomatch@4.0.7)(svelte@5.57.3(@typescript-eslint/types@8.72.1))(typescript@5.9.3): @@ -26204,6 +26421,8 @@ snapshots: typescript@5.4.2: {} + typescript@5.6.1-rc: {} + typescript@5.9.3: {} uc.micro@2.1.0: {} @@ -26235,6 +26454,8 @@ snapshots: unicode-canonical-property-names-ecmascript@2.0.1: {} + unicode-emoji-modifier-base@1.0.0: {} + unicode-match-property-ecmascript@2.0.0: dependencies: unicode-canonical-property-names-ecmascript: 2.0.1 @@ -26840,10 +27061,22 @@ snapshots: yaml@2.9.1: {} + yargs-parser@20.2.9: {} + yargs-parser@21.1.1: {} yargs-parser@22.0.0: {} + yargs@16.2.2: + dependencies: + cliui: 7.0.4 + escalade: 3.2.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + string-width: 4.2.3 + y18n: 5.0.8 + yargs-parser: 20.2.9 + yargs@17.7.2: dependencies: cliui: 8.0.1 From 8f72735306537176f442b0cce11a5ed0c2ee808b Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Sun, 29 Nov 2026 11:14:10 -0700 Subject: [PATCH 2/5] ci: validate a single pnpm tarball per package --- package.json | 2 +- packages/angular-db/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/convex-db-collection/package.json | 2 +- packages/db-ivm/package.json | 2 +- .../db-sqlite-persistence-core/package.json | 2 +- packages/db/package.json | 2 +- packages/electric-db-collection/package.json | 2 +- .../package.json | 2 +- .../expo-db-sqlite-persistence/package.json | 2 +- .../node-db-sqlite-persistence/package.json | 2 +- packages/offline-transactions/package.json | 2 +- packages/powersync-db-collection/package.json | 2 +- .../package.json | 2 +- packages/preact-db/package.json | 2 +- packages/query-db-collection/package.json | 2 +- packages/react-db/package.json | 2 +- .../package.json | 2 +- packages/react-router-with-db/package.json | 2 +- packages/rxdb-db-collection/package.json | 2 +- packages/solid-db/package.json | 2 +- packages/svelte-db/package.json | 2 +- .../tauri-db-sqlite-persistence/package.json | 2 +- packages/trailbase-db-collection/package.json | 2 +- packages/vue-db/package.json | 2 +- pnpm-lock.yaml | 4 +- scripts/check-built-package.mjs | 52 +++++++++++++++ scripts/check-built-package.test.mjs | 65 +++++++++++++++++++ 30 files changed, 146 insertions(+), 29 deletions(-) create mode 100644 scripts/check-built-package.mjs create mode 100644 scripts/check-built-package.test.mjs diff --git a/package.json b/package.json index b16ae9464b..67930e57a0 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "build": "pnpm --filter \"./packages/**\" build", "build:minified": "pnpm --filter \"./packages/**\" build:minified", - "test:build": "pnpm --filter \"./packages/**\" test:build", + "test:build": "node --test scripts/check-built-package.test.mjs && pnpm --filter \"./packages/**\" test:build", "changeset": "changeset", "changeset:publish": "node scripts/publish-packages.mjs", "changeset:version": "node scripts/version-packages.mjs", diff --git a/packages/angular-db/package.json b/packages/angular-db/package.json index 3c79e93e01..4ce3b5c228 100644 --- a/packages/angular-db/package.json +++ b/packages/angular-db/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/browser-db-sqlite-persistence/package.json b/packages/browser-db-sqlite-persistence/package.json index 2a5eb1aa3a..d42c67ce42 100644 --- a/packages/browser-db-sqlite-persistence/package.json +++ b/packages/browser-db-sqlite-persistence/package.json @@ -20,7 +20,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16 --exclude-entrypoints ./wa-sqlite.wasm ./opfs-worker.js", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16 --exclude-entrypoints ./wa-sqlite.wasm ./opfs-worker.js", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/capacitor-db-sqlite-persistence/package.json b/packages/capacitor-db-sqlite-persistence/package.json index d8da201be6..5d02c526bb 100644 --- a/packages/capacitor-db-sqlite-persistence/package.json +++ b/packages/capacitor-db-sqlite-persistence/package.json @@ -19,7 +19,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json b/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json index f49f0cbde3..05c1481a2a 100644 --- a/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json +++ b/packages/cloudflare-durable-objects-db-sqlite-persistence/package.json @@ -19,7 +19,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/convex-db-collection/package.json b/packages/convex-db-collection/package.json index 7229bab625..a8b51d27a1 100644 --- a/packages/convex-db-collection/package.json +++ b/packages/convex-db-collection/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest run", diff --git a/packages/db-ivm/package.json b/packages/db-ivm/package.json index 5d8d58e5f2..da4f6de571 100644 --- a/packages/db-ivm/package.json +++ b/packages/db-ivm/package.json @@ -20,7 +20,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/db-sqlite-persistence-core/package.json b/packages/db-sqlite-persistence-core/package.json index 695236d18f..6a031a3522 100644 --- a/packages/db-sqlite-persistence-core/package.json +++ b/packages/db-sqlite-persistence-core/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/db/package.json b/packages/db/package.json index 5dadba8c9d..03b26a995b 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -18,7 +18,7 @@ "scripts": { "build": "vite build", "build:minified": "vite build --minify", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/electric-db-collection/package.json b/packages/electric-db-collection/package.json index 0505e561f8..c03512ca93 100644 --- a/packages/electric-db-collection/package.json +++ b/packages/electric-db-collection/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest run", diff --git a/packages/electron-db-sqlite-persistence/package.json b/packages/electron-db-sqlite-persistence/package.json index 21884a8a1e..5cdd4c745e 100644 --- a/packages/electron-db-sqlite-persistence/package.json +++ b/packages/electron-db-sqlite-persistence/package.json @@ -19,7 +19,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/expo-db-sqlite-persistence/package.json b/packages/expo-db-sqlite-persistence/package.json index 53b5e411f1..3ddc098f96 100644 --- a/packages/expo-db-sqlite-persistence/package.json +++ b/packages/expo-db-sqlite-persistence/package.json @@ -19,7 +19,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/node-db-sqlite-persistence/package.json b/packages/node-db-sqlite-persistence/package.json index a137ee3fb6..9dd4767279 100644 --- a/packages/node-db-sqlite-persistence/package.json +++ b/packages/node-db-sqlite-persistence/package.json @@ -19,7 +19,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/offline-transactions/package.json b/packages/offline-transactions/package.json index 3529e97d88..76455f3b0b 100644 --- a/packages/offline-transactions/package.json +++ b/packages/offline-transactions/package.json @@ -20,7 +20,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "test": "vitest", "test:watch": "vitest --watch", diff --git a/packages/powersync-db-collection/package.json b/packages/powersync-db-collection/package.json index 346587900f..c966cbe3fa 100644 --- a/packages/powersync-db-collection/package.json +++ b/packages/powersync-db-collection/package.json @@ -25,7 +25,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/powersync-direct-db-collection/package.json b/packages/powersync-direct-db-collection/package.json index 12c74afd25..271b5ec14d 100644 --- a/packages/powersync-direct-db-collection/package.json +++ b/packages/powersync-direct-db-collection/package.json @@ -20,7 +20,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/preact-db/package.json b/packages/preact-db/package.json index b1d4ad298e..fff45b1b8a 100644 --- a/packages/preact-db/package.json +++ b/packages/preact-db/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile esm-only", + "test:build": "node ../../scripts/check-built-package.mjs --profile esm-only", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/query-db-collection/package.json b/packages/query-db-collection/package.json index 6849bcda0b..1a0cffe84a 100644 --- a/packages/query-db-collection/package.json +++ b/packages/query-db-collection/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest run", diff --git a/packages/react-db/package.json b/packages/react-db/package.json index 270876b410..3e7a9c249f 100644 --- a/packages/react-db/package.json +++ b/packages/react-db/package.json @@ -19,7 +19,7 @@ "scripts": { "build": "vite build && node scripts/check-use-client.mjs", "build:minified": "vite build --minify", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/react-native-db-sqlite-persistence/package.json b/packages/react-native-db-sqlite-persistence/package.json index 13275978b7..fba1cf358a 100644 --- a/packages/react-native-db-sqlite-persistence/package.json +++ b/packages/react-native-db-sqlite-persistence/package.json @@ -19,7 +19,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/react-router-with-db/package.json b/packages/react-router-with-db/package.json index cc33ff09c9..00edb3a53f 100644 --- a/packages/react-router-with-db/package.json +++ b/packages/react-router-with-db/package.json @@ -21,7 +21,7 @@ "scripts": { "build": "vite build", "build:minified": "vite build --minify", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run" diff --git a/packages/rxdb-db-collection/package.json b/packages/rxdb-db-collection/package.json index 39d15dfc61..63970524bf 100644 --- a/packages/rxdb-db-collection/package.json +++ b/packages/rxdb-db-collection/package.json @@ -35,7 +35,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/solid-db/package.json b/packages/solid-db/package.json index 09d35df2a5..acbfee5321 100644 --- a/packages/solid-db/package.json +++ b/packages/solid-db/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile esm-only", + "test:build": "node ../../scripts/check-built-package.mjs --profile esm-only", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/packages/svelte-db/package.json b/packages/svelte-db/package.json index 726a7a77be..a537460135 100644 --- a/packages/svelte-db/package.json +++ b/packages/svelte-db/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "svelte-package --input ./src --output ./dist --tsconfig ./tsconfig.build.json", - "test:build": "publint --strict && attw --pack . --profile esm-only --ignore-rules internal-resolution-error", + "test:build": "node ../../scripts/check-built-package.mjs --allow-svelte-provider", "lint": "eslint . --fix", "test": "vitest --run", "test:types": "svelte-check --tsconfig ./tsconfig.json" diff --git a/packages/tauri-db-sqlite-persistence/package.json b/packages/tauri-db-sqlite-persistence/package.json index a7552b7894..f398401171 100644 --- a/packages/tauri-db-sqlite-persistence/package.json +++ b/packages/tauri-db-sqlite-persistence/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack . --profile node16", + "test:build": "node ../../scripts/check-built-package.mjs --profile node16", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/trailbase-db-collection/package.json b/packages/trailbase-db-collection/package.json index eb60e1e737..dd19cc7805 100644 --- a/packages/trailbase-db-collection/package.json +++ b/packages/trailbase-db-collection/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "lint": "eslint . --fix", "test": "vitest --run", diff --git a/packages/vue-db/package.json b/packages/vue-db/package.json index 8efc76bb5c..f04f34ab82 100644 --- a/packages/vue-db/package.json +++ b/packages/vue-db/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "vite build", - "test:build": "publint --strict && attw --pack .", + "test:build": "node ../../scripts/check-built-package.mjs", "dev": "vite build --watch", "test": "vitest --run", "lint": "eslint . --fix" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cefb918e3b..631b8fcb88 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6370,7 +6370,7 @@ packages: eslint: ^8.0.0 || ^9.0.0 '@tanstack/eslint-plugin-oracles@https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@b3dbde0': - resolution: {tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@b3dbde0} + resolution: {integrity: sha512-PRwJgvOo/GetcmToMs8RCgQtnwLLMrkp2AZNDP0n/zFf+fGzhMcMwfMhryU9J3f3ALarAfJd+Z0JTW0P7PEK9Q==, tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/eslint-plugin-oracles@b3dbde0} version: 0.0.0 engines: {node: '>=20'} peerDependencies: @@ -6381,7 +6381,7 @@ packages: engines: {node: '>=20.19'} '@tanstack/oracles@https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@b3dbde0': - resolution: {tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@b3dbde0} + resolution: {integrity: sha512-woTR5AxHJhj+p4jz6g/MX+1i2wIqiTaB3GbircEekrvfxx/AqRZOww2686FJNlcWe5H8xZSUO5/PN0cfclDBIg==, tarball: https://pkg.pr.new/TanStack/oracles/@tanstack/oracles@b3dbde0} version: 0.0.0 engines: {node: '>=20'} hasBin: true diff --git a/scripts/check-built-package.mjs b/scripts/check-built-package.mjs new file mode 100644 index 0000000000..ba7a41a6c6 --- /dev/null +++ b/scripts/check-built-package.mjs @@ -0,0 +1,52 @@ +import { execFileSync } from 'node:child_process' +import { mkdtempSync, rmSync } from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' + +function checkSvelteTypes(tarball) { + // The CLI can ignore a whole rule. Its JSON still includes those diagnostics. + const output = execFileSync( + 'attw', + [ + tarball, + '--profile', + 'esm-only', + '--format', + 'json', + '--ignore-rules', + 'internal-resolution-error', + ], + { encoding: 'utf8' }, + ) + const { analysis } = JSON.parse(output) + const unexpected = analysis.problems + .filter((problem) => problem.kind === 'InternalResolutionError') + .filter( + ({ fileName, moduleSpecifier }) => + fileName !== '/node_modules/@tanstack/svelte-db/dist/index.d.ts' || + moduleSpecifier !== './DbProvider.svelte', + ) + if (unexpected.length > 0) { + const details = unexpected.map( + ({ fileName, moduleSpecifier, resolutionOption }) => + `Cannot resolve '${moduleSpecifier}' from ${fileName} (${resolutionOption})`, + ) + throw new Error(details.join('\n')) + } + console.log(`ATTW passed for ${analysis.packageName}`) +} + +const args = process.argv.slice(2) +const directory = mkdtempSync(join(tmpdir(), 'tanstack-db-pack-')) +const tarball = join(directory, 'package.tgz') +try { + execFileSync('pnpm', ['pack', '--out', tarball]) + execFileSync('publint', [tarball, '--strict'], { stdio: 'inherit' }) + if (args[0] === '--allow-svelte-provider') { + checkSvelteTypes(tarball) + } else { + execFileSync('attw', [tarball, ...args], { stdio: 'inherit' }) + } +} finally { + rmSync(directory, { recursive: true, force: true }) +} diff --git a/scripts/check-built-package.test.mjs b/scripts/check-built-package.test.mjs new file mode 100644 index 0000000000..69ed2ebede --- /dev/null +++ b/scripts/check-built-package.test.mjs @@ -0,0 +1,65 @@ +import assert from 'node:assert/strict' +import { spawnSync } from 'node:child_process' +import { + mkdirSync, + mkdtempSync, + readFileSync, + rmSync, + writeFileSync, +} from 'node:fs' +import { tmpdir } from 'node:os' +import { join } from 'node:path' +import { test } from 'node:test' +import { fileURLToPath } from 'node:url' + +const check = fileURLToPath( + new URL('./check-built-package.mjs', import.meta.url), +) + +test('preserves an existing tarball and rejects unexpected Svelte declaration errors', (t) => { + const cwd = mkdtempSync(join(tmpdir(), 'tanstack-db-pack-test-')) + t.after(() => rmSync(cwd, { recursive: true, force: true })) + mkdirSync(join(cwd, 'dist')) + writeFileSync( + join(cwd, 'package.json'), + JSON.stringify({ + name: '@tanstack/svelte-db', + version: '0.0.0', + type: 'module', + svelte: './dist/index.js', + types: './dist/index.d.ts', + exports: { + '.': { types: './dist/index.d.ts', svelte: './dist/index.js' }, + }, + files: ['dist'], + }), + ) + writeFileSync(join(cwd, 'dist/DbProvider.svelte'), '') + writeFileSync( + join(cwd, 'dist/index.js'), + "export { default as DbProvider } from './DbProvider.svelte'\n", + ) + + const declarations = join(cwd, 'dist/index.d.ts') + const provider = + "export { default as DbProvider } from './DbProvider.svelte'\n" + const existingTarball = join(cwd, 'tanstack-svelte-db-0.0.0.tgz') + writeFileSync(existingTarball, 'previous package') + + const runCheck = () => + spawnSync(process.execPath, [check, '--allow-svelte-provider'], { + cwd, + encoding: 'utf8', + }) + + writeFileSync(declarations, provider) + const accepted = runCheck() + assert.equal(accepted.status, 0, accepted.stderr + accepted.stdout) + assert.equal(readFileSync(existingTarball, 'utf8'), 'previous package') + + writeFileSync(declarations, provider + "export * from './missing.js'\n") + const rejected = runCheck() + assert.equal(rejected.status, 1, rejected.stderr + rejected.stdout) + assert.match(rejected.stderr, /Cannot resolve '\.\/missing\.js'/) + assert.equal(readFileSync(existingTarball, 'utf8'), 'previous package') +}) From 115149b7924fd7cc677ebb70ec6a59398f073c16 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Sun, 29 Nov 2026 11:53:49 -0700 Subject: [PATCH 3/5] fix(svelte-db): make DbProvider declarations resolve in TypeScript --- .changeset/svelte-db-provider-declarations.md | 5 +++ packages/svelte-db/package.json | 2 +- packages/svelte-db/src/DbProvider.svelte | 10 +---- packages/svelte-db/src/db-context.ts | 8 ++++ packages/svelte-db/src/index.ts | 12 +++++- packages/svelte-db/tests/DbProvider.test-d.ts | 16 ++++++++ scripts/check-built-package.mjs | 39 +------------------ scripts/check-built-package.test.mjs | 8 ++-- 8 files changed, 48 insertions(+), 52 deletions(-) create mode 100644 .changeset/svelte-db-provider-declarations.md create mode 100644 packages/svelte-db/tests/DbProvider.test-d.ts diff --git a/.changeset/svelte-db-provider-declarations.md b/.changeset/svelte-db-provider-declarations.md new file mode 100644 index 0000000000..9d34093acc --- /dev/null +++ b/.changeset/svelte-db-provider-declarations.md @@ -0,0 +1,5 @@ +--- +'@tanstack/svelte-db': patch +--- + +Fix the published DbProvider declarations so TypeScript can resolve the component and its props without Svelte-specific tooling. diff --git a/packages/svelte-db/package.json b/packages/svelte-db/package.json index a537460135..a949956ca2 100644 --- a/packages/svelte-db/package.json +++ b/packages/svelte-db/package.json @@ -18,7 +18,7 @@ ], "scripts": { "build": "svelte-package --input ./src --output ./dist --tsconfig ./tsconfig.build.json", - "test:build": "node ../../scripts/check-built-package.mjs --allow-svelte-provider", + "test:build": "node ../../scripts/check-built-package.mjs --profile esm-only", "lint": "eslint . --fix", "test": "vitest --run", "test:types": "svelte-check --tsconfig ./tsconfig.json" diff --git a/packages/svelte-db/src/DbProvider.svelte b/packages/svelte-db/src/DbProvider.svelte index 9905db4cf3..2632dc955d 100644 --- a/packages/svelte-db/src/DbProvider.svelte +++ b/packages/svelte-db/src/DbProvider.svelte @@ -1,19 +1,13 @@