| | |
| | | |
| | | const buildFromEntry = argv.fastRebuild ? partialRebuildFromEntrypoint : rebuildFromEntrypoint |
| | | watcher |
| | | .on("add", (fp) => buildFromEntry(fp, "add", clientRefresh, buildData)) |
| | | .on("change", (fp) => buildFromEntry(fp, "change", clientRefresh, buildData)) |
| | | .on("unlink", (fp) => buildFromEntry(fp, "delete", clientRefresh, buildData)) |
| | | .on("add", (fp) => buildFromEntry(fp as string, "add", clientRefresh, buildData)) |
| | | .on("change", (fp) => buildFromEntry(fp as string, "change", clientRefresh, buildData)) |
| | | .on("unlink", (fp) => buildFromEntry(fp as string, "delete", clientRefresh, buildData)) |
| | | |
| | | return async () => { |
| | | await watcher.close() |
| | |
| | | } |
| | | |
| | | const buildId = newBuildId() |
| | | ctx.buildId = buildId |
| | | ctx.buildId = buildId |
| | | buildData.lastBuildMs = new Date().getTime() |
| | | const release = await mut.acquire() |
| | | |
| | |
| | | } |
| | | |
| | | const buildId = newBuildId() |
| | | ctx.buildId = buildId |
| | | ctx.buildId = buildId |
| | | buildData.lastBuildMs = new Date().getTime() |
| | | const release = await mut.acquire() |
| | | |