Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions WebContainerGitService.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,9 @@ export class WebContainerGitService {
const tree = {};
const entries = await this.fs.readdir(dir);

for (const entry of entries) {
if (entry === '.git' || entry === 'node_modules') continue;
await Promise.all(entries.map(async (entry) => {
if (entry === '.git' || entry === 'node_modules') return;

const path = `${dir}/${entry}`;
const stat = await this.fs.stat(path);

Expand All @@ -258,7 +259,8 @@ export class WebContainerGitService {
file: { contents }
};
}
}
}));

return tree;
}

Expand Down
3 changes: 2 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ async function build() {

// 3. Copy Static Libraries
console.log("πŸ“‚ Copying libraries...");
const { cp } = await import("node:fs/promises");
const libs = await readdir("lib");
for (const lib of libs) {
const src = join("lib", lib);
const dest = join(DIST, "lib", lib);
await Bun.write(dest, Bun.file(src));
await cp(src, dest, { recursive: true });
}

// Extract the generated hashed file name from Bun's output
Expand Down
1 change: 1 addition & 0 deletions lib/frameworks/engines/tagger-rs/build_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ wasm-pack build --target web --release
# 4. Copy to lib
echo -e "${GREEN}πŸ“¦ Copying binary to dashboard library...${NC}"
cp pkg/zerocms_tagger_bg.wasm ../../../../lib/zerocms_tagger_bg.wasm
cp pkg/zerocms_tagger.js ../../../../lib/zerocms_tagger.js

echo -e "${GREEN}✨ Success! High-performance tagger is now active.${NC}"