5
build.sh
Executable file
5
build.sh
Executable 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
4
clean.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
rm -rf dist
|
||||
@@ -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
5
prepublish.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
./clean.sh
|
||||
./build.sh
|
||||
4
typecheck.sh
Executable file
4
typecheck.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
tsc --noEmit
|
||||
Reference in New Issue
Block a user