MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / prepareBuild

Function prepareBuild

tooling/scripts/sidebar-vim-smoke.mjs:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59async 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}
66function run(command, args) {
67 return new Promise((res, rej) => {
68 const child = spawn(command, args, { cwd: repoRoot, stdio: 'inherit', shell: process.platform === 'win32' })

Callers 1

mainFunction · 0.85

Calls 2

fileExistsFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected