Skip to content

Commit 6fa9b02

Browse files
authored
Merge pull request #32 from tsedio/fix-default-configuration
fix: fix default configuration values
2 parents ed03f8a + 4510ead commit 6fa9b02

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/ts-doc/src/context/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = {
104104
},
105105

106106
set(obj) {
107-
this.settings = obj;
107+
Object.assign(this.settings, obj);
108108
},
109109

110110
readPkg() {

packages/ts-doc/src/models/DocFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class DocFile {
7070
return mapExported.get(file);
7171
}
7272
} catch (er) {
73-
logger.error("Fail to import module", {file, modulePath});
73+
logger.error("Fail to import module", {file, modulePath, error: er});
7474
}
7575
return undefined;
7676
}

packages/ts-doc/src/tasks/build-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
context.set(config);
1414
return Promise.resolve()
1515
.then(() => context.readPkg())
16-
.then(() => scanComponents(config.templatesDir))
16+
.then(() => scanComponents(context.templatesDir))
1717
.then(() => scanFiles(context.scanPatterns))
1818
.then(() => {
1919
let symbols = 0;

0 commit comments

Comments
 (0)