From be21f695fba300c4ef32858d5648abdc79609309 Mon Sep 17 00:00:00 2001 From: Sverre <59171289+sverben@users.noreply.github.com> Date: Thu, 2 May 2024 00:40:40 +0200 Subject: [PATCH] fix: longer timeout (#1) --- package.json | 2 +- src/index.ts | 2 +- tsup.config.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e09b275..addd200 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@leaphy-robotics/picotool-wasm", - "version": "1.0.2", + "version": "1.0.3", "main": "dist/index.cjs", "module": "dist/index.mjs", "types": "dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index ab2383f..95364ea 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ export default class PicoTool { module.FS.writeFile('sketch.uf2', sketch) return Promise.race([ - new Promise((_resolve, reject) => setTimeout(() => reject(this.logs), 5000)), + new Promise((_resolve, reject) => setTimeout(() => reject(this.logs), 30000)), new Promise((resolve) => { this.onDone = resolve this.logs = '' diff --git a/tsup.config.ts b/tsup.config.ts index ae2ccca..45af176 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -2,8 +2,8 @@ import { defineConfig } from 'tsup' import replace from 'esbuild-plugin-replace-regex' export default defineConfig({ - target: 'es2020', - format: ['cjs', 'esm'], + target: 'esnext', + format: ['esm'], splitting: false, sourcemap: true, clean: true,