Comparing version 2.4.5 to 2.4.6
@@ -40,7 +40,7 @@ /* | ||
if (name) { | ||
let exists = fs.existsSync(`07_cra_${name}`); | ||
let exists = fs.existsSync(`${name}`); | ||
if (!exists) { | ||
if (options.start === true) { | ||
execSync( | ||
`npx create-react-app 07_cra_${name} --template 07 && cd 07_cra_${name} && yarn && yarn start && code .`, | ||
`npx create-react-app ${name} --template 07 && cd ${name} && yarn && yarn start && code .`, | ||
{ | ||
@@ -51,8 +51,5 @@ stdio: "inherit", | ||
} else { | ||
execSync( | ||
`npx create-react-app 07_cra_${name} --template 07`, | ||
{ | ||
stdio: "inherit", | ||
} | ||
); | ||
execSync(`npx create-react-app ${name} --template 07`, { | ||
stdio: "inherit", | ||
}); | ||
} | ||
@@ -62,5 +59,4 @@ rl.close("success"); | ||
console.log( | ||
`\n${e("worried")} Folder already exists: ${ | ||
`07_cra_${name}`.meta | ||
}`.error | ||
`\n${e("worried")} Folder already exists: ${`${name}`.meta}` | ||
.error | ||
); | ||
@@ -80,3 +76,3 @@ rl.close("failure"); | ||
`${e("shrug")} Hva skal prosjektet hete? ${ | ||
"e.g. byggma-kalkulator".meta | ||
"e.g. 07_cra_byggma-kalkulator".meta | ||
} `, | ||
@@ -83,0 +79,0 @@ function (name) { |
{ | ||
"name": "07-cli", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"description": "A command line tool for 07 organization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
64381
572