delete js-qrcode dependencies (no needed anymore)

This commit is contained in:
infrost
2026-07-08 03:20:34 +01:00
parent 001f152eec
commit bea0f5cf03
23 changed files with 680 additions and 267 deletions
+19
View File
@@ -0,0 +1,19 @@
import { copyFileSync, mkdirSync } from 'node:fs';
import { basename, join } from 'node:path';
const root = process.cwd();
const dist = join(root, 'dist');
const assets = [
{
source: join(root, 'src', 'fast_qr_wasm', 'wasm', 'qrstream_fast_qr_wasm_bg.wasm'),
target: join(dist, 'qrstream_fast_qr_wasm_bg.wasm'),
},
];
mkdirSync(dist, { recursive: true });
for (const asset of assets) {
copyFileSync(asset.source, asset.target);
console.log(`copied ${basename(asset.target)}`);
}