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 --external @ast-grep/napi
|
||||
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
|
||||
11
package.json
11
package.json
@@ -18,12 +18,11 @@
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly",
|
||||
"clean": "rm -rf dist",
|
||||
"prepare": "bun run build",
|
||||
"prepublishOnly": "bun run clean && bun run build",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "bun test"
|
||||
"bundle": "./build.sh",
|
||||
"clean": "./clean.sh",
|
||||
"prepublishOnly": "./prepublish.sh",
|
||||
"typecheck": "./typecheck.sh",
|
||||
"test": "./test.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