diff --git a/packages/config/src/index.ts b/packages/config/src/index.ts index 035c86d9..47b5ac84 100644 --- a/packages/config/src/index.ts +++ b/packages/config/src/index.ts @@ -1,6 +1,6 @@ import { parse } from 'toml' import { readFileSync } from 'fs' -import type { Config } from './types' +import type { Config } from './types.ts' export const loadConfig = (path: string = './config.toml'): Config => { const config = parse(readFileSync(path, 'utf-8')) @@ -25,4 +25,4 @@ export const getBaseUrl = (config: Config) => { return `http://${rawAddr}` } -export * from './types' +export * from './types.ts' diff --git a/packages/config/tsconfig.json b/packages/config/tsconfig.json index 5237a457..94111105 100644 --- a/packages/config/tsconfig.json +++ b/packages/config/tsconfig.json @@ -4,6 +4,8 @@ "module": "ESNext", "lib": ["ES2022"], "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "noEmit": true, "strict": true, "esModuleInterop": true, "skipLibCheck": true,