@moltium/world-cli 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -34
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -395,7 +395,7 @@ var initCommand = new Command("init").description("Initialize a new world projec
395
395
  "deploy:contracts": "moltium-world deploy"
396
396
  },
397
397
  dependencies: {
398
- "@moltium/world-core": "^0.1.0",
398
+ "@moltium/world-core": "^0.1.4",
399
399
  dotenv: "^16.4.0"
400
400
  },
401
401
  devDependencies: {
@@ -596,24 +596,13 @@ tokenCommand.command("deploy").description("Deploy custom ERC20 token").option("
596
596
  TOKEN_DECIMALS: tokenConfig.decimals?.toString() || "18"
597
597
  };
598
598
  const worldCorePath = path3.join(process.cwd(), "node_modules", "@moltium", "world-core");
599
- const libPath = path3.join(worldCorePath, "lib");
600
599
  try {
601
- await fs3.access(libPath);
600
+ await fs3.access(worldCorePath);
602
601
  } catch {
603
- deploySpinner.text = "Installing Foundry dependencies...";
604
- try {
605
- execSync("forge install --no-commit", {
606
- cwd: worldCorePath,
607
- stdio: "pipe"
608
- });
609
- deploySpinner.text = "Deploying token contract...";
610
- } catch (error) {
611
- deploySpinner.fail();
612
- console.error(chalk2.red("\\n\u274C Failed to install Foundry dependencies"));
613
- 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`));
615
- process.exit(1);
616
- }
602
+ deploySpinner.fail();
603
+ console.error(chalk2.red("\\n\u274C @moltium/world-core package not found"));
604
+ console.log(chalk2.yellow("\\nPlease install it: npm install @moltium/world-core\\n"));
605
+ process.exit(1);
617
606
  }
618
607
  const command = `forge script script/DeployToken.s.sol:DeployTokenScript --rpc-url monad --broadcast -vvv`;
619
608
  const output = execSync(command, {
@@ -759,25 +748,14 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
759
748
  const deploySpinner = ora4("Deploying AgentRegistry...").start();
760
749
  try {
761
750
  const worldCorePath = path4.join(process.cwd(), "node_modules", "@moltium", "world-core");
762
- const libPath = path4.join(worldCorePath, "lib");
763
751
  const fs4 = await import("fs/promises");
764
752
  try {
765
- await fs4.access(libPath);
753
+ await fs4.access(worldCorePath);
766
754
  } catch {
767
- deploySpinner.text = "Installing Foundry dependencies...";
768
- try {
769
- execSync3("forge install --no-commit", {
770
- cwd: worldCorePath,
771
- stdio: "pipe"
772
- });
773
- deploySpinner.text = "Deploying AgentRegistry...";
774
- } catch (error) {
775
- deploySpinner.fail();
776
- console.error(chalk4.red("\\n\u274C Failed to install Foundry dependencies"));
777
- 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`));
779
- process.exit(1);
780
- }
755
+ deploySpinner.fail();
756
+ console.error(chalk4.red("\\n\u274C @moltium/world-core package not found"));
757
+ console.log(chalk4.yellow("\\nPlease install it: npm install @moltium/world-core\\n"));
758
+ process.exit(1);
781
759
  }
782
760
  const env = {
783
761
  ...process.env,
@@ -830,7 +808,7 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
830
808
 
831
809
  // src/index.ts
832
810
  var program = new Command5();
833
- program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.2");
811
+ program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.4");
834
812
  program.addCommand(initCommand);
835
813
  program.addCommand(tokenCommand);
836
814
  program.addCommand(startCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moltium/world-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "CLI tool for creating and managing Moltium World SDK projects",
5
5
  "license": "MIT",
6
6
  "keywords": [