From 523e7dcf16ee81c53a2e0d627c737d8bc1ae364b Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Mon, 22 Sep 2025 08:57:05 -0700 Subject: [PATCH] Add bootstrap to release script (to fix lint) --- .github/workflows/release.yml | 3 +++ plugins/action-copy-curl/package.json | 2 +- plugins/action-copy-grpcurl/package.json | 2 +- plugins/auth-apikey/package.json | 2 +- plugins/auth-basic/package.json | 2 +- plugins/auth-bearer/package.json | 2 +- plugins/auth-jwt/package.json | 2 +- plugins/auth-oauth2/package.json | 2 +- plugins/filter-jsonpath/package.json | 2 +- plugins/filter-xpath/package.json | 2 +- plugins/importer-curl/package.json | 2 +- plugins/importer-insomnia/package.json | 2 +- plugins/importer-openapi/package.json | 2 +- plugins/importer-postman/package.json | 2 +- plugins/importer-yaak/package.json | 2 +- plugins/template-function-cookie/package.json | 2 +- plugins/template-function-encode/package.json | 2 +- plugins/template-function-fs/package.json | 2 +- plugins/template-function-hash/package.json | 2 +- plugins/template-function-json/package.json | 2 +- plugins/template-function-prompt/package.json | 2 +- plugins/template-function-regex/package.json | 2 +- plugins/template-function-request/package.json | 2 +- plugins/template-function-response/package.json | 2 +- plugins/template-function-timestamp/package.json | 2 +- plugins/template-function-uuid/package.json | 2 +- plugins/template-function-xml/package.json | 2 +- plugins/themes-yaak/package.json | 2 +- src-web/components/core/Input.tsx | 2 +- src-web/lib/initGlobalListeners.tsx | 3 +-- 30 files changed, 32 insertions(+), 30 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43f8a5fa..cc5900bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,6 +72,9 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Run bootstrap + run: npm run bootstrap + - name: Run lint run: npm run lint diff --git a/plugins/action-copy-curl/package.json b/plugins/action-copy-curl/package.json index a93cf38a..67ef7075 100644 --- a/plugins/action-copy-curl/package.json +++ b/plugins/action-copy-curl/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint": "eslint . --ext .ts,.tsx" + "lint": "tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/action-copy-grpcurl/package.json b/plugins/action-copy-grpcurl/package.json index 6e8614fa..e8a3bedc 100644 --- a/plugins/action-copy-grpcurl/package.json +++ b/plugins/action-copy-grpcurl/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/auth-apikey/package.json b/plugins/auth-apikey/package.json index e5fb90be..0b6047d0 100644 --- a/plugins/auth-apikey/package.json +++ b/plugins/auth-apikey/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/auth-basic/package.json b/plugins/auth-basic/package.json index f5547af3..155bdb10 100644 --- a/plugins/auth-basic/package.json +++ b/plugins/auth-basic/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/auth-bearer/package.json b/plugins/auth-bearer/package.json index 2addca1e..e10f87ee 100644 --- a/plugins/auth-bearer/package.json +++ b/plugins/auth-bearer/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/auth-jwt/package.json b/plugins/auth-jwt/package.json index f3394943..703132b8 100644 --- a/plugins/auth-jwt/package.json +++ b/plugins/auth-jwt/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "jsonwebtoken": "^9.0.2" diff --git a/plugins/auth-oauth2/package.json b/plugins/auth-oauth2/package.json index 244c1ac3..43641dd6 100644 --- a/plugins/auth-oauth2/package.json +++ b/plugins/auth-oauth2/package.json @@ -12,6 +12,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/filter-jsonpath/package.json b/plugins/filter-jsonpath/package.json index d690dc9b..ad8b5217 100644 --- a/plugins/filter-jsonpath/package.json +++ b/plugins/filter-jsonpath/package.json @@ -12,7 +12,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "jsonpath-plus": "^10.3.0" diff --git a/plugins/filter-xpath/package.json b/plugins/filter-xpath/package.json index e2d1fa12..f559eec2 100644 --- a/plugins/filter-xpath/package.json +++ b/plugins/filter-xpath/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "@xmldom/xmldom": "^0.9.8", diff --git a/plugins/importer-curl/package.json b/plugins/importer-curl/package.json index 36b7f06e..027fd34d 100644 --- a/plugins/importer-curl/package.json +++ b/plugins/importer-curl/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "shell-quote": "^1.8.1" diff --git a/plugins/importer-insomnia/package.json b/plugins/importer-insomnia/package.json index df14bef6..8315a1a9 100644 --- a/plugins/importer-insomnia/package.json +++ b/plugins/importer-insomnia/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "yaml": "^2.4.2" diff --git a/plugins/importer-openapi/package.json b/plugins/importer-openapi/package.json index c41c3841..21a08e2f 100644 --- a/plugins/importer-openapi/package.json +++ b/plugins/importer-openapi/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "openapi-to-postmanv2": "^5.0.0", diff --git a/plugins/importer-postman/package.json b/plugins/importer-postman/package.json index 5d18cab2..ca8a2bcb 100644 --- a/plugins/importer-postman/package.json +++ b/plugins/importer-postman/package.json @@ -8,6 +8,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/importer-yaak/package.json b/plugins/importer-yaak/package.json index 0bb9425a..45c1d0a4 100644 --- a/plugins/importer-yaak/package.json +++ b/plugins/importer-yaak/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-cookie/package.json b/plugins/template-function-cookie/package.json index 1f680e10..3b176368 100644 --- a/plugins/template-function-cookie/package.json +++ b/plugins/template-function-cookie/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-encode/package.json b/plugins/template-function-encode/package.json index 04b9323b..f60e1d9c 100644 --- a/plugins/template-function-encode/package.json +++ b/plugins/template-function-encode/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-fs/package.json b/plugins/template-function-fs/package.json index 9e9e5feb..82a89ab8 100644 --- a/plugins/template-function-fs/package.json +++ b/plugins/template-function-fs/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-hash/package.json b/plugins/template-function-hash/package.json index 38ecb385..6a93f0c7 100755 --- a/plugins/template-function-hash/package.json +++ b/plugins/template-function-hash/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-json/package.json b/plugins/template-function-json/package.json index 4cbe45da..e417cb4f 100755 --- a/plugins/template-function-json/package.json +++ b/plugins/template-function-json/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "jsonpath-plus": "^10.3.0" diff --git a/plugins/template-function-prompt/package.json b/plugins/template-function-prompt/package.json index 453ce80d..ce04a42d 100644 --- a/plugins/template-function-prompt/package.json +++ b/plugins/template-function-prompt/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-regex/package.json b/plugins/template-function-regex/package.json index f65d91a5..bd8797f8 100644 --- a/plugins/template-function-regex/package.json +++ b/plugins/template-function-regex/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-request/package.json b/plugins/template-function-request/package.json index e2762ebe..e11e9c13 100755 --- a/plugins/template-function-request/package.json +++ b/plugins/template-function-request/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/plugins/template-function-response/package.json b/plugins/template-function-response/package.json index 5457f2d7..46c0f3de 100644 --- a/plugins/template-function-response/package.json +++ b/plugins/template-function-response/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "jsonpath-plus": "^10.3.0", diff --git a/plugins/template-function-timestamp/package.json b/plugins/template-function-timestamp/package.json index 6918305d..d79ff99f 100755 --- a/plugins/template-function-timestamp/package.json +++ b/plugins/template-function-timestamp/package.json @@ -5,7 +5,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "date-fns": "^4.1.0" diff --git a/plugins/template-function-uuid/package.json b/plugins/template-function-uuid/package.json index 131ad854..5a490255 100644 --- a/plugins/template-function-uuid/package.json +++ b/plugins/template-function-uuid/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "uuid": "^11.1.0" diff --git a/plugins/template-function-xml/package.json b/plugins/template-function-xml/package.json index 2bc39cc0..f2b9b238 100755 --- a/plugins/template-function-xml/package.json +++ b/plugins/template-function-xml/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" }, "dependencies": { "@xmldom/xmldom": "^0.9.8", diff --git a/plugins/themes-yaak/package.json b/plugins/themes-yaak/package.json index e3a90a24..9eece24d 100644 --- a/plugins/themes-yaak/package.json +++ b/plugins/themes-yaak/package.json @@ -7,6 +7,6 @@ "scripts": { "build": "yaakcli build", "dev": "yaakcli dev", - "lint":"eslint . --ext .ts,.tsx" + "lint":"tsc --noEmit && eslint . --ext .ts,.tsx" } } diff --git a/src-web/components/core/Input.tsx b/src-web/components/core/Input.tsx index e24018b6..c32cfd8b 100644 --- a/src-web/components/core/Input.tsx +++ b/src-web/components/core/Input.tsx @@ -1,5 +1,5 @@ import type { EditorView } from '@codemirror/view'; -import type { Color } from '@yaakapp/api'; +import type { Color } from '@yaakapp-internal/plugins'; import classNames from 'classnames'; import type { ReactNode } from 'react'; import { diff --git a/src-web/lib/initGlobalListeners.tsx b/src-web/lib/initGlobalListeners.tsx index f75ff578..0f1f3fbd 100644 --- a/src-web/lib/initGlobalListeners.tsx +++ b/src-web/lib/initGlobalListeners.tsx @@ -1,7 +1,6 @@ import { emit } from '@tauri-apps/api/event'; import { openUrl } from '@tauri-apps/plugin-opener'; -import type { InternalEvent } from '@yaakapp-internal/plugins'; -import type { ShowToastRequest } from '@yaakapp/api'; +import type { InternalEvent, ShowToastRequest } from '@yaakapp-internal/plugins'; import { openSettings } from '../commands/openSettings'; import { Button } from '../components/core/Button';