Skip to content

Commit 5fe9eec

Browse files
committed
chore: remove console statements
1 parent 9a9c945 commit 5fe9eec

12 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/scripts/lib.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export async function getLatestPublishedVersion({ github }) {
3838
);
3939
}
4040
}
41+
// eslint-disable-next-line no-console
4142
console.log(`Found latest published version: ${packageVersion}`);
4243
return packageVersion;
4344
}

apps/api/scripts/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env tsx
22

3+
/* eslint-disable no-console */
4+
35
import fs from 'fs/promises';
46
import module from 'module';
57
import path from 'path';

apps/api/src/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ async function bootstrap() {
1818
const configurationService = app.get(ConfigurationService);
1919
const logLevels: LogLevel[] = ['error', 'fatal', 'log', 'warn'];
2020
if (configurationService.get('DEBUG')) {
21+
// eslint-disable-next-line no-console
2122
console.log("Enabled 'debug' logs");
2223
logLevels.push('debug');
2324
}
2425
if (configurationService.get('VERBOSE')) {
26+
// eslint-disable-next-line no-console
2527
console.log("Enabled 'verbose' logs");
2628
logLevels.push('verbose');
2729
}
@@ -43,6 +45,7 @@ async function bootstrap() {
4345

4446
await app.listen(port);
4547

48+
// eslint-disable-next-line no-console
4649
console.log(`Application is running on: ${await app.getUrl()}`);
4750
}
4851

apps/gateway/scripts/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ await esbuild.build({
3535
tsconfig
3636
});
3737

38+
// eslint-disable-next-line no-console
3839
console.log('Done!');

apps/gateway/scripts/dev.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env tsx
22

3+
/* eslint-disable no-console */
4+
35
import fs from 'fs';
46
import module from 'module';
57
import path from 'path';

apps/gateway/src/server/server.base.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export abstract class BaseServer {
7575

7676
listen(port = config.port) {
7777
return this.app.listen(port, () => {
78+
// eslint-disable-next-line no-console
7879
console.log(`Server started at http://localhost:${port}`);
7980
});
8081
}

apps/web/vite.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import tailwindcss from 'tailwindcss';
99
import { defineConfig } from 'vite';
1010
import viteCompression from 'vite-plugin-compression';
1111

12-
console.log(await getReleaseInfo());
1312
export default defineConfig({
1413
build: {
1514
chunkSizeWarningLimit: 1000,

packages/instrument-bundler/src/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const options = program.opts();
3737
const logger = Object.create(console) as { verbose: (message: string) => void } & Console;
3838
logger.verbose = (message: string) => {
3939
if (options.verbose) {
40+
// eslint-disable-next-line no-console
4041
console.log(message);
4142
}
4243
};

packages/instrument-library/scripts/available.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env tsx
22

3+
/* eslint-disable no-console */
4+
35
import fs from 'fs/promises';
46
import path from 'path';
57

packages/runtime-bundler/src/bundler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class Bundler {
1212
private logger = {
1313
verbose: (message: string) => {
1414
if (this.options.verbose) {
15+
// eslint-disable-next-line no-console
1516
console.log(message);
1617
}
1718
}

0 commit comments

Comments
 (0)