Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use better typings of consola once they are fixed #63
- Loading branch information
Showing
11 changed files
with
1,008 additions
and
1,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
"simplegit", | ||
"lcov", | ||
"toolbelt", | ||
"Conosla", | ||
"packument" | ||
], | ||
"ignorePaths": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,5 @@ typings/ | |
# stryker temp files | ||
.stryker-tmp | ||
/reports | ||
!@types/** | ||
!/tools | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { LogLevel as ConsolaLogLevel } from 'consola'; | ||
import { LogLevel } from '../interfaces/ILogger'; | ||
|
||
const logLevelMap = { | ||
[LogLevel.ERROR]: ConsolaLogLevel.Error, | ||
[LogLevel.WARN]: ConsolaLogLevel.Warn, | ||
[LogLevel.LOG]: ConsolaLogLevel.Log, | ||
[LogLevel.INFO]: ConsolaLogLevel.Info, | ||
[LogLevel.DEBUG]: ConsolaLogLevel.Debug, | ||
[LogLevel.TRACE]: ConsolaLogLevel.Trace, | ||
}; | ||
|
||
export const getConoslaLogLevel = (level: LogLevel): ConsolaLogLevel => logLevelMap[level]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
"declaration": true, | ||
"outDir": "dist" | ||
}, | ||
"include": ["src", "@types/**/*.d.ts"] | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.