Skip to content

Commit af62cfe

Browse files
Merge pull request #37 from DIG-Network/release/v0.0.1-alpha.38
Release/v0.0.1 alpha.38
2 parents 0ad6b15 + b52e39b commit af62cfe

File tree

4 files changed

+77
-35
lines changed

4 files changed

+77
-35
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [0.0.1-alpha.38](https://github.com/DIG-Network/dig-cli/compare/v0.0.1-alpha.37...v0.0.1-alpha.38) (2024-10-03)
6+
57
### [0.0.1-alpha.37](https://github.com/DIG-Network/dig-cli/compare/v0.0.1-alpha.36...v0.0.1-alpha.37) (2024-10-01)
68

79
### [0.0.1-alpha.36](https://github.com/DIG-Network/dig-cli/compare/v0.0.1-alpha.35...v0.0.1-alpha.36) (2024-09-27)

package-lock.json

Lines changed: 55 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "@dignetwork/dig-chia-cli",
3-
"version": "0.0.1-alpha.37",
3+
"version": "0.0.1-alpha.38",
44
"description": "",
55
"type": "commonjs",
6-
"main": "./dist/index.js",
6+
"main": "./dist/cli.js",
77
"types": "./dist/index.d.ts",
88
"bin": {
9-
"dignode": "./dist/index.js"
9+
"dignode": "./dist/cli.js"
1010
},
1111
"scripts": {
1212
"build": "rm -rf dist && tsc && npm run postbuild",
@@ -24,7 +24,7 @@
2424
"LICENSE"
2525
],
2626
"dependencies": {
27-
"@dignetwork/dig-sdk": "^0.0.1-alpha.107",
27+
"@dignetwork/dig-sdk": "^0.0.1-alpha.112",
2828
"bip39": "^3.1.0",
2929
"datalayer-driver": "^0.1.21",
3030
"inquirer": "^10.1.8",

src/cli.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env node
2+
"use strict";
3+
4+
import { Environment } from "@dignetwork/dig-sdk";
5+
import path from "path";
6+
7+
// Set the environment variable
8+
Environment.CLI_MODE = true;
9+
10+
// Dynamically import the actual dignode script
11+
const dignodeScriptPath = path.resolve(__dirname, "../dist/index.js");
12+
13+
// Import the actual dignode script
14+
import(dignodeScriptPath).catch((error) => {
15+
console.error("Error executing dignode cli:", error);
16+
});

0 commit comments

Comments
 (0)