Skip to content

Commit

Permalink
Merge pull request #37 from DIG-Network/release/v0.0.1-alpha.38
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.38
  • Loading branch information
MichaelTaylor3D authored Oct 3, 2024
2 parents 0ad6b15 + b52e39b commit af62cfe
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 35 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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.

### [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)

### [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)

### [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)
Expand Down
86 changes: 55 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@dignetwork/dig-chia-cli",
"version": "0.0.1-alpha.37",
"version": "0.0.1-alpha.38",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
"main": "./dist/cli.js",
"types": "./dist/index.d.ts",
"bin": {
"dignode": "./dist/index.js"
"dignode": "./dist/cli.js"
},
"scripts": {
"build": "rm -rf dist && tsc && npm run postbuild",
Expand All @@ -24,7 +24,7 @@
"LICENSE"
],
"dependencies": {
"@dignetwork/dig-sdk": "^0.0.1-alpha.107",
"@dignetwork/dig-sdk": "^0.0.1-alpha.112",
"bip39": "^3.1.0",
"datalayer-driver": "^0.1.21",
"inquirer": "^10.1.8",
Expand Down
16 changes: 16 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env node
"use strict";

import { Environment } from "@dignetwork/dig-sdk";
import path from "path";

// Set the environment variable
Environment.CLI_MODE = true;

// Dynamically import the actual dignode script
const dignodeScriptPath = path.resolve(__dirname, "../dist/index.js");

// Import the actual dignode script
import(dignodeScriptPath).catch((error) => {
console.error("Error executing dignode cli:", error);
});

0 comments on commit af62cfe

Please sign in to comment.