Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
2026-04-19 19:10:43 -04:00
parent 55f28777f6
commit 3bf7c71677
5 changed files with 22 additions and 4 deletions

5
build.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
bun build src/index.ts --outdir dist --target bun --format esm
tsc --emitDeclarationOnly

4
clean.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
rm -rf dist

View File

@@ -19,10 +19,10 @@
} }
}, },
"scripts": { "scripts": {
"build": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly", "bundle": "./build.sh",
"clean": "rm -rf dist", "clean": "./clean.sh",
"prepublishOnly": "bun run clean && bun run build", "prepublishOnly": "./prepublish.sh",
"typecheck": "tsc --noEmit" "typecheck": "./typecheck.sh"
}, },
"keywords": [ "keywords": [
"opencode", "opencode",

5
prepublish.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
./clean.sh
./build.sh

4
typecheck.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
tsc --noEmit