From e156a46833d7bf272751d39adfd28052f0eaa29f Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Wed, 16 Mar 2022 22:50:45 +0100 Subject: [PATCH] Fix build on win --- scripts/note-editor.js | 3 ++- scripts/pdf-reader.js | 3 ++- scripts/pdf-worker.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/note-editor.js b/scripts/note-editor.js index 5a7351b3ad..e64d6993d8 100644 --- a/scripts/note-editor.js +++ b/scripts/note-editor.js @@ -28,7 +28,8 @@ async function getZoteroNoteEditor(signatures) { ); } catch (e) { - await exec('npm ci;npm run build', { cwd: 'note-editor' }); + await exec('npm ci', { cwd: 'note-editor' }); + await exec('npm run build', { cwd: 'note-editor' }); await fs.copy('note-editor/build/zotero', targetDir); } signatures['note-editor'] = { hash }; diff --git a/scripts/pdf-reader.js b/scripts/pdf-reader.js index 957a708d3a..9c8fbb2c21 100644 --- a/scripts/pdf-reader.js +++ b/scripts/pdf-reader.js @@ -28,7 +28,8 @@ async function getPDFReader(signatures) { ); } catch (e) { - await exec('npm ci;npm run build', { cwd: 'pdf-reader' }); + await exec('npm ci', { cwd: 'pdf-reader' }); + await exec('npm run build', { cwd: 'pdf-reader' }); await fs.copy('pdf-reader/build/zotero', targetDir); } signatures['pdf-reader'] = { hash }; diff --git a/scripts/pdf-worker.js b/scripts/pdf-worker.js index fa37ab97cc..2576273368 100644 --- a/scripts/pdf-worker.js +++ b/scripts/pdf-worker.js @@ -27,7 +27,8 @@ async function getPDFWorker(signatures) { ); } catch (e) { - await exec('npm ci;npm run build', { cwd: 'pdf-worker' }); + await exec('npm ci', { cwd: 'pdf-worker' }); + await exec('npm run build', { cwd: 'pdf-worker' }); await fs.copy('pdf-worker/build/worker.js', targetDir + 'worker.js'); } signatures['pdf-worker'] = { hash };