From b1715e8bcf7ba63202759b6992a9b2b0801c884a Mon Sep 17 00:00:00 2001 From: EskiMojo14 Date: Sun, 4 Feb 2024 22:35:52 +0000 Subject: [PATCH] don't fail if uncheckedindexed.d.ts doesn't exist --- packages/toolkit/tsup.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/toolkit/tsup.config.ts b/packages/toolkit/tsup.config.ts index a2726e030a..9de7f7eb95 100644 --- a/packages/toolkit/tsup.config.ts +++ b/packages/toolkit/tsup.config.ts @@ -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',