more refactor

This commit is contained in:
LiBr
2026-04-10 20:34:14 +08:00
parent 8d31144741
commit 72123cc922
47 changed files with 868 additions and 365 deletions

11
wasm/openssl/build.mjs Normal file
View File

@@ -0,0 +1,11 @@
import { cp, mkdir, rm } from "node:fs/promises"
import { dirname, resolve } from "node:path"
import { fileURLToPath } from "node:url"
const packageDir = dirname(fileURLToPath(import.meta.url))
const sourceDir = resolve(packageDir, "src")
const distDir = resolve(packageDir, "dist")
await rm(distDir, { recursive: true, force: true })
await mkdir(distDir, { recursive: true })
await cp(sourceDir, distDir, { recursive: true })