From ee9a4a260556b0feba75bd0038bc22bc0fd90115 Mon Sep 17 00:00:00 2001 From: Paolo Ceschi Berrini Date: Wed, 15 Jan 2020 16:46:29 +0100 Subject: [PATCH] init converter before calling the CLI --- src/index.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index aaa92a1..6be3fa0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,10 @@ import fs = require("fs-extra"); import inquirer = require("inquirer"); import path = require("path"); +const eolConverter = { + LF: "\n", + CRLF: "\r\n" +}; // eslint-disable-next-line @typescript-eslint/no-floating-promises CliLogic(); @@ -20,11 +24,6 @@ type options = { generationOptions: IGenerationOptions; }; -const eolConverter = { - LF: "\n", - CRLF: "\r\n" -}; - async function CliLogic() { console.log(TomgUtils.packageVersion()); let options = makeDefaultConfigs();