From f582744819a14552a23846e075e4575f04411bf9 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Fri, 3 Oct 2025 14:44:15 +0400 Subject: [PATCH] fix package jsons --- .../examples/database-node/package.json | 7 +++-- .../examples/database-wasm-vite/package.json | 4 ++- .../examples/sync-node/package.json | 7 +++-- .../examples/sync-wasm-vite/package.json | 4 ++- bindings/javascript/package-lock.json | 29 ++++++++++++++++++- bindings/javascript/package.json | 3 +- bindings/javascript/yarn.lock | 11 ++++++- 7 files changed, 56 insertions(+), 9 deletions(-) diff --git a/bindings/javascript/examples/database-node/package.json b/bindings/javascript/examples/database-node/package.json index cf8ebe7d8..537dc451e 100644 --- a/bindings/javascript/examples/database-node/package.json +++ b/bindings/javascript/examples/database-node/package.json @@ -2,11 +2,14 @@ "name": "database-node", "version": "1.0.0", "main": "index.mjs", - "scripts": { - }, "author": "", "license": "ISC", "description": "", + "scripts": { + "tsc-build": "echo 'no tsc-build'", + "build": "echo 'no build'", + "test": "echo 'no tests'" + }, "dependencies": { "@tursodatabase/database": "^0.2.0" } diff --git a/bindings/javascript/examples/database-wasm-vite/package.json b/bindings/javascript/examples/database-wasm-vite/package.json index 88ec402bf..e0754bca2 100644 --- a/bindings/javascript/examples/database-wasm-vite/package.json +++ b/bindings/javascript/examples/database-wasm-vite/package.json @@ -5,7 +5,9 @@ "scripts": { "dev": "vite", "build": "vite build", - "serve": "node server.mjs" + "serve": "node server.mjs", + "tsc-build": "echo 'no tsc-build'", + "test": "echo 'no tests'" }, "author": "", "license": "ISC", diff --git a/bindings/javascript/examples/sync-node/package.json b/bindings/javascript/examples/sync-node/package.json index a9cc5c26d..e18052ea3 100644 --- a/bindings/javascript/examples/sync-node/package.json +++ b/bindings/javascript/examples/sync-node/package.json @@ -2,11 +2,14 @@ "name": "sync-node", "version": "1.0.0", "main": "index.mjs", - "scripts": { - }, "author": "", "license": "ISC", "description": "", + "scripts": { + "tsc-build": "echo 'no tsc-build'", + "build": "echo 'no build'", + "test": "echo 'no tests'" + }, "dependencies": { "@tursodatabase/sync": "^0.2.0" } diff --git a/bindings/javascript/examples/sync-wasm-vite/package.json b/bindings/javascript/examples/sync-wasm-vite/package.json index 0ce701166..fbcddd2a7 100644 --- a/bindings/javascript/examples/sync-wasm-vite/package.json +++ b/bindings/javascript/examples/sync-wasm-vite/package.json @@ -5,7 +5,9 @@ "scripts": { "dev": "vite", "build": "vite build", - "serve": "node server.mjs" + "serve": "node server.mjs", + "tsc-build": "echo 'no tsc-build'", + "test": "echo 'no tests'" }, "author": "", "license": "ISC", diff --git a/bindings/javascript/package-lock.json b/bindings/javascript/package-lock.json index ee09edf43..78ecea6bb 100644 --- a/bindings/javascript/package-lock.json +++ b/bindings/javascript/package-lock.json @@ -15,7 +15,9 @@ "sync/packages/native", "sync/packages/wasm", "examples/database-node", - "examples/database-wasm-vite" + "examples/database-wasm-vite", + "examples/sync-node", + "examples/sync-wasm-vite" ] }, "examples/database-node": { @@ -35,6 +37,23 @@ "vite": "^7.1.9" } }, + "examples/sync-node": { + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@tursodatabase/sync": "^0.2.0" + } + }, + "examples/sync-wasm-vite": { + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "@tursodatabase/sync-wasm": "^0.2.0" + }, + "devDependencies": { + "vite": "^7.1.9" + } + }, "node_modules/@babel/code-frame": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", @@ -3075,6 +3094,14 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/sync-node": { + "resolved": "examples/sync-node", + "link": true + }, + "node_modules/sync-wasm-vite": { + "resolved": "examples/sync-wasm-vite", + "link": true + }, "node_modules/tar-fs": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz", diff --git a/bindings/javascript/package.json b/bindings/javascript/package.json index 29206e00f..1f94d4350 100644 --- a/bindings/javascript/package.json +++ b/bindings/javascript/package.json @@ -15,7 +15,8 @@ "sync/packages/wasm", "examples/database-node", "examples/database-wasm-vite", - "examples/sync-node" + "examples/sync-node", + "examples/sync-wasm-vite" ], "version": "0.2.0" } diff --git a/bindings/javascript/yarn.lock b/bindings/javascript/yarn.lock index 9a59edb2f..f111364b7 100644 --- a/bindings/javascript/yarn.lock +++ b/bindings/javascript/yarn.lock @@ -1632,7 +1632,7 @@ __metadata: languageName: unknown linkType: soft -"@tursodatabase/sync-wasm@workspace:sync/packages/wasm": +"@tursodatabase/sync-wasm@npm:^0.2.0, @tursodatabase/sync-wasm@workspace:sync/packages/wasm": version: 0.0.0-use.local resolution: "@tursodatabase/sync-wasm@workspace:sync/packages/wasm" dependencies: @@ -3680,6 +3680,15 @@ __metadata: languageName: unknown linkType: soft +"sync-wasm-vite@workspace:examples/sync-wasm-vite": + version: 0.0.0-use.local + resolution: "sync-wasm-vite@workspace:examples/sync-wasm-vite" + dependencies: + "@tursodatabase/sync-wasm": "npm:^0.2.0" + vite: "npm:^7.1.9" + languageName: unknown + linkType: soft + "tar-fs@npm:^2.0.0": version: 2.1.4 resolution: "tar-fs@npm:2.1.4"