From f0d81bbcd7e3e39785bf0062966e6280b8af899e Mon Sep 17 00:00:00 2001 From: di-sukharev Date: Sun, 26 Nov 2023 17:12:54 +0800 Subject: [PATCH] improve shell script --- install.sh | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 35e63c4..9378f61 100644 --- a/install.sh +++ b/install.sh @@ -34,7 +34,7 @@ unzip -oqd "$install_dir" "$exe.zip" || cat <"$exe" #!/usr/bin/env bash set -euo pipefail -bun $install_dir/src/cli.ts "\$@" +bun $install_dir/cli.js "\$@" EOF # Make the wrapper executable diff --git a/package.json b/package.json index 0cb06c9..c1d5c88 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "scripts": { "start": "bun run cli.ts", "test": "bun test", - "posttest": "bun run __tests__/sandbox/clean.ts" + "posttest": "bun run __tests__/sandbox/clean.ts", + "build": "bun build ./cli.ts --target=bun --outdir=out" }, "devDependencies": { "@types/ini": "^1.3.31",