mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Copy tree-sitter.wasm to dist (#3046)
This commit is contained in:
parent
f120de6a34
commit
67ec7560ee
1 changed files with 7 additions and 1 deletions
|
|
@ -32,12 +32,18 @@ const copyWasmFiles = {
|
|||
const nodeModulesDir = path.join(__dirname, "node_modules")
|
||||
const distDir = path.join(__dirname, "dist")
|
||||
|
||||
// tiktoken
|
||||
// tiktoken WASM file
|
||||
fs.copyFileSync(
|
||||
path.join(nodeModulesDir, "tiktoken", "tiktoken_bg.wasm"),
|
||||
path.join(distDir, "tiktoken_bg.wasm"),
|
||||
)
|
||||
|
||||
// Main tree-sitter WASM file
|
||||
fs.copyFileSync(
|
||||
path.join(nodeModulesDir, "web-tree-sitter", "tree-sitter.wasm"),
|
||||
path.join(distDir, "tree-sitter.wasm"),
|
||||
)
|
||||
|
||||
// Copy language-specific WASM files
|
||||
const languageWasmDir = path.join(__dirname, "node_modules", "tree-sitter-wasms", "out")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue