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 };