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": {
"build": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly",
"clean": "rm -rf dist",
"prepublishOnly": "bun run clean && bun run build",
"typecheck": "tsc --noEmit"
"bundle": "./build.sh",
"clean": "./clean.sh",
"prepublishOnly": "./prepublish.sh",
"typecheck": "./typecheck.sh"
},
"keywords": [
"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