Skip to content

Commit

Permalink
Merge pull request #32 from tsedio/fix-default-configuration
Browse files Browse the repository at this point in the history
fix: fix default configuration values
  • Loading branch information
Romakita authored Oct 28, 2024
2 parents ed03f8a + 4510ead commit 6fa9b02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ts-doc/src/context/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ module.exports = {
},

set(obj) {
this.settings = obj;
Object.assign(this.settings, obj);
},

readPkg() {
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-doc/src/models/DocFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class DocFile {
return mapExported.get(file);
}
} catch (er) {
logger.error("Fail to import module", {file, modulePath});
logger.error("Fail to import module", {file, modulePath, error: er});
}
return undefined;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-doc/src/tasks/build-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
context.set(config);
return Promise.resolve()
.then(() => context.readPkg())
.then(() => scanComponents(config.templatesDir))
.then(() => scanComponents(context.templatesDir))
.then(() => scanFiles(context.scanPatterns))
.then(() => {
let symbols = 0;
Expand Down

0 comments on commit 6fa9b02

Please sign in to comment.