fix(create-mcfly): name with space causing error

This commit is contained in:
Ayo 2023-10-24 18:55:07 +02:00
parent 9188eb0812
commit 6430183a13
3 changed files with 4 additions and 4 deletions

2
package-lock.json generated
View file

@ -3975,7 +3975,7 @@
}
},
"packages/create-mcfly": {
"version": "0.2.8",
"version": "0.2.9",
"license": "MIT",
"dependencies": {
"consola": "^3.2.3",

View file

@ -35,7 +35,7 @@ async function create() {
consola.info("This might take some time depending on your connectivity.");
consola.start("Installing dependencies using npm...");
try {
await exec(`npm --prefix ${directory} install`);
await exec(`npm --prefix "${directory}" install`);
consola.success("Done!");
} catch (e) {
consola.error(e);
@ -51,7 +51,7 @@ async function create() {
if (initializeGit) {
consola.start("Initializing git repository...");
try {
await exec(`git -C ${directory} init`);
await exec(`git -C "${directory}" init`);
consola.success("Done!");
} catch (e) {
consola.error(e);

View file

@ -1,6 +1,6 @@
{
"name": "create-mcfly",
"version": "0.2.8",
"version": "0.2.9",
"bin": {
"create-mcfly": "./index.js"
},