This commit is contained in:
Meghdad committed 2026-11-01 19:43:03 +03:30
commit 22fe85bb92
247 files changed
+35538

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { copyFile, mkdir } from 'node:fs/promises';
const dest = new URL('../public/vendor/opus/', import.meta.url);
const source = new URL('../node_modules/libopus-wasm/', import.meta.url);
await mkdir(new URL('generated/', dest), { recursive: true });
for (const [from, to] of [['dist/index.js', 'index.js'], ['dist/generated/libopus.generated.mjs', 'generated/libopus.generated.mjs'], ['LICENSE', 'LICENSE'], ['THIRD_PARTY_NOTICES.md', 'THIRD_PARTY_NOTICES.md']]) {
await copyFile(new URL(from, source), new URL(to, dest));
}
console.log('Pinned Opus browser codec and license notices packaged.');