Skip to content

Commit

Permalink
!cleanup: Refactored exports
Browse files Browse the repository at this point in the history
  • Loading branch information
SwanX1 committed Dec 1, 2022
1 parent 463c98d commit cf49b43
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "logerian",
"description": "Logerian is a quick and dirty logging utility.",
"version": "2.1.1",
"version": "3.0.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"esnext": "src/index.ts",
Expand Down
15 changes: 12 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
export { addLoggerLevel, LoggerLevel, LoggerLevelData } from './level';
export { Logger, LoggerOptions, LoggerStream } from './logger';
export { coloredLog, stripANSIFormatting } from './util';
import { addLoggerLevel, LoggerLevel, LoggerLevelData } from './level';
import { Logger, LoggerOptions, LoggerStream } from './logger';
import { PinnedLine } from './pinnedline';
import { coloredLog, stripANSIFormatting } from './util';

const util = {
addLoggerLevel,
coloredLog,
stripANSIFormatting,
};

export { Logger, LoggerOptions, LoggerStream, LoggerLevel, LoggerLevelData, PinnedLine, util };

0 comments on commit cf49b43

Please sign in to comment.