Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Timeless0911 committed Aug 8, 2024
1 parent 32e71c7 commit 496870f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/plugin-dts/src/apiExtractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@ export async function bundleDts(options: BundleOptions): Promise<void> {
cwd,
outDir,
dtsExtension,
dtsEntry,
dtsEntry = {
name: 'index',
path: 'index.d.ts',
},
tsconfigPath = 'tsconfig.json',
} = options;
try {
const start = Date.now();
const untrimmedFilePath = join(
cwd,
relative(cwd, outDir),
`${dtsEntry.name ?? 'index'}${dtsExtension}`,
`${dtsEntry.name}${dtsExtension}`,
);
const mainEntryPointFilePath = dtsEntry.path ?? 'index.d.ts';
const mainEntryPointFilePath = dtsEntry.path;
const internalConfig = {
mainEntryPointFilePath,
// TODO: use !externals
Expand Down

0 comments on commit 496870f

Please sign in to comment.