diff --git a/readme.md b/readme.md index 3f5f610..3f0ac14 100644 --- a/readme.md +++ b/readme.md @@ -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). diff --git a/src/options.ts b/src/options.ts index 0c354ad..e6c3cc2 100644 --- a/src/options.ts +++ b/src/options.ts @@ -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); @@ -225,7 +228,7 @@ export default (options: Options): PreparedOptions => { // Output-related returnPOT: false, - writeFiles: true, + writeFiles: Boolean(defaultWriteFiles), destDir: '', logResults: false, diff --git a/tsconfig.json b/tsconfig.json index c970746..26f0af4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "moduleResolution": "NodeNext", "lib": ["ES2021.String"], "allowSyntheticDefaultImports": true, - "esModuleInterop": true + "esModuleInterop": true, + "target": "ES2020" } }