Skip to content
This repository was archived by the owner on Mar 1, 2026. It is now read-only.

Commit 92814ca

Browse files
committed
fix(cli): typo, unused double array from
1 parent 469cb26 commit 92814ca

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/cli/src/actions/generate.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export async function run(options: Options) {
8282

8383
if (newModelPaths.length) {
8484
if (logsEnabled) {
85-
const logPaths = [...newModelPaths].map((at) => `- ${at}`).join('\n');
85+
const logPaths = newModelPaths.map((at) => `- ${at}`).join('\n');
8686
console.log(`Added file(s) to watch:\n${logPaths}`);
8787
}
8888

@@ -92,12 +92,12 @@ export async function run(options: Options) {
9292

9393
if (removeModelPaths.length) {
9494
if (logsEnabled) {
95-
const logPaths = [...removeModelPaths].map((at) => `- ${at}`).join('\n');
96-
console.log(`Added file(s) to watch:\n${logPaths}`);
95+
const logPaths = removeModelPaths.map((at) => `- ${at}`).join('\n');
96+
console.log(`Removed file(s) from watch:\n${logPaths}`);
9797
}
9898

99-
removeModelPaths.forEach((at) => watchedPaths.add(at));
100-
watcher.add(removeModelPaths);
99+
removeModelPaths.forEach((at) => watchedPaths.delete(at));
100+
watcher.unwatch(removeModelPaths);
101101
}
102102
} catch (e) {
103103
console.error(e);

0 commit comments

Comments
 (0)