Skip to content

Commit

Permalink
fix: longer timeout (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sverben authored May 1, 2024
1 parent 32e7401 commit be21f69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class PicoTool {
module.FS.writeFile('sketch.uf2', sketch)

return Promise.race([
new Promise<void>((_resolve, reject) => setTimeout(() => reject(this.logs), 5000)),
new Promise<void>((_resolve, reject) => setTimeout(() => reject(this.logs), 30000)),
new Promise<void>((resolve) => {
this.onDone = resolve
this.logs = ''
Expand Down
4 changes: 2 additions & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit be21f69

Please sign in to comment.