Skip to content

Commit

Permalink
remove prepare from wr and gui and build them sep
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Dec 17, 2024
1 parent 4f2b294 commit 7d0b0de
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ jobs:
version: 9

- name: Install
run: pnpm install --frozen-lockfile --ignore-scripts
run: pnpm install --frozen-lockfile

- name: Build All Packages
run: pnpm -r run build
- name: Build Worker Relay
run: pnpm --filter @nostrwatch/worker-relay build

- name: Build GUI
run: pnpm --filter @nostrwatch/gui

- name: Check Artifact Size
run: du -sh libraries/**/dist internal/**/dist apps/gui/dist
Expand Down
3 changes: 1 addition & 2 deletions apps/gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest run",
"lint": "prettier --check .",
"format": "prettier --write .",
"prepare": "pnpm run build "
"format": "prettier --write ."
},
"exports": {
".": {
Expand Down
3 changes: 1 addition & 2 deletions libraries/worker-relay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"scripts": {
"build": "rm -rf dist && tsc && pnpm run copy:wasm && pnpm run build:esm",
"build:esm": "esbuild src/worker.ts --bundle --minify --sourcemap --outdir=dist/esm --format=esm --out-extension:.js=.mjs --loader:.wasm=copy --watch",
"copy:wasm": "cp src/sqlite/sqlite3.wasm dist/sqlite/sqlite3.wasm",
"prepare": "pnpm run build"
"copy:wasm": "cp src/sqlite/sqlite3.wasm dist/sqlite/sqlite3.wasm"
},
"files": [
"src",
Expand Down

0 comments on commit 7d0b0de

Please sign in to comment.