create-koa-template
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -54,3 +54,4 @@ import path from "path" | ||
if (action === "overwrite") { | ||
emptyFolder(targetDir) | ||
await emptyFolder(targetDir) | ||
return { | ||
@@ -63,3 +64,4 @@ name, | ||
if (action === "merge") { | ||
handleBasedFiles(targetDir) | ||
await handleBasedFiles(targetDir) | ||
return { | ||
@@ -74,3 +76,3 @@ name, | ||
function emptyFolder(folder) { | ||
const emptyFolder = async (folder) => { | ||
console.log(`\nRemoving ${chalk.cyan(folder)}...`) | ||
@@ -83,3 +85,3 @@ | ||
function handleBasedFiles(targetDir) { | ||
const handleBasedFiles = async (targetDir) => { | ||
const indexPath = `${targetDir}/index.js` | ||
@@ -86,0 +88,0 @@ const packagePath = `${targetDir}/package.json` |
{ | ||
"name": "create-koa-template", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Helps you create KOA scaffolding efficiently", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13613