fix(create-mcfly): name with space causing error
This commit is contained in:
parent
9188eb0812
commit
6430183a13
3 changed files with 4 additions and 4 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -3975,7 +3975,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packages/create-mcfly": {
|
"packages/create-mcfly": {
|
||||||
"version": "0.2.8",
|
"version": "0.2.9",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"consola": "^3.2.3",
|
"consola": "^3.2.3",
|
||||||
|
|
|
@ -35,7 +35,7 @@ async function create() {
|
||||||
consola.info("This might take some time depending on your connectivity.");
|
consola.info("This might take some time depending on your connectivity.");
|
||||||
consola.start("Installing dependencies using npm...");
|
consola.start("Installing dependencies using npm...");
|
||||||
try {
|
try {
|
||||||
await exec(`npm --prefix ${directory} install`);
|
await exec(`npm --prefix "${directory}" install`);
|
||||||
consola.success("Done!");
|
consola.success("Done!");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
consola.error(e);
|
consola.error(e);
|
||||||
|
@ -51,7 +51,7 @@ async function create() {
|
||||||
if (initializeGit) {
|
if (initializeGit) {
|
||||||
consola.start("Initializing git repository...");
|
consola.start("Initializing git repository...");
|
||||||
try {
|
try {
|
||||||
await exec(`git -C ${directory} init`);
|
await exec(`git -C "${directory}" init`);
|
||||||
consola.success("Done!");
|
consola.success("Done!");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
consola.error(e);
|
consola.error(e);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "create-mcfly",
|
"name": "create-mcfly",
|
||||||
"version": "0.2.8",
|
"version": "0.2.9",
|
||||||
"bin": {
|
"bin": {
|
||||||
"create-mcfly": "./index.js"
|
"create-mcfly": "./index.js"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue