summaryrefslogtreecommitdiff
path: root/packages/cli/src/utils/updateEventEmitter.ts
diff options
context:
space:
mode:
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();