From eb05e98b465957f2a103b24545c2188d9ad697a9 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Fri, 24 May 2024 09:25:54 -0700 Subject: [PATCH] bundled dockerode --- packages/cli/package.json | 2 +- packages/vscode/package.json | 1 - packages/vscode/postpackage.mjs | 1 - packages/vscode/prepackage.mjs | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 0baab979cc..d2cca735f2 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -70,7 +70,7 @@ "zx": "^8.1.0" }, "scripts": { - "compile": "esbuild src/main.ts --bundle --platform=node --target=node20 --outfile=built/genaiscript.cjs --external:dockerode --external:pdfjs-dist --external:llamaindex --external:web-tree-sitter --external:tree-sitter-wasms --external:promptfoo && node ../../scripts/patch-cli.mjs", + "compile": "esbuild src/main.ts --bundle --platform=node --target=node20 --outfile=built/genaiscript.cjs --external:ssh2 --external:pdfjs-dist --external:llamaindex --external:web-tree-sitter --external:tree-sitter-wasms --external:promptfoo && node ../../scripts/patch-cli.mjs", "postcompile": "node built/genaiscript.cjs info help > ../../docs/src/content/docs/reference/cli/commands.md", "go": "yarn compile && node built/genaiscript.cjs", "test": "node --import tsx --test src/**.test.ts", diff --git a/packages/vscode/package.json b/packages/vscode/package.json index acacd29bc4..ac09e68e17 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -334,7 +334,6 @@ "zx": "^8.1.0" }, "dependencies": { - "dockerode": "^4.0.2", "mammoth": "^1.7.2", "pdfjs-dist": "4.2.67", "tree-sitter-wasms": "^0.1.11", diff --git a/packages/vscode/postpackage.mjs b/packages/vscode/postpackage.mjs index 5aa532a51e..d394ffa108 100644 --- a/packages/vscode/postpackage.mjs +++ b/packages/vscode/postpackage.mjs @@ -3,7 +3,6 @@ import 'zx/globals' await fs.rm('./node_modules/pdfjs-dist', { recursive: true }) await fs.rm('./node_modules/tree-sitter-wasms', { recursive: true }) await fs.rm('./node_modules/web-tree-sitter', { recursive: true }) -await fs.rm('./node_modules/dockerode', { recursive: true }) const pkg = await fs.readJSON('./package.json') pkg.enabledApiProposals = pkg._enabledApiProposals diff --git a/packages/vscode/prepackage.mjs b/packages/vscode/prepackage.mjs index 505e4f3bb7..f92c6642d8 100644 --- a/packages/vscode/prepackage.mjs +++ b/packages/vscode/prepackage.mjs @@ -4,7 +4,6 @@ import "zx/globals" await fs.copy('../../node_modules/pdfjs-dist', './node_modules/pdfjs-dist', { recursive: true }) await fs.copy('../../node_modules/tree-sitter-wasms', './node_modules/tree-sitter-wasms', { recursive: true }) await fs.copy('../../node_modules/web-tree-sitter', './node_modules/web-tree-sitter', { recursive: true }) -await fs.copy('../../node_modules/dockerode', './node_modules/dockerode', { recursive: true }) const pkg = await fs.readJSON("./package.json") pkg._enabledApiProposals = pkg.enabledApiProposals