diff --git a/change/apibara-935efd34-b737-4496-a67f-450a4f7caa7f.json b/change/apibara-935efd34-b737-4496-a67f-450a4f7caa7f.json new file mode 100644 index 00000000..146a0976 --- /dev/null +++ b/change/apibara-935efd34-b737-4496-a67f-450a4f7caa7f.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "cli: fix live reload when indexer errors", + "packageName": "apibara", + "email": "jadejajaipal5@gmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/cli/src/cli/commands/dev.ts b/packages/cli/src/cli/commands/dev.ts index 2ef0db41..877f66d5 100644 --- a/packages/cli/src/cli/commands/dev.ts +++ b/packages/cli/src/cli/commands/dev.ts @@ -138,6 +138,7 @@ export default defineCommand({ }); childProcess.on("close", (code, signal) => { + childProcess = undefined; console.log(); apibara.logger.log( `Indexers process exited${