Skip to content

Commit 27cea6b

Browse files
committed
feat: build script
1 parent 9770d04 commit 27cea6b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

build.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { $ } from "bun"
2+
3+
await $`tsc`
4+
await $`cp types/index.d.ts dist/index.d.ts`
5+
6+
console.log("Build completed successfully!");

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"main": "dist/index.js",
66
"files": ["dist"],
77
"license": "WTFPL",
8-
"version": "0.0.9",
8+
"version": "0.1.0",
99
"type": "module",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/mikndotdev/next-discord-auth"
1313
},
1414
"homepage": "https://mikn.dev/solutions/developers/next-discord-auth",
1515
"scripts": {
16-
"build": "tsc",
16+
"build": "bun build.ts",
1717
"format": "biome format --write .",
1818
"lint": "biome lint",
1919
"lintfix": "biome lint --fix"

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
"noUnusedLocals": false,
2626
"noUnusedParameters": false,
2727
"noPropertyAccessFromIndexSignature": false
28-
}
28+
},
29+
"include": ["src"],
30+
"exclude": ["build.ts", "dist", "node_modules", "types"]
2931
}

0 commit comments

Comments
 (0)