File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change
1
+ import dts from 'bun-plugin-dts-auto'
2
+
3
+ // eslint-disable-next-line no-console
4
+ console . log ( 'Building...' )
5
+
1
6
await Bun . build ( {
2
7
entrypoints : [
3
- 'src/index.ts' ,
8
+ './ src/index.ts' ,
4
9
] ,
5
-
6
10
outdir : './dist' ,
11
+ target : 'bun' ,
7
12
8
- // plugins: [
9
- // dts(),
10
- // ],
13
+ plugins : [
14
+ dts ( ) ,
15
+ ] ,
11
16
} )
17
+
18
+ // eslint-disable-next-line no-console
19
+ console . log ( 'Built!' )
Original file line number Diff line number Diff line change 41
41
" src"
42
42
],
43
43
"scripts" : {
44
- "build" : " bun --bun build.ts" ,
44
+ "build" : " bun build.ts" ,
45
45
"lint" : " bunx eslint ." ,
46
46
"lint:fix" : " bunx eslint . --fix" ,
47
47
"fresh" : " bunx rimraf node_modules/ bun.lock && bun i" ,
48
48
"commit" : " git cz" ,
49
49
"changelog" : " bunx changelogen --output CHANGELOG.md" ,
50
- "prepublishOnly" : " bun --bun run build" ,
50
+ "prepublishOnly" : " bun run build" ,
51
51
"release" : " bun run changelog && bunx bumpp package.json --all" ,
52
52
"test" : " bun test" ,
53
53
"typecheck" : " tsc --noEmit"
57
57
"@stacksjs/eslint-config" : " ^0.58.73" ,
58
58
"@types/bun" : " ^1.0.6" ,
59
59
"@types/node" : " ^20.11.19" ,
60
+ "bun-plugin-dts-auto" : " ^0.4.1" ,
60
61
"changelogen" : " ^0.5.5" ,
61
62
"commitizen" : " ^4.3.0" ,
62
63
"cz-git" : " ^1.8.0" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import process from 'node:process'
2
2
import { plugin } from 'bun'
3
3
4
4
await plugin ( {
5
- name : 'ENV' ,
5
+ name : 'bun-plugin-env' ,
6
+
6
7
async setup ( build ) {
7
8
( await import ( 'dotenv' ) ) . config ( )
8
9
You can’t perform that action at this time.
0 commit comments