Skip to content

Commit

Permalink
Fix bug when default options are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
javamind committed Mar 1, 2023
1 parent 328c8b9 commit b8b03bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ var DevMindGulpBuilder = /** @class */ (function () {
this.options.metadata.html = givenOptions.metadata.html || defaultOptions.metadata.html;
this.options.metadata.sitemap = givenOptions.metadata.sitemap || defaultOptions.metadata.sitemap;
}
if (givenOptions.dirNames) {
this.options.dirNames = givenOptions.dirNames;
}
}
}
DevMindGulpBuilder.prototype.applyTemplate = function (handlebarsTemplateFile, partials) {
Expand Down
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export class DevMindGulpBuilder {
this.options.metadata.html = givenOptions.metadata.html || defaultOptions.metadata.html;
this.options.metadata.sitemap = givenOptions.metadata.sitemap || defaultOptions.metadata.sitemap;
}
if(givenOptions.dirNames) {
this.options.dirNames = givenOptions.dirNames;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devmind-website",
"version": "2.1.13",
"version": "2.1.14",
"description": "Gulp extensions to generate a website with blog pages written in asciidoc",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b8b03bf

Please sign in to comment.