Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(logger): remove globalAlwatr
Browse files Browse the repository at this point in the history
BREAKING CHANGE: global Alwatr.registeredList not exist anymore
  • Loading branch information
AliMD committed Oct 23, 2023
1 parent 26313bb commit e7a7236
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 34 deletions.
1 change: 0 additions & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"url": "https://github.com/AliMD/alwatr-eslib/issues"
},
"dependencies": {
"@alwatr/type": "^1.1.4",
"tslib": "^2.6.2"
}
}
21 changes: 0 additions & 21 deletions packages/logger/src/global-alwatr.ts

This file was deleted.

9 changes: 0 additions & 9 deletions packages/logger/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
import {globalAlwatr} from './global-alwatr.js';

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

export {type AlwatrLogger, globalAlwatr};

globalAlwatr.registeredList.push({
name: '@alwatr/logger',
version: _ALWATR_VERSION_,
});

export const NODE_MODE = typeof process !== 'undefined';
export const DEV_MODE = NODE_MODE
? process.env.ALWATR_DEBUG === '1'
Expand Down
4 changes: 1 addition & 3 deletions packages/logger/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,5 @@

"include": ["src/**/*.ts"],
"exclude": [],
"references": [
{"path": "../type"}
]
"references": []
}

0 comments on commit e7a7236

Please sign in to comment.