We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3892584 commit 05d289aCopy full SHA for 05d289a
packages/plugin-dts/src/utils.ts
@@ -52,19 +52,22 @@ export async function emptyDir(dir: string): Promise<void> {
52
53
try {
54
for (const file of await fs.promises.readdir(dir)) {
55
+ console.log('file: ', file);
56
await fs.promises.rm(path.resolve(dir, file), {
57
recursive: true,
58
force: true,
59
});
60
}
61
} catch (err) {
62
+ console.log('err: ', err);
63
logger.debug(`Failed to empty dir: ${dir}`);
64
logger.debug(err);
65
66
67
68
export async function clearTempDeclarationDir(cwd: string): Promise<void> {
69
const dirPath = path.join(cwd, TEMP_DTS_DIR);
70
+ console.log('dirPath: ', dirPath);
71
72
await emptyDir(dirPath);
73
0 commit comments