From 061ab927fcfd430c5160de1aba87d64045f2223d Mon Sep 17 00:00:00 2001 From: Corie Watson Date: Thu, 10 Oct 2024 14:28:36 +0100 Subject: [PATCH] fix: added rimraf for building on Windows (#1036) --- genkit-tools/common/package.json | 5 +- genkit-tools/plugins/firebase/package.json | 5 +- genkit-tools/plugins/google/package.json | 5 +- genkit-tools/pnpm-lock.yaml | 76 +++++++ js/ai/package.json | 5 +- js/core/package.json | 5 +- js/flow/package.json | 5 +- js/plugins/chroma/package.json | 5 +- js/plugins/dev-local-vectorstore/package.json | 5 +- js/plugins/dotprompt/package.json | 5 +- js/plugins/evaluators/package.json | 5 +- js/plugins/firebase/package.json | 5 +- js/plugins/google-cloud/package.json | 5 +- js/plugins/googleai/package.json | 5 +- js/plugins/langchain/package.json | 5 +- js/plugins/ollama/package.json | 5 +- js/plugins/pinecone/package.json | 5 +- js/plugins/vertexai/package.json | 5 +- js/pnpm-lock.yaml | 156 ++++++++++++++ js/testapps/byo-evaluator/package.json | 5 +- js/testapps/cat-eval/package.json | 5 +- js/testapps/dev-ui-gallery/package.json | 5 +- js/testapps/docs-menu-basic/package.json | 5 +- js/testapps/docs-menu-rag/package.json | 5 +- js/testapps/eval/package.json | 5 +- js/testapps/evaluator-gut-check/package.json | 5 +- js/testapps/express/package.json | 5 +- js/testapps/flow-sample1/package.json | 5 +- js/testapps/flow-simple-ai/package.json | 5 +- js/testapps/langchain/package.json | 5 +- .../llm-human-in-the-loop/package.json | 5 +- js/testapps/menu/package.json | 5 +- .../package.json | 5 +- .../package.json | 5 +- .../package.json | 5 +- package.json | 5 +- pnpm-lock.yaml | 203 ++++++++++++++++++ samples/js-coffee-shop/package.json | 5 +- samples/js-menu/package.json | 5 +- tests/test_js_app/package.json | 5 +- 40 files changed, 546 insertions(+), 74 deletions(-) diff --git a/genkit-tools/common/package.json b/genkit-tools/common/package.json index 1c008ae38..ba5ff1c94 100644 --- a/genkit-tools/common/package.json +++ b/genkit-tools/common/package.json @@ -3,7 +3,7 @@ "version": "0.5.16", "scripts": { "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean compile", "test": "jest --verbose", "build:watch": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json --watch" @@ -50,7 +50,8 @@ "genversion": "^3.2.0", "npm-run-all": "^4.1.5", "ts-node": "^10.9.2", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" }, "repository": { "type": "git", diff --git a/genkit-tools/plugins/firebase/package.json b/genkit-tools/plugins/firebase/package.json index bb072e05f..d779964bf 100644 --- a/genkit-tools/plugins/firebase/package.json +++ b/genkit-tools/plugins/firebase/package.json @@ -3,7 +3,7 @@ "version": "0.5.10", "scripts": { "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean compile", "build:watch": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json --watch" }, @@ -11,7 +11,8 @@ "@genkit-ai/tools-common": "workspace:*", "@types/node": "^20.11.19", "npm-run-all": "^4.1.5", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "lib/types/index.d.ts", "exports": { diff --git a/genkit-tools/plugins/google/package.json b/genkit-tools/plugins/google/package.json index d9ae1825e..7876d43a4 100644 --- a/genkit-tools/plugins/google/package.json +++ b/genkit-tools/plugins/google/package.json @@ -3,7 +3,7 @@ "version": "0.5.10", "scripts": { "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean compile", "build:watch": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json --watch" }, @@ -11,7 +11,8 @@ "@genkit-ai/tools-common": "workspace:*", "@types/node": "^20.11.19", "npm-run-all": "^4.1.5", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "lib/types/index.d.ts", "exports": { diff --git a/genkit-tools/pnpm-lock.yaml b/genkit-tools/pnpm-lock.yaml index 518fce439..df0e35f7b 100644 --- a/genkit-tools/pnpm-lock.yaml +++ b/genkit-tools/pnpm-lock.yaml @@ -184,6 +184,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 ts-jest: specifier: ^29.1.2 version: 29.1.2(@babel/core@7.24.5)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.5))(jest@29.7.0(@types/node@20.12.7)(ts-node@10.9.2(@types/node@20.12.7)(typescript@5.4.5)))(typescript@5.4.5) @@ -209,6 +212,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^4.9.0 version: 4.9.5 @@ -228,6 +234,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^4.9.0 version: 4.9.5 @@ -1447,8 +1456,14 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} + deprecated: Glob versions prior to v9 are no longer supported globals@11.12.0: resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} @@ -1686,6 +1701,10 @@ packages: resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} + jackspeak@4.0.2: + resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + engines: {node: 20 || >=22} + jake@10.8.7: resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==} engines: {node: '>=10'} @@ -1894,6 +1913,10 @@ packages: resolution: {integrity: sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==} engines: {node: 14 || >=16.14} + lru-cache@11.0.1: + resolution: {integrity: sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==} + engines: {node: 20 || >=22} + lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} @@ -1953,6 +1976,10 @@ packages: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -1968,6 +1995,10 @@ packages: resolution: {integrity: sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} @@ -2072,6 +2103,9 @@ packages: resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} engines: {node: '>=6'} + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + parents@1.0.1: resolution: {integrity: sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==} @@ -2114,6 +2148,10 @@ packages: resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} engines: {node: '>=16 || 14 >=14.17'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-to-regexp@0.1.10: resolution: {integrity: sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==} @@ -2243,6 +2281,11 @@ packages: resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} engines: {node: '>=8'} + rimraf@6.0.1: + resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} + engines: {node: 20 || >=22} + hasBin: true + run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -4157,6 +4200,15 @@ snapshots: minipass: 7.1.0 path-scurry: 1.10.2 + glob@11.0.0: + dependencies: + foreground-child: 3.1.1 + jackspeak: 4.0.2 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 2.0.0 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -4402,6 +4454,10 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.2: + dependencies: + '@isaacs/cliui': 8.0.2 + jake@10.8.7: dependencies: async: 3.2.5 @@ -4783,6 +4839,8 @@ snapshots: lru-cache@10.2.2: {} + lru-cache@11.0.1: {} + lru-cache@5.1.1: dependencies: yallist: 3.1.1 @@ -4828,6 +4886,10 @@ snapshots: mimic-fn@2.1.0: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -4842,6 +4904,8 @@ snapshots: minipass@7.1.0: {} + minipass@7.1.2: {} + ms@2.0.0: {} ms@2.1.2: {} @@ -4952,6 +5016,8 @@ snapshots: p-try@2.2.0: {} + package-json-from-dist@1.0.1: {} + parents@1.0.1: dependencies: path-platform: 0.11.15 @@ -4987,6 +5053,11 @@ snapshots: lru-cache: 10.2.2 minipass: 7.1.0 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.1 + minipass: 7.1.2 + path-to-regexp@0.1.10: {} path-type@3.0.0: @@ -5109,6 +5180,11 @@ snapshots: onetime: 5.1.2 signal-exit: 3.0.7 + rimraf@6.0.1: + dependencies: + glob: 11.0.0 + package-json-from-dist: 1.0.1 + run-async@2.4.1: {} rxjs@7.8.1: diff --git a/js/ai/package.json b/js/ai/package.json index f4f61284c..929dd4d3f 100644 --- a/js/ai/package.json +++ b/js/ai/package.json @@ -12,7 +12,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "node --import tsx --test ./tests/**/*_test.ts", @@ -39,7 +39,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.1", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "lib/index.d.ts", "exports": { diff --git a/js/core/package.json b/js/core/package.json index f5111db30..d7d8b51b0 100644 --- a/js/core/package.json +++ b/js/core/package.json @@ -12,7 +12,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all genversion build:clean check compile", "build:watch": "tsup-node --watch", "test": "node --import tsx --test tests/*_test.ts", @@ -46,7 +46,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "lib/index.d.ts", "exports": { diff --git a/js/flow/package.json b/js/flow/package.json index 4e4e838b3..d57cf7df3 100644 --- a/js/flow/package.json +++ b/js/flow/package.json @@ -13,7 +13,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "node --import tsx --test tests/*_test.ts" @@ -45,7 +45,8 @@ "tsup": "^8.0.2", "typescript": "^4.9.0", "tsx": "^4.7.1", - "@types/body-parser": "^1.19.5" + "@types/body-parser": "^1.19.5", + "rimraf": "^6.0.1" }, "files": [ "genkit-ui", diff --git a/js/plugins/chroma/package.json b/js/plugins/chroma/package.json index 367ba90d9..67ee2dcb2 100644 --- a/js/plugins/chroma/package.json +++ b/js/plugins/chroma/package.json @@ -18,7 +18,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch" }, @@ -43,7 +43,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/dev-local-vectorstore/package.json b/js/plugins/dev-local-vectorstore/package.json index 9cf018d66..0bf731593 100644 --- a/js/plugins/dev-local-vectorstore/package.json +++ b/js/plugins/dev-local-vectorstore/package.json @@ -15,7 +15,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch" }, @@ -40,7 +40,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/dotprompt/package.json b/js/plugins/dotprompt/package.json index 2799fab46..ce5a8ce20 100644 --- a/js/plugins/dotprompt/package.json +++ b/js/plugins/dotprompt/package.json @@ -14,7 +14,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "tsx --test tests/*_test.ts" @@ -42,7 +42,8 @@ "tsup": "^8.0.2", "tsx": "^4.7.0", "typescript": "^4.9.0", - "yaml": "^2.4.1" + "yaml": "^2.4.1", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/evaluators/package.json b/js/plugins/evaluators/package.json index 3eebb85b7..19428cde2 100644 --- a/js/plugins/evaluators/package.json +++ b/js/plugins/evaluators/package.json @@ -16,7 +16,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "lint": "eslint --config ../../.eslintrc.js --ext .ts src", @@ -45,7 +45,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/firebase/package.json b/js/plugins/firebase/package.json index e2f2e8590..3827319de 100644 --- a/js/plugins/firebase/package.json +++ b/js/plugins/firebase/package.json @@ -18,7 +18,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "node --import tsx --test tests/*_test.ts" @@ -49,7 +49,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/google-cloud/package.json b/js/plugins/google-cloud/package.json index d79feb293..57550818f 100644 --- a/js/plugins/google-cloud/package.json +++ b/js/plugins/google-cloud/package.json @@ -18,7 +18,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "tsx --test ./tests/*_test.ts" @@ -62,7 +62,8 @@ "tsup": "^8.0.2", "tsx": "^4.7.0", "typescript": "^4.9.0", - "@genkit-ai/flow": "workspace:*" + "@genkit-ai/flow": "workspace:*", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/googleai/package.json b/js/plugins/googleai/package.json index 943c99ec7..8c36ba2b6 100644 --- a/js/plugins/googleai/package.json +++ b/js/plugins/googleai/package.json @@ -18,7 +18,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "tsx --test ./tests/*_test.ts" @@ -45,7 +45,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/langchain/package.json b/js/plugins/langchain/package.json index 98f3c5dd0..a0e8b2f76 100644 --- a/js/plugins/langchain/package.json +++ b/js/plugins/langchain/package.json @@ -14,7 +14,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch" }, @@ -42,7 +42,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/ollama/package.json b/js/plugins/ollama/package.json index 30f9190a2..c89768176 100644 --- a/js/plugins/ollama/package.json +++ b/js/plugins/ollama/package.json @@ -15,7 +15,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch" }, @@ -35,7 +35,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/pinecone/package.json b/js/plugins/pinecone/package.json index 482bd5d35..27b1a47fc 100644 --- a/js/plugins/pinecone/package.json +++ b/js/plugins/pinecone/package.json @@ -18,7 +18,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch" }, @@ -43,7 +43,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/plugins/vertexai/package.json b/js/plugins/vertexai/package.json index 840181ae7..47e77e029 100644 --- a/js/plugins/vertexai/package.json +++ b/js/plugins/vertexai/package.json @@ -22,7 +22,7 @@ "scripts": { "check": "tsc", "compile": "tsup-node", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build": "npm-run-all build:clean check compile", "build:watch": "tsup-node --watch", "test": "tsx --test ./tests/**/*_test.ts" @@ -59,7 +59,8 @@ "npm-run-all": "^4.1.5", "tsup": "^8.0.2", "tsx": "^4.7.0", - "typescript": "^4.9.0" + "typescript": "^4.9.0", + "rimraf": "^6.0.1" }, "types": "./lib/index.d.ts", "exports": { diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index eb3fb9830..0a85b2add 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -48,6 +48,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -109,6 +112,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -167,6 +173,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -201,6 +210,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -235,6 +247,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -272,6 +287,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -315,6 +333,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -364,6 +385,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -452,6 +476,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -489,6 +516,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -532,6 +562,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -557,6 +590,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -591,6 +627,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -653,6 +692,9 @@ importers: npm-run-all: specifier: ^4.1.5 version: 4.1.5 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 tsup: specifier: ^8.0.2 version: 8.0.2(typescript@4.9.5) @@ -761,6 +803,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -825,6 +870,9 @@ importers: '@types/pdf-parse': specifier: ^1.1.4 version: 1.1.4 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -874,6 +922,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -902,6 +953,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -939,6 +993,9 @@ importers: '@types/pdf-parse': specifier: ^1.1.4 version: 1.1.4 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -967,6 +1024,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1001,6 +1061,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1038,6 +1101,9 @@ importers: '@types/express': specifier: ^4.17.21 version: 4.17.21 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1057,6 +1123,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1103,6 +1172,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1192,6 +1264,9 @@ importers: '@types/express': specifier: ^4.17.21 version: 4.17.21 + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1217,6 +1292,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1251,6 +1329,9 @@ importers: specifier: ^3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.3.3 version: 5.4.5 @@ -1398,6 +1479,9 @@ importers: specifier: 3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.5.2 version: 5.5.3 @@ -1456,6 +1540,9 @@ importers: specifier: 3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.5.2 version: 5.5.3 @@ -1514,6 +1601,9 @@ importers: specifier: 3.22.4 version: 3.22.4 devDependencies: + rimraf: + specifier: ^6.0.1 + version: 6.0.1 typescript: specifier: ^5.5.2 version: 5.5.3 @@ -3579,6 +3669,11 @@ packages: engines: {node: '>=16 || 14 >=14.17'} hasBin: true + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -3866,6 +3961,10 @@ packages: resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} + jackspeak@4.0.2: + resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + engines: {node: 20 || >=22} + jake@10.9.1: resolution: {integrity: sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w==} engines: {node: '>=10'} @@ -4173,6 +4272,10 @@ packages: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} + lru-cache@11.0.1: + resolution: {integrity: sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==} + engines: {node: 20 || >=22} + lru-cache@4.0.2: resolution: {integrity: sha512-uQw9OqphAGiZhkuPlpFGmdTU2tEuhxTourM/19qGJrxBPHAr/f8BT1a0i/lOclESnGatdJG/UCkP9kZB/Lh1iw==} @@ -4246,6 +4349,10 @@ packages: resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} engines: {node: '>=10'} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -4272,6 +4379,10 @@ packages: resolution: {integrity: sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==} engines: {node: '>=16 || 14 >=14.17'} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + minizlib@2.1.2: resolution: {integrity: sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==} engines: {node: '>= 8'} @@ -4458,6 +4569,9 @@ packages: resolution: {integrity: sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==} engines: {node: '>=8'} + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + parents@1.0.1: resolution: {integrity: sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==} @@ -4495,6 +4609,10 @@ packages: resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==} engines: {node: '>=16 || 14 >=14.17'} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-to-regexp@0.1.10: resolution: {integrity: sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w==} @@ -4726,6 +4844,11 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true + rimraf@6.0.1: + resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} + engines: {node: 20 || >=22} + hasBin: true + rollup@4.13.2: resolution: {integrity: sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -7576,6 +7699,15 @@ snapshots: minipass: 7.0.4 path-scurry: 1.10.2 + glob@11.0.0: + dependencies: + foreground-child: 3.1.1 + jackspeak: 4.0.2 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 2.0.0 + glob@7.2.3: dependencies: fs.realpath: 1.0.0 @@ -7961,6 +8093,10 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 + jackspeak@4.0.2: + dependencies: + '@isaacs/cliui': 8.0.2 + jake@10.9.1: dependencies: async: 3.2.5 @@ -8212,6 +8348,8 @@ snapshots: lru-cache@10.2.0: {} + lru-cache@11.0.1: {} + lru-cache@4.0.2: dependencies: pseudomap: 1.0.2 @@ -8272,6 +8410,10 @@ snapshots: mimic-response@3.1.0: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -8296,6 +8438,8 @@ snapshots: minipass@7.0.4: {} + minipass@7.1.2: {} + minizlib@2.1.2: dependencies: minipass: 3.3.6 @@ -8490,6 +8634,8 @@ snapshots: dependencies: p-finally: 1.0.0 + package-json-from-dist@1.0.1: {} + parents@1.0.1: dependencies: path-platform: 0.11.15 @@ -8519,6 +8665,11 @@ snapshots: lru-cache: 10.2.0 minipass: 7.0.4 + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.1 + minipass: 7.1.2 + path-to-regexp@0.1.10: {} path-type@3.0.0: @@ -8767,6 +8918,11 @@ snapshots: glob: 7.2.3 optional: true + rimraf@6.0.1: + dependencies: + glob: 11.0.0 + package-json-from-dist: 1.0.1 + rollup@4.13.2: dependencies: '@types/estree': 1.0.5 diff --git a/js/testapps/byo-evaluator/package.json b/js/testapps/byo-evaluator/package.json index 16479c551..9ada5a086 100644 --- a/js/testapps/byo-evaluator/package.json +++ b/js/testapps/byo-evaluator/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch" }, "keywords": [], @@ -27,6 +27,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/cat-eval/package.json b/js/testapps/cat-eval/package.json index 3d2487e6f..3d618f2ee 100644 --- a/js/testapps/cat-eval/package.json +++ b/js/testapps/cat-eval/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch" }, "keywords": [], @@ -35,6 +35,7 @@ }, "devDependencies": { "@types/pdf-parse": "^1.1.4", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/dev-ui-gallery/package.json b/js/testapps/dev-ui-gallery/package.json index dd663d07b..e74f0f25f 100644 --- a/js/testapps/dev-ui-gallery/package.json +++ b/js/testapps/dev-ui-gallery/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -15,7 +15,8 @@ "author": "Google, LLC", "license": "ISC", "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" }, "dependencies": { "@genkit-ai/ai": "workspace:*", diff --git a/js/testapps/docs-menu-basic/package.json b/js/testapps/docs-menu-basic/package.json index b818c391d..6d2c3db43 100644 --- a/js/testapps/docs-menu-basic/package.json +++ b/js/testapps/docs-menu-basic/package.json @@ -4,7 +4,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "npm run build:clean && npm run compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "test": "echo \"Error: no test specified\" && exit 1" }, @@ -24,6 +24,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/docs-menu-rag/package.json b/js/testapps/docs-menu-rag/package.json index f3454876c..0e31f1a07 100644 --- a/js/testapps/docs-menu-rag/package.json +++ b/js/testapps/docs-menu-rag/package.json @@ -4,7 +4,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -27,6 +27,7 @@ }, "devDependencies": { "@types/pdf-parse": "^1.1.4", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/eval/package.json b/js/testapps/eval/package.json index 0d42e5b11..0ae05b5a6 100644 --- a/js/testapps/eval/package.json +++ b/js/testapps/eval/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -24,6 +24,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/evaluator-gut-check/package.json b/js/testapps/evaluator-gut-check/package.json index 3023e1aa9..788adf0af 100644 --- a/js/testapps/evaluator-gut-check/package.json +++ b/js/testapps/evaluator-gut-check/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch" }, "keywords": [], @@ -25,6 +25,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/express/package.json b/js/testapps/express/package.json index d4b522b03..3eb19a1ca 100644 --- a/js/testapps/express/package.json +++ b/js/testapps/express/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -27,6 +27,7 @@ }, "devDependencies": { "@types/express": "^4.17.21", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/flow-sample1/package.json b/js/testapps/flow-sample1/package.json index 826337ed7..e9badd501 100644 --- a/js/testapps/flow-sample1/package.json +++ b/js/testapps/flow-sample1/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -21,6 +21,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/flow-simple-ai/package.json b/js/testapps/flow-simple-ai/package.json index 308422550..1fe48c994 100644 --- a/js/testapps/flow-simple-ai/package.json +++ b/js/testapps/flow-simple-ai/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -30,6 +30,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/langchain/package.json b/js/testapps/langchain/package.json index c363e08e6..7999f9ceb 100644 --- a/js/testapps/langchain/package.json +++ b/js/testapps/langchain/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -33,6 +33,7 @@ }, "devDependencies": { "@types/express": "^4.17.21", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/llm-human-in-the-loop/package.json b/js/testapps/llm-human-in-the-loop/package.json index 41bc652e2..fe4656178 100644 --- a/js/testapps/llm-human-in-the-loop/package.json +++ b/js/testapps/llm-human-in-the-loop/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -23,6 +23,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/menu/package.json b/js/testapps/menu/package.json index 9a4f3c258..3095de56d 100644 --- a/js/testapps/menu/package.json +++ b/js/testapps/menu/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -26,7 +26,8 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" }, "type": "module" } diff --git a/js/testapps/vertexai-vector-search-bigquery/package.json b/js/testapps/vertexai-vector-search-bigquery/package.json index d1d3d4ba4..46167568e 100644 --- a/js/testapps/vertexai-vector-search-bigquery/package.json +++ b/js/testapps/vertexai-vector-search-bigquery/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch" }, "keywords": [], @@ -33,6 +33,7 @@ "zod": "3.22.4" }, "devDependencies": { - "typescript": "^5.5.2" + "typescript": "^5.5.2", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/vertexai-vector-search-custom/package.json b/js/testapps/vertexai-vector-search-custom/package.json index d1d3d4ba4..46167568e 100644 --- a/js/testapps/vertexai-vector-search-custom/package.json +++ b/js/testapps/vertexai-vector-search-custom/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch" }, "keywords": [], @@ -33,6 +33,7 @@ "zod": "3.22.4" }, "devDependencies": { - "typescript": "^5.5.2" + "typescript": "^5.5.2", + "rimraf": "^6.0.1" } } diff --git a/js/testapps/vertexai-vector-search-firestore/package.json b/js/testapps/vertexai-vector-search-firestore/package.json index 021f4246e..1bf7ab043 100644 --- a/js/testapps/vertexai-vector-search-firestore/package.json +++ b/js/testapps/vertexai-vector-search-firestore/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch" }, "keywords": [], @@ -33,6 +33,7 @@ "zod": "3.22.4" }, "devDependencies": { - "typescript": "^5.5.2" + "typescript": "^5.5.2", + "rimraf": "^6.0.1" } } diff --git a/package.json b/package.json index d9159a756..91cb4e0b3 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "link-genkit-cli": "cd genkit-tools/cli && npm link", "pnpm-install-js": "cd js && pnpm i", "pnpm-install-genkit-tools": "cd genkit-tools && pnpm i", - "pack:all": "rm -r dist || true && mkdir dist && pnpm run pack:tools && pnpm run pack:js && pnpm dist:zip", + "pack:all": "rimraf dist || true && mkdir dist && pnpm run pack:tools && pnpm run pack:js && pnpm dist:zip", "pack:tools": "cd genkit-tools && pnpm pack:all", "pack:js": "cd js && pnpm pack:all", "dist:zip": "cd dist && zip genkit-dist.zip *.tgz", @@ -37,7 +37,8 @@ "prettier-plugin-css-order": "2.0.1", "prettier-plugin-organize-imports": "^3.2.4", "ts-node": "^10.9.2", - "tsx": "^4.7.1" + "tsx": "^4.7.1", + "rimraf": "^6.0.1" }, "packageManager": "pnpm@9.12.0+sha256.a61b67ff6cc97af864564f4442556c22a04f2e5a7714fbee76a1011361d9b726" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8c98aea4f..d0fcea468 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,6 +29,9 @@ importers: prettier-plugin-organize-imports: specifier: ^3.2.4 version: 3.2.4(prettier@3.2.5)(typescript@5.4.5) + rimraf: + specifier: ^6.0.1 + version: 6.0.1 ts-node: specifier: ^10.9.2 version: 10.9.2(@types/node@20.12.11)(typescript@5.4.5) @@ -180,6 +183,10 @@ packages: cpu: [x64] os: [win32] + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + '@jridgewell/resolve-uri@3.1.2': resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} @@ -222,6 +229,10 @@ packages: resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} + ansi-regex@6.1.0: + resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} + engines: {node: '>=12'} + ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} @@ -230,6 +241,10 @@ packages: resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + arg@4.1.3: resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} @@ -257,6 +272,9 @@ packages: brace-expansion@1.1.11: resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + brace-expansion@2.0.1: + resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} + buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} @@ -327,6 +345,10 @@ packages: resolution: {integrity: sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==} engines: {node: '>=4.8'} + cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} + engines: {node: '>= 8'} + css-declaration-sorter@7.2.0: resolution: {integrity: sha512-h70rUM+3PNFuaBDTLe8wF/cdWu+dOZmb7pJt8Z2sedYbAcQVQV/tEchueg3GWxwqS0cxtbxmaHEdkNACqcvsow==} engines: {node: ^14 || ^16 || >=18} @@ -360,9 +382,15 @@ packages: resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} engines: {node: '>=0.3.1'} + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} @@ -410,6 +438,10 @@ packages: for-each@0.3.3: resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==} + foreground-child@3.3.0: + resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} + engines: {node: '>=14'} + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -436,6 +468,11 @@ packages: get-tsconfig@4.7.5: resolution: {integrity: sha512-ZCuZCnlqNzjb4QprAzXKdpp/gh6KTxSJuw3IBsPnV/7fV4NxC9ckB+vPTt8w7fJA0TaSD7c55BR47JD6MEDyDw==} + glob@11.0.0: + resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + engines: {node: 20 || >=22} + hasBin: true + globalthis@1.0.4: resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==} engines: {node: '>= 0.4'} @@ -578,6 +615,10 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + jackspeak@4.0.2: + resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + engines: {node: 20 || >=22} + json-parse-better-errors@1.0.2: resolution: {integrity: sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==} @@ -592,6 +633,10 @@ packages: resolution: {integrity: sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==} engines: {node: '>=10'} + lru-cache@11.0.1: + resolution: {integrity: sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==} + engines: {node: 20 || >=22} + lru-cache@4.1.5: resolution: {integrity: sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==} @@ -606,9 +651,17 @@ packages: resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==} engines: {node: '>=6'} + minimatch@10.0.1: + resolution: {integrity: sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==} + engines: {node: 20 || >=22} + minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + mute-stream@0.0.8: resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} @@ -659,6 +712,9 @@ packages: resolution: {integrity: sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==} engines: {node: '>=0.10.0'} + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + parse-json@4.0.0: resolution: {integrity: sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==} engines: {node: '>=4'} @@ -667,9 +723,17 @@ packages: resolution: {integrity: sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==} engines: {node: '>=4'} + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + path-parse@1.0.7: resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==} + path-scurry@2.0.0: + resolution: {integrity: sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==} + engines: {node: 20 || >=22} + path-type@3.0.0: resolution: {integrity: sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==} engines: {node: '>=4'} @@ -765,6 +829,11 @@ packages: resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==} engines: {node: '>=8'} + rimraf@6.0.1: + resolution: {integrity: sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==} + engines: {node: 20 || >=22} + hasBin: true + run-async@2.4.1: resolution: {integrity: sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==} engines: {node: '>=0.12.0'} @@ -805,10 +874,18 @@ packages: resolution: {integrity: sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==} engines: {node: '>=0.10.0'} + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + shebang-regex@1.0.0: resolution: {integrity: sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==} engines: {node: '>=0.10.0'} + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + shell-quote@1.8.1: resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} @@ -819,6 +896,10 @@ packages: signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + source-map-js@1.2.0: resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} @@ -842,6 +923,10 @@ packages: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + string.prototype.padend@3.1.6: resolution: {integrity: sha512-XZpspuSB7vJWhvJc9DLSlrXl1mcA2BdoY5jjnS135ydXqLoqhs96JjDtCkjJEQHvfqZIp9hBuBMgI589peyx9Q==} engines: {node: '>= 0.4'} @@ -867,6 +952,10 @@ packages: resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} engines: {node: '>=4'} @@ -977,10 +1066,23 @@ packages: resolution: {integrity: sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==} hasBin: true + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + wrap-ansi@6.2.0: resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} engines: {node: '>=8'} + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + yallist@2.1.2: resolution: {integrity: sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==} @@ -1063,6 +1165,15 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + '@jridgewell/resolve-uri@3.1.2': {} '@jridgewell/sourcemap-codec@1.4.15': {} @@ -1094,6 +1205,8 @@ snapshots: ansi-regex@5.0.1: {} + ansi-regex@6.1.0: {} + ansi-styles@3.2.1: dependencies: color-convert: 1.9.3 @@ -1102,6 +1215,8 @@ snapshots: dependencies: color-convert: 2.0.1 + ansi-styles@6.2.1: {} + arg@4.1.3: {} array-buffer-byte-length@1.0.1: @@ -1139,6 +1254,10 @@ snapshots: balanced-match: 1.0.2 concat-map: 0.0.1 + brace-expansion@2.0.1: + dependencies: + balanced-match: 1.0.2 + buffer-from@1.1.2: {} buffer@5.7.1: @@ -1216,6 +1335,12 @@ snapshots: shebang-command: 1.2.0 which: 1.3.1 + cross-spawn@7.0.3: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + css-declaration-sorter@7.2.0(postcss@8.4.38): dependencies: postcss: 8.4.38 @@ -1256,8 +1381,12 @@ snapshots: diff@4.0.2: {} + eastasianwidth@0.2.0: {} + emoji-regex@8.0.0: {} + emoji-regex@9.2.2: {} + error-ex@1.3.2: dependencies: is-arrayish: 0.2.1 @@ -1375,6 +1504,11 @@ snapshots: dependencies: is-callable: 1.2.7 + foreground-child@3.3.0: + dependencies: + cross-spawn: 7.0.3 + signal-exit: 4.1.0 + fsevents@2.3.3: optional: true @@ -1407,6 +1541,15 @@ snapshots: dependencies: resolve-pkg-maps: 1.0.0 + glob@11.0.0: + dependencies: + foreground-child: 3.3.0 + jackspeak: 4.0.2 + minimatch: 10.0.1 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 2.0.0 + globalthis@1.0.4: dependencies: define-properties: 1.2.1 @@ -1547,6 +1690,10 @@ snapshots: isexe@2.0.0: {} + jackspeak@4.0.2: + dependencies: + '@isaacs/cliui': 8.0.2 + json-parse-better-errors@1.0.2: {} load-json-file@4.0.0: @@ -1563,6 +1710,8 @@ snapshots: chalk: 4.1.2 is-unicode-supported: 0.1.0 + lru-cache@11.0.1: {} + lru-cache@4.1.5: dependencies: pseudomap: 1.0.2 @@ -1574,10 +1723,16 @@ snapshots: mimic-fn@2.1.0: {} + minimatch@10.0.1: + dependencies: + brace-expansion: 2.0.1 + minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 + minipass@7.1.2: {} + mute-stream@0.0.8: {} nanoid@3.3.7: {} @@ -1638,6 +1793,8 @@ snapshots: os-tmpdir@1.0.2: {} + package-json-from-dist@1.0.1: {} + parse-json@4.0.0: dependencies: error-ex: 1.3.2 @@ -1645,8 +1802,15 @@ snapshots: path-key@2.0.1: {} + path-key@3.1.1: {} + path-parse@1.0.7: {} + path-scurry@2.0.0: + dependencies: + lru-cache: 11.0.1 + minipass: 7.1.2 + path-type@3.0.0: dependencies: pify: 3.0.0 @@ -1741,6 +1905,11 @@ snapshots: onetime: 5.1.2 signal-exit: 3.0.7 + rimraf@6.0.1: + dependencies: + glob: 11.0.0 + package-json-from-dist: 1.0.1 + run-async@2.4.1: {} rxjs@7.8.1: @@ -1788,8 +1957,14 @@ snapshots: dependencies: shebang-regex: 1.0.0 + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + shebang-regex@1.0.0: {} + shebang-regex@3.0.0: {} + shell-quote@1.8.1: {} side-channel@1.0.6: @@ -1801,6 +1976,8 @@ snapshots: signal-exit@3.0.7: {} + signal-exit@4.1.0: {} + source-map-js@1.2.0: {} spawn-sync@1.0.15: @@ -1828,6 +2005,12 @@ snapshots: is-fullwidth-code-point: 3.0.0 strip-ansi: 6.0.1 + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + string.prototype.padend@3.1.6: dependencies: call-bind: 1.0.7 @@ -1866,6 +2049,10 @@ snapshots: dependencies: ansi-regex: 5.0.1 + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.1.0 + strip-bom@3.0.0: {} supports-color@5.5.0: @@ -1997,12 +2184,28 @@ snapshots: dependencies: isexe: 2.0.0 + which@2.0.2: + dependencies: + isexe: 2.0.0 + wrap-ansi@6.2.0: dependencies: ansi-styles: 4.3.0 string-width: 4.2.3 strip-ansi: 6.0.1 + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + yallist@2.1.2: {} yn@3.1.1: {} diff --git a/samples/js-coffee-shop/package.json b/samples/js-coffee-shop/package.json index 608ba9003..bf7ac1a5b 100644 --- a/samples/js-coffee-shop/package.json +++ b/samples/js-coffee-shop/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "npm run build:clean && npm run compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "npm run build && node lib/index.js" }, @@ -31,6 +31,7 @@ }, "devDependencies": { "genkit": "^0.5.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/samples/js-menu/package.json b/samples/js-menu/package.json index f7f11c3d2..0f79b1468 100644 --- a/samples/js-menu/package.json +++ b/samples/js-menu/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "npm run build:clean && npm run compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "npm run build && node lib/index.js" }, @@ -27,6 +27,7 @@ }, "devDependencies": { "genkit": "^0.5.0", - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } } diff --git a/tests/test_js_app/package.json b/tests/test_js_app/package.json index b0066e487..8c97f13de 100644 --- a/tests/test_js_app/package.json +++ b/tests/test_js_app/package.json @@ -7,7 +7,7 @@ "start": "node lib/index.js", "compile": "tsc", "build": "pnpm build:clean && pnpm compile", - "build:clean": "rm -rf ./lib", + "build:clean": "rimraf ./lib", "build:watch": "tsc --watch", "build-and-run": "pnpm build && node lib/index.js" }, @@ -18,6 +18,7 @@ "zod": "^3.22.4" }, "devDependencies": { - "typescript": "^5.3.3" + "typescript": "^5.3.3", + "rimraf": "^6.0.1" } }