From c927841da53c250d93a6d5c10a23d087316e40bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marius=20Lundga=CC=8Ard?= Date: Mon, 29 Aug 2022 14:07:42 +0200 Subject: [PATCH] feat: log tsconfig path --- src/build/tasks/dts/dts.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/build/tasks/dts/dts.ts b/src/build/tasks/dts/dts.ts index d717e04a..8bd647e4 100644 --- a/src/build/tasks/dts/dts.ts +++ b/src/build/tasks/dts/dts.ts @@ -27,16 +27,15 @@ export interface _DtsTask { export async function _dtsTask(ctx: _BuildContext, task: _DtsTask): Promise { const {cwd, dist, files, tsconfig} = ctx const exportPath = task.exportPath === '.' ? './index' : task.exportPath + const distPath = path.resolve(cwd, dist) + const tmpPath = path.resolve(cwd, dist, 'tmp') + const tsconfigPath = path.resolve(cwd, tsconfig || 'tsconfig.json') console.log('=================================================================================') console.log(chalk.gray('task '), 'd.ts') console.log(chalk.gray('source '), path.join('', task.source)) console.log(chalk.gray('export '), path.join(dist, `${exportPath}.d.ts`)) - - const distPath = path.resolve(cwd, dist) - const tmpPath = path.resolve(cwd, dist, 'tmp') - - const tsconfigPath = path.resolve(cwd, tsconfig || 'tsconfig.json') + console.log(chalk.gray('tsconfig '), path.relative(cwd, tsconfigPath)) const types = await _buildTypes({ cwd,