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