Skip to content

Commit

Permalink
Enable strict mode in core-event
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikearaya committed Oct 28, 2023
1 parent b70bd52 commit 59cc8f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/events/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../shared/base.tsconfig.json",
"compilerOptions": {
"strict": true,
"rootDir": "src",
"outDir": "lib",
},
Expand Down
7 changes: 1 addition & 6 deletions packages/logger/src/createLogger.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import { createRequire } from 'module';
import { createLogger as createWinstonLogger, format, transports } from 'winston';
import TransportStream from 'winston-transport';
import { LogLevel } from './logger.types.js';
import { LogLevel, SupportedLogFormats } from './logger.types.js';

const require = createRequire(import.meta.url);
const { stringify } = require('safe-stable-stringify');

enum SupportedLogFormats {
'unchained',
'json',
}

const {
DEBUG = '',
LOG_LEVEL = LogLevel.Info,
Expand Down
5 changes: 5 additions & 0 deletions packages/logger/src/logger.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ export interface LogOptions extends LoggerOptions {
level?: LogLevel;
[x: string]: any;
}

export enum SupportedLogFormats {
'unchained',
'json',
}

0 comments on commit 59cc8f3

Please sign in to comment.