fix(cli): update cli copy

This commit is contained in:
Leifer Mendez
2022-12-11 20:59:28 +01:00
parent ec46cfdd65
commit 7797c2b461
2 changed files with 3 additions and 8 deletions

View File

@@ -16,9 +16,9 @@ const copyFiles = async (from, to) => {
* Copiar directorio con archivos
* @param {*} templateName
*/
const copyBaseApp = async (templateName = null) => {
const BASEP_APP_PATH_FROM = `${process.cwd()}/starters/apps/${templateName}`
const BASEP_APP_PATH_TO = `${process.cwd()}/${templateName}`
const copyBaseApp = async (templateName = null, rootDir = process.cwd()) => {
const BASEP_APP_PATH_FROM = `${rootDir}/starters/apps/${templateName}`
const BASEP_APP_PATH_TO = `${rootDir}/${templateName}`
await copyFiles(BASEP_APP_PATH_FROM, BASEP_APP_PATH_TO)
}

View File

@@ -64,11 +64,6 @@ const startInteractive = async () => {
// }
// }
/**
* @deprecated
* Question
* @returns
*/
// const cleanAllSession = async () => {
// const answer = cleanTmp.toLowerCase() || 'n'
// if (answer.includes('n')) return true