From f163f8a097c6da72e52b26e0bd4c28a0b84fa9eb Mon Sep 17 00:00:00 2001 From: Petra Jaros Date: Thu, 29 Aug 2024 11:52:23 -0400 Subject: [PATCH] Add `pnpm dev` to watch-build all packages --- package.json | 1 + packages/access-client/package.json | 1 + packages/blob-index/package.json | 1 + packages/capabilities/package.json | 1 + packages/did-mailto/package.json | 1 + packages/filecoin-api/package.json | 1 + packages/filecoin-client/package.json | 1 + packages/upload-api/package.json | 1 + packages/upload-client/package.json | 1 + packages/w3up-client/package.json | 1 + 10 files changed, 10 insertions(+) diff --git a/package.json b/package.json index b8f4ee927..40043f0df 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "test": "pnpm -r --if-present run test", "check": "pnpm -r --if-present run check", "build": "pnpm -r --if-present run build", + "dev": "pnpm -r --if-present --parallel run dev --preserveWatchOutput", "docs": "pnpm run build && typedoc --plugin typedoc-plugin-missing-exports --out docs", "docs:markdown": "pnpm run build && docusaurus generate-typedoc" }, diff --git a/packages/access-client/package.json b/packages/access-client/package.json index 51050298b..f2ebbdb08 100644 --- a/packages/access-client/package.json +++ b/packages/access-client/package.json @@ -17,6 +17,7 @@ "attw": "attw --pack .", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "test": "pnpm -r run build && pnpm run test:node && pnpm run test:browser", "test:node": "mocha 'test/**/!(*.browser).test.js' -n experimental-vm-modules -n no-warnings", diff --git a/packages/blob-index/package.json b/packages/blob-index/package.json index 61f79cf38..a5894ee84 100644 --- a/packages/blob-index/package.json +++ b/packages/blob-index/package.json @@ -33,6 +33,7 @@ "scripts": { "attw": "attw --pack .", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "test": "entail test/*.spec.js", diff --git a/packages/capabilities/package.json b/packages/capabilities/package.json index 087756b62..e8a7ab651 100644 --- a/packages/capabilities/package.json +++ b/packages/capabilities/package.json @@ -16,6 +16,7 @@ "attw": "attw --pack .", "lint": "tsc && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "test": "pnpm run test:node && pnpm run test:browser", "test:node": "mocha 'test/**/*.test.js' -n experimental-vm-modules -n no-warnings", diff --git a/packages/did-mailto/package.json b/packages/did-mailto/package.json index bb95bbfa5..6d64b5554 100644 --- a/packages/did-mailto/package.json +++ b/packages/did-mailto/package.json @@ -31,6 +31,7 @@ "scripts": { "attw": "attw --pack .", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "test": "mocha --bail --timeout 10s -n no-warnings -n experimental-vm-modules -n experimental-fetch test/**/*.spec.js", diff --git a/packages/filecoin-api/package.json b/packages/filecoin-api/package.json index 030a7701d..38d4c3f21 100644 --- a/packages/filecoin-api/package.json +++ b/packages/filecoin-api/package.json @@ -146,6 +146,7 @@ "scripts": { "attw": "attw --pack .", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "lint": "tsc --build && eslint '**/*.{js,ts}'", "test": "mocha --bail --timeout 10s -n no-warnings -n experimental-vm-modules -n experimental-fetch test/**/*.spec.js", diff --git a/packages/filecoin-client/package.json b/packages/filecoin-client/package.json index 337cc4834..a141926a9 100644 --- a/packages/filecoin-client/package.json +++ b/packages/filecoin-client/package.json @@ -17,6 +17,7 @@ "attw": "attw --pack .", "lint": "eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "tsc --build", + "dev": "tsc --build --watch", "test": "npm run test:all", "test:all": "run-s test:browser test:node", "test:node": "hundreds -r html -r text mocha 'test/**/!(*.browser).test.js' -n experimental-vm-modules -n no-warnings", diff --git a/packages/upload-api/package.json b/packages/upload-api/package.json index f869a4913..284be2142 100644 --- a/packages/upload-api/package.json +++ b/packages/upload-api/package.json @@ -186,6 +186,7 @@ "scripts": { "attw": "attw --pack .", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "lint": "tsc --build && eslint '**/*.{js,ts}'", "test": "mocha --bail --timeout 10s -n no-warnings -n experimental-vm-modules -n experimental-fetch 'test/**/*.spec.js'", diff --git a/packages/upload-client/package.json b/packages/upload-client/package.json index 2cb7df7b0..6e36a5c6f 100644 --- a/packages/upload-client/package.json +++ b/packages/upload-client/package.json @@ -17,6 +17,7 @@ "attw": "attw --pack .", "lint": "eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "test": "npm-run-all -p -r mock test:all", "test:all": "run-s test:node test:browser", diff --git a/packages/w3up-client/package.json b/packages/w3up-client/package.json index 68372d7f5..6a8547d2d 100644 --- a/packages/w3up-client/package.json +++ b/packages/w3up-client/package.json @@ -124,6 +124,7 @@ "attw": "attw --pack .", "lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", "build": "tsc --build", + "dev": "tsc --build --watch", "check": "tsc --build", "prepare": "npm run build", "test": "npm-run-all -p -r mock:* test:all",