Skip to content

Commit

Permalink
Merge pull request #108 from vHeemstra/dev
Browse files Browse the repository at this point in the history
patch
  • Loading branch information
vHeemstra authored Aug 1, 2023
2 parents faa1ad3 + 524e014 commit f99f76f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if (options.poSources) {
// NOTE: For all glob searches, options.srcGlobOptions will be used.
```

For actual source code, see [**`getPOFilepaths()`**](https://github.com/vHeemstra/fill-pot-po/blob/main/src/shared.js#L50) in **src/shared.js**.
For actual source code, see [**`getPOFilepaths()`**](https://github.com/vHeemstra/fill-pot-po/blob/main/src/shared.ts#L134) in **src/shared.js**.

See also options [`poSources`](#posources), [`srcDir`](#srcdir), [`domainInPOPath`](#domaininpopath), [`domainFromPOTPath`](#domainfrompotpath) and [`domain`](#domain).

Expand Down
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 f99f76f

Please sign in to comment.