Skip to content

Commit b1715e8

Browse files
committed
don't fail if uncheckedindexed.d.ts doesn't exist
1 parent 36b3650 commit b1715e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/toolkit/tsup.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ export default defineConfig((options) => {
214214
} else if (generateTypedefs) {
215215
if (folder === '') {
216216
// we need to delete the declaration file and replace it with the original source file
217-
fs.rmSync(path.join(outputFolder, 'uncheckedindexed.d.ts'))
217+
fs.rmSync(path.join(outputFolder, 'uncheckedindexed.d.ts'), {
218+
force: true,
219+
})
218220

219221
fs.copyFileSync(
220222
'src/uncheckedindexed.ts',

0 commit comments

Comments
 (0)