Skip to content

Commit d710174

Browse files
committed
fix: merge custom entrypoints
1 parent 743e460 commit d710174

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/commandkit/src/cli/build.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,16 @@ export async function buildApplication({
129129
target: 'node16',
130130
outDir: dest,
131131
env: mergeDefinitionsIfNeeded(config.env || {}, !!isDev),
132-
entry: [
133-
'src',
134-
`!${config.distDir}`,
135-
'!.commandkit',
136-
'!**/*.test.*',
137-
'!**/*.spec.*',
138-
],
132+
entry: Array.from(
133+
new Set([
134+
'src',
135+
`!${config.distDir}`,
136+
'!.commandkit',
137+
'!**/*.test.*',
138+
'!**/*.spec.*',
139+
...(config.entrypoints ?? []),
140+
]),
141+
),
139142
unbundle: !!isDev,
140143
} satisfies Options,
141144
config.compilerOptions?.tsdown,

0 commit comments

Comments
 (0)