Skip to content

Commit 69c1899

Browse files
committed
chore: log stack
1 parent 8fb3827 commit 69c1899

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/dts-plugin/src/core/lib/DTSManager.advance.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ describe('DTSManager advance usage', () => {
7575
} catch (err) {
7676
console.log('generateTypes failed');
7777
console.error(err);
78+
console.log(err.stack);
7879
}
7980

8081
const apiFile = `${distFolder}.d.ts`;

packages/dts-plugin/src/core/lib/typeScriptCompiler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ export const compileTs = async (
206206

207207
await rm(tempTsConfigJsonPath);
208208
} catch (err) {
209+
if (isDebugMode()) {
210+
console.log('tsconfig: ', JSON.stringify(tsConfig, null, 2));
211+
}
209212
throw err;
210213
}
211214
};

0 commit comments

Comments
 (0)