@moltium/world-cli 0.1.2 → 0.1.3
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.
- package/dist/index.js +25 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -602,6 +602,17 @@ tokenCommand.command("deploy").description("Deploy custom ERC20 token").option("
|
|
|
602
602
|
} catch {
|
|
603
603
|
deploySpinner.text = "Installing Foundry dependencies...";
|
|
604
604
|
try {
|
|
605
|
+
try {
|
|
606
|
+
execSync("git rev-parse --git-dir", {
|
|
607
|
+
cwd: worldCorePath,
|
|
608
|
+
stdio: "pipe"
|
|
609
|
+
});
|
|
610
|
+
} catch {
|
|
611
|
+
execSync("git init", {
|
|
612
|
+
cwd: worldCorePath,
|
|
613
|
+
stdio: "pipe"
|
|
614
|
+
});
|
|
615
|
+
}
|
|
605
616
|
execSync("forge install --no-commit", {
|
|
606
617
|
cwd: worldCorePath,
|
|
607
618
|
stdio: "pipe"
|
|
@@ -611,7 +622,7 @@ tokenCommand.command("deploy").description("Deploy custom ERC20 token").option("
|
|
|
611
622
|
deploySpinner.fail();
|
|
612
623
|
console.error(chalk2.red("\\n\u274C Failed to install Foundry dependencies"));
|
|
613
624
|
console.log(chalk2.yellow("\\nPlease ensure Foundry is installed: https://getfoundry.sh/"));
|
|
614
|
-
console.log(chalk2.gray(`\\nThen run manually: cd ${worldCorePath} && forge install\\n`));
|
|
625
|
+
console.log(chalk2.gray(`\\nThen run manually: cd ${worldCorePath} && git init && forge install\\n`));
|
|
615
626
|
process.exit(1);
|
|
616
627
|
}
|
|
617
628
|
}
|
|
@@ -766,6 +777,17 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
|
|
|
766
777
|
} catch {
|
|
767
778
|
deploySpinner.text = "Installing Foundry dependencies...";
|
|
768
779
|
try {
|
|
780
|
+
try {
|
|
781
|
+
execSync3("git rev-parse --git-dir", {
|
|
782
|
+
cwd: worldCorePath,
|
|
783
|
+
stdio: "pipe"
|
|
784
|
+
});
|
|
785
|
+
} catch {
|
|
786
|
+
execSync3("git init", {
|
|
787
|
+
cwd: worldCorePath,
|
|
788
|
+
stdio: "pipe"
|
|
789
|
+
});
|
|
790
|
+
}
|
|
769
791
|
execSync3("forge install --no-commit", {
|
|
770
792
|
cwd: worldCorePath,
|
|
771
793
|
stdio: "pipe"
|
|
@@ -775,7 +797,7 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
|
|
|
775
797
|
deploySpinner.fail();
|
|
776
798
|
console.error(chalk4.red("\\n\u274C Failed to install Foundry dependencies"));
|
|
777
799
|
console.log(chalk4.yellow("\\nPlease ensure Foundry is installed: https://getfoundry.sh/"));
|
|
778
|
-
console.log(chalk4.gray(`\\nThen run manually: cd ${worldCorePath} && forge install\\n`));
|
|
800
|
+
console.log(chalk4.gray(`\\nThen run manually: cd ${worldCorePath} && git init && forge install\\n`));
|
|
779
801
|
process.exit(1);
|
|
780
802
|
}
|
|
781
803
|
}
|
|
@@ -830,7 +852,7 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
|
|
|
830
852
|
|
|
831
853
|
// src/index.ts
|
|
832
854
|
var program = new Command5();
|
|
833
|
-
program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.
|
|
855
|
+
program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.3");
|
|
834
856
|
program.addCommand(initCommand);
|
|
835
857
|
program.addCommand(tokenCommand);
|
|
836
858
|
program.addCommand(startCommand);
|