update build.ts

This commit is contained in:
2026-02-09 23:56:39 +08:00
parent 503d57300d
commit 2c92cbc682
2 changed files with 8 additions and 7 deletions

View File

@@ -18,12 +18,12 @@
}, },
"build.ts": { "build.ts": {
"script_name": "build.ts", "script_name": "build.ts",
"script_length": 5493, "script_length": 5532,
"script_sha256": "387d0f3810e419001e97ce591803c5878a5226fb097a9acbdec2a006892d17dc", "script_sha256": "d53170d6d800cf36ddb8ff88b3aa2879fb4fe69651ca8e2ecbd8e596d7c6a170",
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/build.ts", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/build.ts",
"single_script_file": true, "single_script_file": true,
"publish_time": 1770564482429, "publish_time": 1770564482429,
"update_time": 1770572253823 "update_time": 1770652594614
}, },
"cal-bun.ts": { "cal-bun.ts": {
"script_name": "cal-bun.ts", "script_name": "cal-bun.ts",

View File

@@ -133,6 +133,7 @@ async function buildFile(file: string, flags: any) {
if (flags.min) { if (flags.min) {
denoBundleArgs.push("--minify"); denoBundleArgs.push("--minify");
} }
denoBundleArgs.push("--allow-import");
denoBundleArgs.push(file); denoBundleArgs.push(file);
denoBundleArgs.push("-o"); denoBundleArgs.push("-o");
denoBundleArgs.push(bundleFile); denoBundleArgs.push(bundleFile);
@@ -179,5 +180,5 @@ async function buildFile(file: string, flags: any) {
await main(); await main();
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T013705+08:00.MEQCIHj/WaoXLvfRd2r4TEZ7 // @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T235604+08:00.MEUCIQCrTkAmvn7P/n8fONFi
// neD2hxP6eE9v6bh+wAlNR80bAiBLEqdh5PQC+augiA26bFokQMY6/+Nah4UwgLM00Z6hpg== // cpqS5X1+UY+jH+0z/qf1CVy15QIgUv0z4zF0gIuFKWz16/XzGDL1Hae43OEv0qT+h2ooYE8=