mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 21:59:38 +01:00
fix(dev): rebuild runner before server startup
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
2fe9fdd5a2
commit
baf49f5e97
1 file changed
+17
@@ -496,6 +496,22 @@ async function buildPluginSdk() {
|
||||
}
|
||||
}
|
||||
|
||||
async function buildPaperclipRunner() {
|
||||
console.log("[paperclip] building paperclip runner...");
|
||||
const result = await runPnpm(
|
||||
["--filter", "@paperclipai/paperclip-runner", "build:typescript"],
|
||||
{ stdio: "inherit" },
|
||||
);
|
||||
if (result.signal) {
|
||||
exitForSignal(result.signal);
|
||||
return;
|
||||
}
|
||||
if (result.code !== 0) {
|
||||
console.error("[paperclip] paperclip runner build failed");
|
||||
process.exit(result.code);
|
||||
}
|
||||
}
|
||||
|
||||
async function markChildAsCurrent() {
|
||||
previousSnapshot = collectWatchedSnapshot();
|
||||
dirtyPaths = new Set();
|
||||
@@ -558,6 +574,7 @@ async function stopChildForRestart() {
|
||||
}
|
||||
|
||||
async function startServerChild() {
|
||||
await buildPaperclipRunner();
|
||||
await buildPluginSdk();
|
||||
|
||||
const serverScript = mode === "watch" ? "dev:watch" : "dev";
|
||||
|
||||
Reference in new issue
Block a user