Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
* fix: minor issue with possible ignored/overridden `writeFiles` default
* fix: test coverage of optional chainings
  • Loading branch information
vHeemstra committed Aug 1, 2023
1 parent 13e3a91 commit 524e014
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ export const sanitizeAndStandardizeOptionsInput = (
*
* @return {object}
*/
export default (options: Options): PreparedOptions => {
export default (
options: Options,
defaultWriteFiles = true
): PreparedOptions => {
// Validate/check options
options = validateOptionsInput(options);

Expand All @@ -225,7 +228,7 @@ export default (options: Options): PreparedOptions => {

// Output-related
returnPOT: false,
writeFiles: true,
writeFiles: Boolean(defaultWriteFiles),
destDir: '',
logResults: false,

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"moduleResolution": "NodeNext",
"lib": ["ES2021.String"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
"esModuleInterop": true,
"target": "ES2020"
}
}

0 comments on commit 524e014

Please sign in to comment.