Skip to content

Commit

Permalink
feat: log tsconfig path
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Aug 29, 2022
1 parent 35d9f87 commit c927841
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/build/tasks/dts/dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,15 @@ export interface _DtsTask {
export async function _dtsTask(ctx: _BuildContext, task: _DtsTask): Promise<void> {
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,
Expand Down

0 comments on commit c927841

Please sign in to comment.