Skip to content

Commit b6c9301

Browse files
committed
feat: Add build scripts for debug and production
1 parent 6944c7b commit b6c9301

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

scripts/build-debug.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import consola from "consola"
2+
import spawn from "nano-spawn"
3+
4+
const process = await spawn("bun", [
5+
"build",
6+
"./src/main.ts",
7+
8+
"--outfile",
9+
"./dist/copilot-api-debug",
10+
11+
"--compile",
12+
"--sourcemap",
13+
])
14+
15+
consola.log(process.output)

scripts/build.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import consola from "consola"
2+
import spawn from "nano-spawn"
3+
4+
const process = await spawn("bun", [
5+
"build",
6+
"./src/main.ts",
7+
8+
"--outfile",
9+
"./dist/copilot-api",
10+
11+
"--compile",
12+
"--minify",
13+
])
14+
15+
consola.log(process.output)

0 commit comments

Comments
 (0)