From a2f2b0c943f6787cb6c3385727ab2ed7f030a2bb Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Sun, 12 Jan 2020 01:04:48 +0100 Subject: [PATCH] - Default should be write... --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 76dc8da9..b288b887 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,7 @@ export enum HttpClient { * @param httpClient The selected httpClient (fetch or XHR). * @param write Write the files to disk (true or false) */ -export function generate(input: string, output: string, httpClient: HttpClient = HttpClient.FETCH, write: boolean = false): void { +export function generate(input: string, output: string, httpClient: HttpClient = HttpClient.FETCH, write: boolean = true): void { const inputPath = path.resolve(process.cwd(), input); const outputPath = path.resolve(process.cwd(), output);