summaryrefslogtreecommitdiff
path: root/packages/cli/src/utils/updateEventEmitter.ts
diff options
context:
space:
mode:
authorGal Zahavi <[email protected]>2025-07-28 17:56:52 -0700
committerGitHub <[email protected]>2025-07-29 00:56:52 +0000
commit871e0dfab811192f67cd80bc270580ad784ffdc8 (patch)
treebcb8de6af3a2e52a7d7597e5b28465c35b87f60a /packages/cli/src/utils/updateEventEmitter.ts
parent83c4dddb7ee7ba34d7dec09d00819972d2e1ff5f (diff)
feat: Add auto update functionality (#4686)
Diffstat (limited to 'packages/cli/src/utils/updateEventEmitter.ts')
-rw-r--r--packages/cli/src/utils/updateEventEmitter.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/cli/src/utils/updateEventEmitter.ts b/packages/cli/src/utils/updateEventEmitter.ts
new file mode 100644
index 00000000..a60ef039
--- /dev/null
+++ b/packages/cli/src/utils/updateEventEmitter.ts
@@ -0,0 +1,13 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import { EventEmitter } from 'events';
+
+/**
+ * A shared event emitter for application-wide communication
+ * between decoupled parts of the CLI.
+ */
+export const updateEventEmitter = new EventEmitter();