Skip to content

Commit

Permalink
feat(logger): use alwatr dedupe
Browse files Browse the repository at this point in the history
BREAKING CHANGE: define packages removed and must use @alwatr/dedupe instead
  • Loading branch information
njfamirm authored and alimd committed Jan 3, 2024
1 parent 77fcdf6 commit d89d076
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alwatr Logger - `@alwatr/logger`
# Logger

Fancy colorful console debugger with custom scope written in tiny TypeScript, ES module.

Expand Down
1 change: 1 addition & 0 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"typescript": "^5.3.3"
},
"dependencies": {
"@alwatr/dedupe": "workspace:^",
"@alwatr/platform-info": "workspace:^"
}
}
5 changes: 5 additions & 0 deletions packages/logger/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/// <reference types="@alwatr/nano-build/global.d.ts" />

import {definePackage} from '@alwatr/dedupe';
import {platformInfo} from '@alwatr/platform-info';

import type {AlwatrLogger} from './type.js';

definePackage('@alwatr/dedupe', __package_version__);

export const debugMode = platformInfo.development || platformInfo.isCli
? process.env.DEBUG !== undefined && process.env.DEBUG !== ''
: typeof localStorage !== 'undefined' && localStorage.getItem('debug') === '1';
Expand Down

0 comments on commit d89d076

Please sign in to comment.