@helios-lang/contract-utils 0.1.38 → 0.1.39

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/package.json +2 -2
  2. package/src/hl2ts.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helios-lang/contract-utils",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Convenience and type-safety utilities for using Helios validators from within Typescript",
5
5
  "main": "src/index.js",
6
6
  "types": "types/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "@helios-lang/compiler": "*"
36
36
  },
37
37
  "dependencies": {
38
- "@helios-lang/cli-utils": "^0.1.2",
38
+ "@helios-lang/cli-utils": "^0.1.3",
39
39
  "@helios-lang/codec-utils": "^0.1.29",
40
40
  "@helios-lang/compiler-utils": "^0.1.21",
41
41
  "@helios-lang/ledger": "^0.1.44",
package/src/hl2ts.js CHANGED
@@ -32,8 +32,10 @@ import { None } from "@helios-lang/type-utils"
32
32
  * @typedef {"javascript" | "typescript"} FormatKind
33
33
  */
34
34
 
35
+ const NAME = "hl2ts"
36
+
35
37
  async function main() {
36
- const cli = new Cli({
38
+ const cli = new Cli(NAME, {
37
39
  minArgs: 0,
38
40
  maxArgs: 0,
39
41
  options: {
@@ -80,7 +82,7 @@ async function mainInternal(_args, { outDir, format }) {
80
82
  const filePaths = await listFiles(process.cwd(), ".hl")
81
83
  const files = readFiles(filePaths)
82
84
 
83
- console.log(`hl2ts using Helios compiler v${lib.version}`)
85
+ console.log(`${NAME} using Helios compiler v${lib.version}`)
84
86
  console.log(` Transpiling ${Object.keys(files).length} inputs:`)
85
87
  filePaths.forEach((p) => console.log(` ${p}`))
86
88