From 4ee8428bfc7ee08ecaae9d0ae6ac90709b17385a Mon Sep 17 00:00:00 2001 From: Aditya Mathur <57684218+MathurAditya724@users.noreply.github.com> Date: Sun, 25 Aug 2024 12:55:29 +0530 Subject: [PATCH] feat: added support for external templates --- src/index.ts | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/src/index.ts b/src/index.ts index e7a6a31..59a0874 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ -import fs from 'fs' -import path from 'path' +import fs from 'node:fs' +import path from 'node:path' import confirm from '@inquirer/confirm' import input from '@inquirer/input' import select from '@inquirer/select' @@ -62,9 +62,7 @@ program ), ) .addOption( - new Option('-t, --template