Skip to content

Commit

Permalink
chore: fix preview workflow (#20)
Browse files Browse the repository at this point in the history
* chore: fix preview workflow:

* chore: remove extraneous logs
  • Loading branch information
alexlwn123 authored Sep 18, 2024
1 parent 0f68de2 commit 29ace64
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Install Dependencies
on:
workflow_call:
workflow_dispatch:
description: Sets up pnpm and installs dependencies

runs:
using: 'composite'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: ./.github/actions/install-deps

- name: Build
run: pnpm build:pages
run: pnpm build && pnpm build:pages

- name: Setup Pages
uses: actions/configure-pages@v4
Expand Down
3 changes: 2 additions & 1 deletion packages/core-web/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('rollup').RollupOptions} */
import typescript from '@rollup/plugin-typescript'

import terser from '@rollup/plugin-terser'

export default [
Expand All @@ -12,7 +11,9 @@ export default [
entryFileNames: '[name].js',
chunkFileNames: '[name].js',
assetFileNames: '[name].[ext]',
sourcemap: true,
},
plugins: [typescript(), terser()],
external: ['fedimint-client-wasm'],
},
]
1 change: 0 additions & 1 deletion packages/core-web/src/FedimintWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class FedimintWallet {
return new Promise((resolve, reject) => {
const requestId = this.getNextRequestId()
this.requestCallbacks.set(requestId, (data) => {
console.error('CALLBACK FROM SINGLE', data)
this.requestCallbacks.delete(requestId)
if (data.data) resolve(data.data)
else if (data.error) reject(data.error)
Expand Down
3 changes: 0 additions & 3 deletions packages/core-web/src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ const streamCancelMap = new Map()

const handleFree = (requestId) => {
streamCancelMap.delete(requestId)
console.log('handleFree', requestId)
}

console.warn('WORKER STARTED')
self.onmessage = async (event) => {
const { type, payload, requestId } = event.data

Expand Down Expand Up @@ -71,7 +69,6 @@ self.onmessage = async (event) => {
rpcHandle.cancel()
rpcHandle.free()
streamCancelMap.delete(requestId)
console.log('unsubscribed', requestId)
}
} else {
self.postMessage({
Expand Down

0 comments on commit 29ace64

Please sign in to comment.