Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 committed Sep 20, 2024
1 parent be636d8 commit ca237e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion binding/web/scripts/copy_wasm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require("fs");
const { join } = require("path");
const { join, extname } = require("path");

const wasmFiles = [
"pv_picollm.wasm",
Expand All @@ -25,6 +25,10 @@ try {
fs.mkdirSync(outputDirectory, { recursive: true });
wasmFiles.forEach(file => {
fs.copyFileSync(join(sourceDirectory, file), join(outputDirectory, file))
const ext = extname(file);
if (ext === ".js") {
fs.copyFileSync(join(sourceDirectory, file), join(outputDirectory, file.replace(ext, ".txt")));
}
})
} catch (error) {
console.error(error);
Expand Down
1 change: 1 addition & 0 deletions resources/.lint/spell-check/dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cuda
cwrap
dotdotdot
dylib
embedder
emscripten
endoftext
gptq
Expand Down

0 comments on commit ca237e3

Please sign in to comment.