@dedot/cli 0.0.1-alpha.28 → 0.0.1-alpha.29

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.
@@ -33,7 +33,7 @@ exports.chaintypes = {
33
33
  const { wsUrl, output = '', chain = '' } = yargs;
34
34
  console.log(`- Generating chaintypes via endpoint ${wsUrl}`);
35
35
  const outDir = path.resolve(output, './codegen');
36
- await (0, codegen_1.generateTypesFromChain)({ chain }, wsUrl, outDir);
36
+ await (0, codegen_1.generateTypesFromEndpoint)(chain, wsUrl, outDir);
37
37
  console.log(`- DONE! Output: ${outDir}`);
38
38
  },
39
39
  builder: (yargs) => {
@@ -1 +1 @@
1
- export * from './chaintypes';
1
+ export * from './chaintypes.js';
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./chaintypes"), exports);
17
+ __exportStar(require("./chaintypes.js"), exports);
package/cjs/dedot.js CHANGED
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.dedot = void 0;
7
7
  const yargs_1 = __importDefault(require("yargs"));
8
8
  const helpers_1 = require("yargs/helpers");
9
- const commands_1 = require("./commands");
9
+ const index_js_1 = require("./commands/index.js");
10
10
  const dedot = () => {
11
11
  (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
12
12
  .scriptName('dedot')
13
13
  .showHelpOnFail(true)
14
- .command(commands_1.chaintypes)
14
+ .command(index_js_1.chaintypes)
15
15
  .help('help', 'Show help instructions')
16
16
  .alias('h', 'help')
17
17
  .alias('v', 'version')
package/cjs/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { dedot } from './dedot';
1
+ import { dedot } from './dedot.js';
2
2
  export { dedot };
package/cjs/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.dedot = void 0;
4
- const dedot_1 = require("./dedot");
5
- Object.defineProperty(exports, "dedot", { enumerable: true, get: function () { return dedot_1.dedot; } });
4
+ const dedot_js_1 = require("./dedot.js");
5
+ Object.defineProperty(exports, "dedot", { enumerable: true, get: function () { return dedot_js_1.dedot; } });
6
6
  // We run this directly for development purpose via ts-node
7
7
  // @ts-ignore
8
8
  if (process[Symbol.for('ts-node.register.instance')]) {
9
- (0, dedot_1.dedot)();
9
+ (0, dedot_js_1.dedot)();
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dedot/cli",
3
- "version": "0.0.1-alpha.28",
3
+ "version": "0.0.1-alpha.29",
4
4
  "author": "Thang X. Vu <thang@coongcrafts.io>",
5
5
  "bin": {
6
6
  "dedot": "./bin/dedot",
@@ -14,7 +14,7 @@
14
14
  "start": "ts-node src/index.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@dedot/codegen": "0.0.1-alpha.28",
17
+ "@dedot/codegen": "0.0.1-alpha.29",
18
18
  "yargs": "^17.7.2"
19
19
  },
20
20
  "devDependencies": {
@@ -25,5 +25,5 @@
25
25
  "directory": "dist"
26
26
  },
27
27
  "license": "Apache-2.0",
28
- "gitHead": "564588ef7baeb1eca72c594b8dccd5c71181e81e"
28
+ "gitHead": "e3c3104eeab7515dc9dd6803b136fd66b6602d6c"
29
29
  }
@@ -1,4 +0,0 @@
1
- export declare const packageInfo: {
2
- name: string;
3
- version: string;
4
- };
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // THIS FILE IS AUTO-GENERATED, DO NOT EDIT!
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.packageInfo = void 0;
5
- exports.packageInfo = { name: '@dedot/cli', version: '0.0.1-alpha.27' };
package/packageInfo.js DELETED
@@ -1,3 +0,0 @@
1
- // THIS FILE IS AUTO-GENERATED, DO NOT EDIT!
2
-
3
- export const packageInfo = { name: '@dedot/cli', version: '0.0.1-alpha.28' };