diff --git a/packages/logger/package.json b/packages/logger/package.json index 879d762..445f971 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -11,9 +11,9 @@ "esm", "alwatr" ], - "main": "logger.js", + "main": "index.js", "type": "module", - "types": "logger.d.ts", + "types": "index.d.ts", "author": "S. Ali Mihandoost (https://ali.mihandoost.com)", "license": "MIT", "files": [ diff --git a/packages/logger/src/index.ts b/packages/logger/src/index.ts new file mode 100644 index 0000000..444d28b --- /dev/null +++ b/packages/logger/src/index.ts @@ -0,0 +1,3 @@ +export * from './logger.js' +export * from './define-package.js' +export type * from './type.js' diff --git a/packages/logger/src/type.ts b/packages/logger/src/type.ts index 0ce97a5..fd3464a 100644 --- a/packages/logger/src/type.ts +++ b/packages/logger/src/type.ts @@ -1,10 +1,9 @@ -/* eslint-disable no-var */ - export interface GlobalAlwatr { packages: Record; } declare global { + // eslint-disable-next-line no-var var Alwatr: GlobalAlwatr; }