Skip to content

Commit

Permalink
don't fail if uncheckedindexed.d.ts doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 committed Feb 4, 2024
1 parent 36b3650 commit b1715e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/toolkit/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ export default defineConfig((options) => {
} else if (generateTypedefs) {
if (folder === '') {
// we need to delete the declaration file and replace it with the original source file
fs.rmSync(path.join(outputFolder, 'uncheckedindexed.d.ts'))
fs.rmSync(path.join(outputFolder, 'uncheckedindexed.d.ts'), {
force: true,
})

fs.copyFileSync(
'src/uncheckedindexed.ts',
Expand Down

0 comments on commit b1715e8

Please sign in to comment.