Skip to content

Commit 103e08b

Browse files
committed
feat: add build:done hook to log context and package bin files
1 parent dc8bfa9 commit 103e08b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tsdown.config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,13 @@ export default defineConfig({
99
target: 'node18',
1010
dts: true,
1111
unbundle: true,
12-
sourcemap: false
12+
sourcemap: false,
13+
14+
hooks: {
15+
'build:done': (ctx) => {
16+
const pkg = ctx.options.pkg
17+
const binFilesList = pkg.bin
18+
console.log(ctx)
19+
}
20+
}
1321
})

0 commit comments

Comments
 (0)