sipher/src/lib/scripts/copy-olm.ts
Nixyan df41cf4657 Update dependencies, add OLM support, and improve authentication flow
- Updated various dependencies in package.json and bun.lock for better compatibility and features.
- Added OLM (Object Location Management) support by including necessary files and updating authentication logic.
- Enhanced the authentication flow with better error handling and user feedback.
- Introduced new database schema for OLM accounts and updated related API components.
- Improved socket connection management and user interface elements for a smoother user experience.
2025-12-19 12:18:46 -03:00

16 lines
460 B
TypeScript

const olmDir = `${import.meta.dir}/../../../node_modules/@matrix-org/olm`;
const publicDir = `${import.meta.dir}/../../../public`;
const files = ["olm.js", "olm.wasm"];
for (const file of files) {
const src = Bun.file(`${olmDir}/${file}`);
const dest = `${publicDir}/${file}`;
if (await src.exists()) {
await Bun.write(dest, src);
console.log(`✓ Copied ${file} to public/`);
} else {
console.error(`${file} not found in node_modules`);
}
}