feat: add send file function

This commit is contained in:
2026-09-18 01:58:44 +08:00
parent 6e852ab224
commit 9792e49123
13 changed files with 288 additions and 95 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import * as esbuild from "esbuild";
import pkgInfo from "./package.json";
const VERSION = "0.0.7";
const VERSION = pkgInfo.version;
const IS_DIST =
process.argv.indexOf("--prod") !== -1 || process.argv.indexOf("-p") !== -1;
const WS_URL = IS_DIST ? process.env.WS_URL : "ws://127.0.0.1:8787";