()
| 57 | } |
| 58 | |
| 59 | async function prepareBuild() { |
| 60 | if (skipBuild && (await fileExists(desktopOutMain))) return |
| 61 | if (!skipBuild || !(await fileExists(desktopOutMain))) { |
| 62 | console.log('Building @zennotes/desktop (set ZEN_SIDEBAR_VIM_SKIP_BUILD=1 to reuse the current build)…') |
| 63 | await run(npmCommand, ['run', 'build', '--workspace', '@zennotes/desktop']) |
| 64 | } |
| 65 | } |
| 66 | function run(command, args) { |
| 67 | return new Promise((res, rej) => { |
| 68 | const child = spawn(command, args, { cwd: repoRoot, stdio: 'inherit', shell: process.platform === 'win32' }) |
no test coverage detected