diff --git a/index.ts b/index.ts index 9b799e4..6f3b6e4 100644 --- a/index.ts +++ b/index.ts @@ -1,5 +1,5 @@ -import {Level, LevelFilter, type WriterOptions, type Writer} from 'types' -import {Logger, writers, options} from 'logger' +import {Level, LevelFilter, type WriterOptions, Writer} from './src/types' +import {Logger, writers, options} from './src/logger' export default (namespace: string) => new Logger(namespace) -export {Level, LevelFilter, type WriterOptions, type Writer, writers, options} +export {Level, LevelFilter, type WriterOptions, Writer, writers, options} diff --git a/src/color.ts b/src/color.ts index 87a8a9b..2ef8620 100644 --- a/src/color.ts +++ b/src/color.ts @@ -1,5 +1,5 @@ import {Chalk} from 'chalk' -import {Level} from 'types' +import {Level} from './types' const chalk = new Chalk({ level: 2 }) // 256 colors diff --git a/src/logger.ts b/src/logger.ts index a24ab51..8af66ec 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -1,5 +1,5 @@ -import {Level, type Options, type Writer} from 'types' -import {get_color} from 'color' +import {Level, type Options, type Writer} from './types' +import {get_color} from './color' export const writers = new Map export let options: Options = { diff --git a/tsconfig.json b/tsconfig.json index 14e2c2d..641fe4a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,5 @@ { "compilerOptions": { - "baseUrl": "./src", - // Enable latest features "lib": ["ESNext","dom"], "target": "ESNext",