update build.ts
This commit is contained in:
@@ -18,12 +18,12 @@
|
|||||||
},
|
},
|
||||||
"build.ts": {
|
"build.ts": {
|
||||||
"script_name": "build.ts",
|
"script_name": "build.ts",
|
||||||
"script_length": 5532,
|
"script_length": 5539,
|
||||||
"script_sha256": "d53170d6d800cf36ddb8ff88b3aa2879fb4fe69651ca8e2ecbd8e596d7c6a170",
|
"script_sha256": "e0e97ed9aabd3aacc5b17573918c956c653bd0d5077f798e4922e2f717f09495",
|
||||||
"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": 1770652594614
|
"update_time": 1770738246894
|
||||||
},
|
},
|
||||||
"cal-bun.ts": {
|
"cal-bun.ts": {
|
||||||
"script_name": "cal-bun.ts",
|
"script_name": "cal-bun.ts",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env runts -- --allow-all
|
#!/usr/bin/env runts -- --allow-all
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
args,
|
||||||
execCommand,
|
execCommand,
|
||||||
execCommandShell,
|
execCommandShell,
|
||||||
existsPath,
|
existsPath,
|
||||||
@@ -9,7 +10,7 @@ import {
|
|||||||
term,
|
term,
|
||||||
uint8ArrayToHexString,
|
uint8ArrayToHexString,
|
||||||
writeStringToFile,
|
writeStringToFile,
|
||||||
} from "https://script.hatter.ink/@36/deno-commons-mod.ts";
|
} from "https://script.hatter.ink/@37/deno-commons-mod.ts";
|
||||||
import {parseArgs} from "jsr:@std/cli/parse-args";
|
import {parseArgs} from "jsr:@std/cli/parse-args";
|
||||||
import {readFileToString} from "https://global.hatter.ink/script/get/@1/deno-commons-1.6.0-mod.ts";
|
import {readFileToString} from "https://global.hatter.ink/script/get/@1/deno-commons-1.6.0-mod.ts";
|
||||||
|
|
||||||
@@ -22,7 +23,7 @@ Usage:
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const flags = parseArgs(Deno.args, {
|
const flags = parseArgs(args(), {
|
||||||
boolean: [
|
boolean: [
|
||||||
"help",
|
"help",
|
||||||
"no-min",
|
"no-min",
|
||||||
@@ -180,5 +181,5 @@ async function buildFile(file: string, flags: any) {
|
|||||||
|
|
||||||
await main();
|
await main();
|
||||||
|
|
||||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T235604+08:00.MEUCIQCrTkAmvn7P/n8fONFi
|
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260210T234339+08:00.MEUCIHmL1NC1x13n9Ulgfi1k
|
||||||
// cpqS5X1+UY+jH+0z/qf1CVy15QIgUv0z4zF0gIuFKWz16/XzGDL1Hae43OEv0qT+h2ooYE8=
|
// i6EtW3hEyc4kRuqopxP+zwYUAiEAwp86FypQnoXj7kXIRnkloPh1d2pIu/9o1eszNC5oJW4=
|
||||||
|
|||||||
Reference in New Issue
Block a user