File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { log } from '@stacksjs/cli'
2
-
3
- // import { $ } from 'bun'
2
+ import { generateDeclarationsFromFiles } from './src/generate'
4
3
5
4
log . info ( 'Building...' )
6
5
@@ -11,13 +10,11 @@ await Bun.build({
11
10
target : 'bun' ,
12
11
} )
13
12
14
- // tigger dts generation here
15
-
16
- // await $`cp ./dist/src/index.js ./dist/index.js`
17
- // await $`rm -rf ./dist/src`
18
- // await $`cp ./dist/bin/cli.js ./dist/cli.js`
19
- // await $`rm -rf ./dist/bin`
20
- // await $`cp ./bin/cli.d.ts ./dist/cli.d.ts`
21
- // await $`rm ./bin/cli.d.ts`
13
+ try {
14
+ await generateDeclarationsFromFiles ( )
15
+ console . log ( 'Generated declarations' )
16
+ } catch ( error ) {
17
+ console . error ( 'Error generating declarations:' , error )
18
+ }
22
19
23
20
log . success ( 'Built' )
You can’t perform that action at this time.
0 commit comments