Skip to content

Commit

Permalink
bundled dockerode
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 24, 2024
1 parent d2edf49 commit eb05e98
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion packages/vscode/postpackage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/vscode/prepackage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb05e98

Please sign in to comment.