Skip to content

Commit

Permalink
chore: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
2heal1 committed Jan 10, 2025
1 parent b3bc730 commit 8b0da40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/dts-plugin/src/core/lib/DTSManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ class DTSManager {
const filePath = path.join(destinationPath, REMOTE_API_TYPES_FILE_NAME);
fs.writeFileSync(filePath, apiTypeFile);
this.loadedRemoteAPIAlias.add(remoteInfo.alias);
fileLog(`success`, 'downloadAPITypes', 'info');
} catch (err) {
fileLog(
`Unable to download "${remoteInfo.name}" api types, ${err}`,
Expand Down
5 changes: 5 additions & 0 deletions packages/dts-plugin/src/core/lib/archiveHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ export const downloadTypesArchive = (hostOptions: Required<HostOptions>) => {

const zip = new AdmZip(Buffer.from(response.data));
zip.extractAllTo(destinationPath, true);
fileLog(
`zip.extractAllTo success destinationPath: ${destinationPath}; url: ${url}`,
'downloadTypesArchive',
'info',
);
return [destinationFolder, destinationPath];
} catch (error: any) {
fileLog(
Expand Down

0 comments on commit 8b0da40

Please sign in to comment.