From 24b3fdaf22b56ace1648f28974eb9d2286d48d02 Mon Sep 17 00:00:00 2001 From: Herb Caudill Date: Thu, 29 Feb 2024 13:55:45 +0100 Subject: [PATCH 1/3] fix root watch script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8c2a84f10..cb02b5575 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "test:log": "cross-env DEBUG='automerge-repo:*' vitest", "test:coverage": "vitest --coverage", "test:ui": "vitest --coverage --ui", - "watch": "pnpm -r watch --parallel --stream" + "watch": "pnpm run --parallel --stream -r watch " }, "engines": { "node": ">= 18.x" @@ -70,4 +70,4 @@ "vite-plugin-wasm": "^3.3.0", "vitest": "^1.2.2" } -} +} \ No newline at end of file From 4b19a316725d1e3fc022664a8b4576d08b4c486d Mon Sep 17 00:00:00 2001 From: Herb Caudill Date: Thu, 29 Feb 2024 13:56:29 +0100 Subject: [PATCH 2/3] remove watch script from create-repo-node-app --- packages/create-repo-node-app/package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/create-repo-node-app/package.json b/packages/create-repo-node-app/package.json index 9e3075b04..17e36bcc7 100644 --- a/packages/create-repo-node-app/package.json +++ b/packages/create-repo-node-app/package.json @@ -9,10 +9,9 @@ "bin": "dist/index.js", "scripts": { "build": "tsc", - "postbuild": "node postbuild.js", - "watch": "npm-watch build" + "postbuild": "node postbuild.js" }, "publishConfig": { "access": "public" } -} +} \ No newline at end of file From 418321f7486d810ec1a491530593b439cae9c38b Mon Sep 17 00:00:00 2001 From: Herb Caudill Date: Thu, 29 Feb 2024 14:00:09 +0100 Subject: [PATCH 3/3] specify `npm-watch build` to get rid of warning --- packages/automerge-repo-network-broadcastchannel/package.json | 4 ++-- packages/automerge-repo-network-messagechannel/package.json | 4 ++-- packages/automerge-repo-network-websocket/package.json | 4 ++-- packages/automerge-repo-react-hooks/package.json | 4 ++-- packages/automerge-repo-storage-indexeddb/package.json | 4 ++-- packages/automerge-repo-storage-nodefs/package.json | 4 ++-- packages/automerge-repo-svelte-store/package.json | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/automerge-repo-network-broadcastchannel/package.json b/packages/automerge-repo-network-broadcastchannel/package.json index c7d091ec4..6c83ffd7e 100644 --- a/packages/automerge-repo-network-broadcastchannel/package.json +++ b/packages/automerge-repo-network-broadcastchannel/package.json @@ -9,7 +9,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "watch": "npm-watch", + "watch": "npm-watch build", "test": "vitest" }, "dependencies": { @@ -26,4 +26,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/automerge-repo-network-messagechannel/package.json b/packages/automerge-repo-network-messagechannel/package.json index 26159808f..112faa7ad 100644 --- a/packages/automerge-repo-network-messagechannel/package.json +++ b/packages/automerge-repo-network-messagechannel/package.json @@ -9,7 +9,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "watch": "npm-watch", + "watch": "npm-watch build", "test": "vitest" }, "dependencies": { @@ -28,4 +28,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/automerge-repo-network-websocket/package.json b/packages/automerge-repo-network-websocket/package.json index 0b07fdb9e..98d119343 100644 --- a/packages/automerge-repo-network-websocket/package.json +++ b/packages/automerge-repo-network-websocket/package.json @@ -9,7 +9,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "watch": "npm-watch", + "watch": "npm-watch build", "test": "vitest" }, "dependencies": { @@ -31,4 +31,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/automerge-repo-react-hooks/package.json b/packages/automerge-repo-react-hooks/package.json index f55341b0a..bbd098687 100644 --- a/packages/automerge-repo-react-hooks/package.json +++ b/packages/automerge-repo-react-hooks/package.json @@ -10,7 +10,7 @@ "scripts": { "build": "tsc --noEmit && vite build", "test": "vitest run", - "watch": "npm-watch", + "watch": "npm-watch build", "visualize": "VISUALIZE=true vite build" }, "dependencies": { @@ -42,4 +42,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/automerge-repo-storage-indexeddb/package.json b/packages/automerge-repo-storage-indexeddb/package.json index efc0b30c5..10083e5e3 100644 --- a/packages/automerge-repo-storage-indexeddb/package.json +++ b/packages/automerge-repo-storage-indexeddb/package.json @@ -9,7 +9,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "watch": "npm-watch" + "watch": "npm-watch build" }, "dependencies": { "@automerge/automerge-repo": "workspace:*" @@ -25,4 +25,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/automerge-repo-storage-nodefs/package.json b/packages/automerge-repo-storage-nodefs/package.json index 5b85241cf..4a83a62e5 100644 --- a/packages/automerge-repo-storage-nodefs/package.json +++ b/packages/automerge-repo-storage-nodefs/package.json @@ -9,7 +9,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "watch": "npm-watch" + "watch": "npm-watch build" }, "dependencies": { "@automerge/automerge-repo": "workspace:*", @@ -26,4 +26,4 @@ "publishConfig": { "access": "public" } -} +} \ No newline at end of file diff --git a/packages/automerge-repo-svelte-store/package.json b/packages/automerge-repo-svelte-store/package.json index 98b312f31..1d247e9e8 100644 --- a/packages/automerge-repo-svelte-store/package.json +++ b/packages/automerge-repo-svelte-store/package.json @@ -8,7 +8,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", - "watch": "npm-watch" + "watch": "npm-watch build" }, "peerDependencies": { "@automerge/automerge": "^2.1.9", @@ -31,4 +31,4 @@ "devDependencies": { "svelte": "^3.0.0" } -} +} \ No newline at end of file