Skip to content

Commit 427b60f

Browse files
fix: make clean Windows builds resolve esbuild
1 parent 2f4661a commit 427b60f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/windows/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"scripts": {
99
"dev": "vite --host 127.0.0.1 --port 5173",
1010
"dev:desktop": "concurrently -k \"npm run dev\" \"wait-on http://127.0.0.1:5173 && npm run build:electron && set MATHNOTES_DEV_SERVER=http://127.0.0.1:5173&& electron electron-dist/main.cjs\"",
11-
"build:electron": "npm run build --workspace @mathnotes/shared && npm run build --workspace @mathnotes/core-server && esbuild electron/main.ts electron/preload.ts --bundle --platform=node --format=cjs --outdir=electron-dist --out-extension:.js=.cjs --external:electron --external:pdfjs-dist/*",
11+
"build:electron": "npm run build --workspace @mathnotes/shared && npm run build --workspace @mathnotes/core-server && npm exec -- esbuild electron/main.ts electron/preload.ts --bundle --platform=node --format=cjs --outdir=electron-dist --out-extension:.js=.cjs --external:electron --external:pdfjs-dist/*",
1212
"build": "tsc -b && npm run build:electron && vite build",
1313
"test": "vitest run"
1414
},

packages/core-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"scripts": {
3131
"build": "tsc -p tsconfig.json && npm run build:headless",
32-
"build:headless": "esbuild src/headless/networkNodeCli.ts --bundle --platform=node --format=cjs --outfile=dist/headless/networkNodeCli.cjs",
32+
"build:headless": "npm exec -- esbuild src/headless/networkNodeCli.ts --bundle --platform=node --format=cjs --outfile=dist/headless/networkNodeCli.cjs",
3333
"test": "vitest run"
3434
},
3535
"dependencies": {

0 commit comments

Comments
 (0)