diff --git a/package-lock.json b/package-lock.json index 64cd88f9..529410f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "@tauri-apps/cli": "2.4.1", "@typescript-eslint/eslint-plugin": "^8.27.0", "@typescript-eslint/parser": "^8.27.0", - "@yaakapp/cli": "^0.1.5", + "@yaakapp/cli": "^0.2.7", "eslint": "^9.29.0", "eslint-config-prettier": "^10.1.5", "eslint-plugin-import": "^2.32.0", @@ -4030,26 +4030,26 @@ "link": true }, "node_modules/@yaakapp/cli": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@yaakapp/cli/-/cli-0.1.5.tgz", - "integrity": "sha512-nx9Z8FhVr8afNkeYSDKZJg0PaYlqKQK2f8zj6MykJeeafHdauJ6EuXWXCmAK6uYLjrIaZI0S63tbgFRBq4kqog==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@yaakapp/cli/-/cli-0.2.7.tgz", + "integrity": "sha512-YKtbBENDH+qv+2L0jJSu1a8KOCU8wpr9FpFv+mIxUOMOl709aADToASvKFTNwdG2nAPCzdF0OsFHtV6o20gurw==", "dev": true, "hasInstallScript": true, "bin": { "yaakcli": "bin/cli.js" }, "optionalDependencies": { - "@yaakapp/cli-darwin-arm64": "0.1.5", - "@yaakapp/cli-darwin-x64": "0.1.5", - "@yaakapp/cli-linux-arm64": "0.1.5", - "@yaakapp/cli-linux-x64": "0.1.5", - "@yaakapp/cli-win32-x64": "0.1.5" + "@yaakapp/cli-darwin-arm64": "0.2.7", + "@yaakapp/cli-darwin-x64": "0.2.7", + "@yaakapp/cli-linux-arm64": "0.2.7", + "@yaakapp/cli-linux-x64": "0.2.7", + "@yaakapp/cli-win32-x64": "0.2.7" } }, "node_modules/@yaakapp/cli-darwin-arm64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@yaakapp/cli-darwin-arm64/-/cli-darwin-arm64-0.1.5.tgz", - "integrity": "sha512-P66dwLDx8YWw/A9f7NlnsvnAYBwB8uAYu5gu6/dLZLmYAJ/vZ7kPiHuq1d23g4vKcsXPnjx3Djh3E44ACysMWA==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@yaakapp/cli-darwin-arm64/-/cli-darwin-arm64-0.2.7.tgz", + "integrity": "sha512-4mHr252cvoZoiR15n9QA2XMF03qoTS5vj4oK57ttc8Q9Vdn7ecvpKEVhqLh2VJRqcgLIbpF0H4LGZdiP66ExFQ==", "dev": true, "optional": true, "os": [ @@ -4057,9 +4057,9 @@ ] }, "node_modules/@yaakapp/cli-darwin-x64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@yaakapp/cli-darwin-x64/-/cli-darwin-x64-0.1.5.tgz", - "integrity": "sha512-PrwGW9MVJkx1zO3pCdoQFoP2dyzoczHc/ZddFZ6tLEzJu3eg/rrsDkTZfLL/7h5egjGWZKmeG3osS9uFhBU68A==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@yaakapp/cli-darwin-x64/-/cli-darwin-x64-0.2.7.tgz", + "integrity": "sha512-uLaElBT0auiFX2g9mr29Vvhn3tzO47g2DFtfRyan121E7SqeygvteRNQaE8y5teUhzj+5Ocflvf0yXNa4ahg4Q==", "dev": true, "optional": true, "os": [ @@ -4067,9 +4067,9 @@ ] }, "node_modules/@yaakapp/cli-linux-arm64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@yaakapp/cli-linux-arm64/-/cli-linux-arm64-0.1.5.tgz", - "integrity": "sha512-Pz63GBO1ikVvTKCP5qSZYLZRcepFAd05+UDFnehWsb4c1OKDsFqOMauPzpMPsCkdqsegSUku0Jly2lDfqmW/ig==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@yaakapp/cli-linux-arm64/-/cli-linux-arm64-0.2.7.tgz", + "integrity": "sha512-7ycIAnSezVabXAOcduyXDhuh7qHqDUP0dK6V9x88rElj0pwiP6NU4s15K/qbmscRnd2fjSZRXwetgounC8DEgQ==", "cpu": [ "arm64" ], @@ -4080,9 +4080,9 @@ ] }, "node_modules/@yaakapp/cli-linux-x64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@yaakapp/cli-linux-x64/-/cli-linux-x64-0.1.5.tgz", - "integrity": "sha512-YuVDWjVkPtm7JzsN8VQ9ZTKcEnS7FnJ00wdaWh7IbgoBong/l2eb9Bhfv7A9Fm33VuHnS9QhlBvDGUazmnV3Mg==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@yaakapp/cli-linux-x64/-/cli-linux-x64-0.2.7.tgz", + "integrity": "sha512-h81IaJJYAsZx06tRuztm6GeC+4JtsLY+0s4TW5NgMnW2/qyRwxKbVTb+V7KxngSoYpTIsD48A2rdRN8odwEg1g==", "cpu": [ "x64" ], @@ -4093,9 +4093,9 @@ ] }, "node_modules/@yaakapp/cli-win32-x64": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@yaakapp/cli-win32-x64/-/cli-win32-x64-0.1.5.tgz", - "integrity": "sha512-w8Oo8/tI/T8cat+tZSqk4OoQZuf1epoC5LR7iuIOOPYGrdxEO2kMDe2LZiG3vnE96Zbprvk3zbdBSrVU9y3wSA==", + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/@yaakapp/cli-win32-x64/-/cli-win32-x64-0.2.7.tgz", + "integrity": "sha512-66T/LXUnnmZ9FvQwRSzz/kvqc8GYvU1YXYEda21ZUiVQ5+2skMYsvpi8vtH8G0yCjZJLVtYqrc/rhaJ60CHH8w==", "dev": true, "optional": true, "os": [ diff --git a/package.json b/package.json index cd5b6a45..4d5bf6d4 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "@tauri-apps/cli": "2.4.1", "@typescript-eslint/eslint-plugin": "^8.27.0", "@typescript-eslint/parser": "^8.27.0", - "@yaakapp/cli": "^0.1.5", + "@yaakapp/cli": "^0.2.7", "eslint": "^9.29.0", "eslint-config-prettier": "^10.1.5", "eslint-plugin-import": "^2.32.0", diff --git a/plugins/action-copy-curl/package.json b/plugins/action-copy-curl/package.json index 8acbf6e6..056f86b6 100644 --- a/plugins/action-copy-curl/package.json +++ b/plugins/action-copy-curl/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/action-copy-curl", + "displayName": "Copy as Curl", + "description": "Copy request as a curl command", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/action-copy-grpcurl/package.json b/plugins/action-copy-grpcurl/package.json index b7243d85..ee4a0747 100644 --- a/plugins/action-copy-grpcurl/package.json +++ b/plugins/action-copy-grpcurl/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/action-copy-grpcurl", + "displayName": "Copy as gRPCurl", + "description": "Copy gRPC request as a grpcurl command", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/auth-basic/package.json b/plugins/auth-basic/package.json index 4ef73b36..a7e8fbc7 100644 --- a/plugins/auth-basic/package.json +++ b/plugins/auth-basic/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/auth-basic", + "displayName": "Basic Authentication", + "description": "Authenticate requests using Basic Auth", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/auth-bearer/package.json b/plugins/auth-bearer/package.json index cf45aa96..1048c38d 100644 --- a/plugins/auth-bearer/package.json +++ b/plugins/auth-bearer/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/auth-bearer", + "displayName": "Bearer Authentication", + "description": "Authenticate requests using bearer authentication", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/auth-jwt/package.json b/plugins/auth-jwt/package.json index f498756d..5f33acf3 100644 --- a/plugins/auth-jwt/package.json +++ b/plugins/auth-jwt/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/auth-jwt", + "displayName": "JWT Authentication", + "description": "Authenticate requests using JSON web tokens (JWT)", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/auth-oauth2/package.json b/plugins/auth-oauth2/package.json index 39ed7b12..fa0871c1 100644 --- a/plugins/auth-oauth2/package.json +++ b/plugins/auth-oauth2/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/auth-oauth2", + "displayName": "OAuth 2.0 Authentication", + "description": "Authenticate requests using OAuth 2.0", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/filter-jsonpath/package.json b/plugins/filter-jsonpath/package.json index 8020d3bd..e6b168e2 100644 --- a/plugins/filter-jsonpath/package.json +++ b/plugins/filter-jsonpath/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/filter-jsonpath", + "displayName": "JSONPath Filter", + "description": "Filter JSON response data using JSONPath expressions", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/filter-xpath/package.json b/plugins/filter-xpath/package.json index 125a5f0d..fc489b47 100644 --- a/plugins/filter-xpath/package.json +++ b/plugins/filter-xpath/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/filter-xpath", + "displayName": "XPath Filter", + "description": "Filter response XML data using XPath expressions", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/importer-curl/package.json b/plugins/importer-curl/package.json index 61af4af8..3f0fc162 100644 --- a/plugins/importer-curl/package.json +++ b/plugins/importer-curl/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/importer-curl", + "displayName": "cURL Importer", + "description": "Import requests from cURL commands", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/importer-insomnia/package.json b/plugins/importer-insomnia/package.json index 13ad05fd..91113d5c 100644 --- a/plugins/importer-insomnia/package.json +++ b/plugins/importer-insomnia/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/importer-insomnia", + "displayName": "Insomnia Importer", + "description": "Import data from Insomnia", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/importer-openapi/package.json b/plugins/importer-openapi/package.json index 6d07da84..890ea93a 100644 --- a/plugins/importer-openapi/package.json +++ b/plugins/importer-openapi/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/importer-openapi", + "displayName": "OpenAPI Importer", + "description": "Import API specifications from OpenAPI/Swagger format", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/importer-postman/package.json b/plugins/importer-postman/package.json index 7dcf5f8e..7b88053b 100644 --- a/plugins/importer-postman/package.json +++ b/plugins/importer-postman/package.json @@ -1,11 +1,13 @@ { "name": "@yaak/importer-postman", + "displayName": "Postman Importer", + "description": "Import collections from Postman", "private": true, - "version": "0.0.1", + "version": "0.1.0", "main": "./build/index.js", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/importer-yaak/package.json b/plugins/importer-yaak/package.json index 60d2cbbe..1fc143ce 100644 --- a/plugins/importer-yaak/package.json +++ b/plugins/importer-yaak/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/importer-yaak", + "displayName": "Yaak Importer", + "description": "Import data from Yaak export files", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { - "build": "yaakcli build ./src/index.js", - "dev": "yaakcli dev ./src/index.js", + "build": "yaakcli build", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-cookie/package.json b/plugins/template-function-cookie/package.json index 2d9e9d43..40bb6ae3 100644 --- a/plugins/template-function-cookie/package.json +++ b/plugins/template-function-cookie/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-cookie", + "displayName": "Cookie Template Functions", + "description": "Template functions for working with cookies", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-encode/package.json b/plugins/template-function-encode/package.json index 1ea45d85..475fec72 100644 --- a/plugins/template-function-encode/package.json +++ b/plugins/template-function-encode/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-encode", + "displayName": "Encoding Template Functions", + "description": "Template functions for encoding and decoding data", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-fs/package.json b/plugins/template-function-fs/package.json index fe567f6c..65cffefd 100644 --- a/plugins/template-function-fs/package.json +++ b/plugins/template-function-fs/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-fs", + "displayName": "File System Template Functions", + "description": "Template functions for working with the file system", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-hash/package.json b/plugins/template-function-hash/package.json index ef01bafd..3bcb2f79 100755 --- a/plugins/template-function-hash/package.json +++ b/plugins/template-function-hash/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-hash", + "displayName": "Hash Template Functions", + "description": "Template functions for generating hash values", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-json/package.json b/plugins/template-function-json/package.json index 0f1ef553..1742a69e 100755 --- a/plugins/template-function-json/package.json +++ b/plugins/template-function-json/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-json", + "displayName": "JSON Template Functions", + "description": "Template functions for working with JSON data", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/template-function-prompt/package.json b/plugins/template-function-prompt/package.json index 1b3956ad..8abde79d 100644 --- a/plugins/template-function-prompt/package.json +++ b/plugins/template-function-prompt/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-prompt", + "displayName": "Prompt Template Functions", + "description": "Template functions for prompting for user input", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-regex/package.json b/plugins/template-function-regex/package.json index 403310f2..54ede201 100644 --- a/plugins/template-function-regex/package.json +++ b/plugins/template-function-regex/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-regex", + "displayName": "Regex Template Functions", + "description": "Template functions for working with regular expressions", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-request/package.json b/plugins/template-function-request/package.json index 5ea92e24..57bd6d0c 100755 --- a/plugins/template-function-request/package.json +++ b/plugins/template-function-request/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-request", + "displayName": "Request Template Functions", + "description": "Template functions for extracting value from requests", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/plugins/template-function-response/package.json b/plugins/template-function-response/package.json index b0453d0e..fe6a9490 100644 --- a/plugins/template-function-response/package.json +++ b/plugins/template-function-response/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-response", + "displayName": "Response Template Functions", + "description": "Template functions for request chaining", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/template-function-uuid/package.json b/plugins/template-function-uuid/package.json index 853e29b8..a2f8b524 100644 --- a/plugins/template-function-uuid/package.json +++ b/plugins/template-function-uuid/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-uuid", + "displayName": "UUID Template Functions", + "description": "Template functions for generating UUIDs", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/template-function-xml/package.json b/plugins/template-function-xml/package.json index f10e1794..1041e7eb 100755 --- a/plugins/template-function-xml/package.json +++ b/plugins/template-function-xml/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/template-function-xml", + "displayName": "XML Template Functions", + "description": "Template functions for working with XML data", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" }, "dependencies": { diff --git a/plugins/themes-yaak/package.json b/plugins/themes-yaak/package.json index 43ce69d3..dff578b1 100644 --- a/plugins/themes-yaak/package.json +++ b/plugins/themes-yaak/package.json @@ -1,10 +1,12 @@ { "name": "@yaak/themes-yaak", + "displayName": "Yaak Themes", + "description": "Default themes for Yaak", "private": true, - "version": "0.0.1", + "version": "0.1.0", "scripts": { "build": "yaakcli build ./src/index.ts", - "dev": "yaakcli dev ./src/index.js", + "dev": "yaakcli dev", "lint": "tsc --noEmit" } } diff --git a/scripts/publish-core-plugins.cjs b/scripts/publish-core-plugins.cjs new file mode 100644 index 00000000..d9a2b5d9 --- /dev/null +++ b/scripts/publish-core-plugins.cjs @@ -0,0 +1,15 @@ +const { readdirSync } = require('node:fs'); +const path = require('node:path'); +const { execSync } = require('node:child_process'); + +const pluginsDir = path.join(__dirname, '..', 'plugins'); + +console.log('Publishing core Yaak plugins'); + +for (const name of readdirSync(pluginsDir)) { + const dir = path.join(pluginsDir, name); + if (name.startsWith('.')) continue; + console.log('Building plugin', dir); + execSync('npm run build', { stdio: 'inherit', cwd: dir }); + execSync('yaakcli publish', { stdio: 'inherit', cwd: dir, env: { ...process.env, ENVIRONMENT: 'development' } }); +} diff --git a/scripts/vendor-node.cjs b/scripts/vendor-node.cjs index 8b0979be..73d52af2 100644 --- a/scripts/vendor-node.cjs +++ b/scripts/vendor-node.cjs @@ -80,7 +80,7 @@ rmSync(tmpDir, { recursive: true, force: true }); function tryExecSync(cmd) { try { - return execSync(cmd).toString('utf-8'); + return execSync(cmd, { stdio: 'inherit' }).toString('utf-8'); } catch (_) { return ''; } diff --git a/scripts/vendor-protoc.cjs b/scripts/vendor-protoc.cjs index 6494a849..bb8af68e 100644 --- a/scripts/vendor-protoc.cjs +++ b/scripts/vendor-protoc.cjs @@ -81,7 +81,7 @@ mkdirSync(dstDir, { recursive: true }); function tryExecSync(cmd) { try { - return execSync(cmd).toString('utf-8'); + return execSync(cmd, { stdio: 'inherit' }).toString('utf-8'); } catch (_) { return ''; }