From 91d796788d5e7bf54093a45458c0bfccddd364b5 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 6 May 2025 16:58:57 -0700 Subject: [PATCH 1/2] chore: :technologist: add "reg" scope to conventional commits --- .vscode/settings.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 7fe747a2c..db2967d2e 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -50,6 +50,6 @@ "conventionalCommits.showNewVersionNotes": false, "conventionalCommits.promptBody": false, "conventionalCommits.promptFooter": false, - "conventionalCommits.promptScopes": false, - "conventionalCommits.scopes": [] + "conventionalCommits.promptScopes": true, + "conventionalCommits.scopes": ["reg"] } From f60fd1c6188567c67d3d8285fd6c2c5d6acc5bfa Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 6 May 2025 16:59:24 -0700 Subject: [PATCH 2/2] fix(reg): :ambulance: remove log except when in NODE_ENV === "test" --- core/util/logger.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/util/logger.ts b/core/util/logger.ts index faaa05a43..ebd21199c 100644 --- a/core/util/logger.ts +++ b/core/util/logger.ts @@ -7,7 +7,9 @@ export const logger = winston.createLogger({ format: winston.format.json(), transports: [ // Write all logs with importance level of `info` or higher to `info.log` - new winston.transports.File({ filename: "e2e.log", level: "info" }), + ...(process.env.NODE_ENV === "test" + ? [new winston.transports.File({ filename: "e2e.log", level: "info" })] + : []), // Normal console.log behavior new winston.transports.Console(), ],