Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/svelte-check/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ function instantiateWriter(opts: SvelteCheckCliOptions): Writer {
return new HumanFriendlyWriter(
process.stdout,
opts.outputFormat === 'human-verbose',
opts.watch,
filter
);
} else {
Expand Down
6 changes: 5 additions & 1 deletion packages/svelte-check/src/writers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class HumanFriendlyWriter implements Writer {
constructor(
private stream: Writable,
private isVerbose = true,
private isWatchMode = false,
private diagnosticFilter: DiagnosticFilter = DEFAULT_FILTER
) {}

Expand All @@ -37,10 +38,10 @@ export class HumanFriendlyWriter implements Writer {

if (this.isVerbose) {
this.stream.write('\n');
this.stream.write('====================================\n');
this.stream.write(`Loading svelte-check in workspace: ${workspaceDir}`);
this.stream.write('\n');
this.stream.write('Getting Svelte diagnostics...\n');
this.stream.write('====================================\n');
this.stream.write('\n');
}
}
Expand Down Expand Up @@ -120,6 +121,9 @@ export class HumanFriendlyWriter implements Writer {
} else {
this.stream.write(chalk.green(message));
}
if (this.isWatchMode) {
this.stream.write('Watching for file changes...');
}
}

failure(err: Error) {
Expand Down