create-application-template 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,6 +33,7 @@ const run = async () => {
|
|
|
33
33
|
|
|
34
34
|
const projectPaths = {
|
|
35
35
|
root: `./${argv.name}`,
|
|
36
|
+
get bin() { return `${this.root}/bin` },
|
|
36
37
|
get env() { return `${this.root}/.env` },
|
|
37
38
|
get packageJson() { return `${this.root}/package.json` },
|
|
38
39
|
}
|
|
@@ -50,6 +51,7 @@ const run = async () => {
|
|
|
50
51
|
if (packageJson.dependencies.hasOwnProperty('yargs')) delete packageJson.dependencies.yargs
|
|
51
52
|
|
|
52
53
|
execCommand(`rm ${projectPaths.packageJson}`)
|
|
54
|
+
execCommand(`rm -rf ${projectPaths.bin}`)
|
|
53
55
|
|
|
54
56
|
try {
|
|
55
57
|
await writeFile(projectPaths.packageJson, JSON.stringify(packageJson, null, 2), {
|