Skip to content

Commit 14d7788

Browse files
committedFeb 9, 2025··
chore: add type assertion
1 parent 8da4301 commit 14d7788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/commands/build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default defineCommand({
138138
if (!normalizedId.includes(entry.input))
139139
continue
140140

141-
const distFile = await resolvePath(join(dirname(pathToFileURL(normalizedId).href.replace(entry.input, entry.outDir!)), filename(normalizedId)))
141+
const distFile = await resolvePath(join(dirname(pathToFileURL(normalizedId).href.replace(entry.input, entry.outDir!)), filename(normalizedId)!))
142142
if (distFile) {
143143
return {
144144
external: true,

0 commit comments

Comments
 (0)
Please sign in to comment.