ehapp
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -99,3 +99,3 @@ const fs = require("fs"); | ||
const changeTemplate = async (answers) => { | ||
const { projectName = "", description = "", author = "" } = answers; | ||
const { projectName, description = "", author = "", template } = answers; | ||
const command = `cd ${projectName} && rm -rf .git`; | ||
@@ -123,2 +123,5 @@ try { | ||
packageContent.description = description; | ||
if (template.split(" ")[0].includes('hooks')) { | ||
packageContent.config.commitizen.path = './' + path.join(projectName, packageContent.config.commitizen.path); | ||
} | ||
fs.writeFile( | ||
@@ -125,0 +128,0 @@ path.resolve(process.cwd(), projectName, "package.json"), |
{ | ||
"name": "ehapp", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "a company react-app template ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
6884
183