Skip to content

Commit 508fe60

Browse files
committed
fix(template-helpers): add prefixes to verbose log lines for clarity
1 parent 0c1216b commit 508fe60

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

tools/nevermore-template-helpers/src/build/build-context.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { OutputHelper } from '@quenty/cli-output-helpers';
21
import { execa } from 'execa';
32
import * as fs from 'fs/promises';
43
import * as os from 'os';
54
import * as path from 'path';
5+
import { OutputHelper } from '@quenty/cli-output-helpers';
66

77
export interface RojoBuildOptions {
88
/** Absolute path to the rojo project JSON file */
@@ -138,9 +138,8 @@ export class BuildContext {
138138
}
139139
}
140140

141-
OutputHelper.verbose(`Cleaning up build directory: ${this._targetdir}`);
142-
143141
try {
142+
OutputHelper.verbose(`[Build] Cleaning up build directory: ${this._targetdir}`);
144143
await fs.rm(this._targetdir, { recursive: true, force: true });
145144
} catch {
146145
// best effort

tools/nevermore-template-helpers/src/scaffolding/template-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class TemplateHelper {
8282
} else {
8383
if (!(await existsAsync(newFilePath))) {
8484
await fs.promises.writeFile(newFilePath, result, 'utf8');
85-
OutputHelper.verbose(`Created '${newFilePath}'`);
85+
OutputHelper.verbose(`[Template] Created '${newFilePath}'`);
8686
} else {
8787
OutputHelper.error(
8888
`File already exists ${newFilePath} will not overwrite`

0 commit comments

Comments
 (0)