@mtnts/contract-client 0.0.9 → 0.0.11

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/cli.cjs +4 -3
  2. package/package.json +3 -3
package/dist/cli.cjs CHANGED
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  // src/cli/index.ts
32
32
  var cli_exports = {};
33
33
  __export(cli_exports, {
34
- generateBlockchainTypes: () => generateBlockchainTypes
34
+ main: () => main
35
35
  });
36
36
  module.exports = __toCommonJS(cli_exports);
37
37
  var import_globby = require("globby");
@@ -181,7 +181,7 @@ ${name}: ${createMethodsName(name)}`;
181
181
  const allMehodsString = `type ContractMethods = RegistryHandlers<{${content}}, ContractOptions>`;
182
182
  return createGlobalDeclaration(contractsTemplate + allMehodsString);
183
183
  }
184
- async function generateBlockchainTypes() {
184
+ async function main() {
185
185
  const rootPath = process.cwd();
186
186
  const _input = await ask("type relative path: ");
187
187
  const input = _input ? _input + "/" : "";
@@ -205,7 +205,8 @@ async function generateBlockchainTypes() {
205
205
  writePrettyFile(`structs.d.ts`, structsString, outDir);
206
206
  writePrettyFile(`contracts.d.ts`, defineAllContracts(abis), outDir);
207
207
  }
208
+ main();
208
209
  // Annotate the CommonJS export names for ESM import in node:
209
210
  0 && (module.exports = {
210
- generateBlockchainTypes
211
+ main
211
212
  });
package/package.json CHANGED
@@ -31,12 +31,12 @@
31
31
  "@types/node": "^25.9.3",
32
32
  "husky": "^9.1.7",
33
33
  "lint-staged": "^17.0.7",
34
- "prettier": "^3.0.0",
35
34
  "tsup": "^8.0.0",
36
35
  "typescript": "^5.0.0"
37
36
  },
38
37
  "dependencies": {
39
- "globby": "^16.2.0"
38
+ "globby": "^16.2.0",
39
+ "prettier": "^3.0.0"
40
40
  },
41
- "version": "0.0.9"
41
+ "version": "0.0.11"
42
42
  }