Skip to content

Commit 1901b72

Browse files
committed
update package.json
1 parent de7e1d4 commit 1901b72

File tree

6 files changed

+22
-21
lines changed

6 files changed

+22
-21
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# dgit-cli
22

3-
This is the dgit cli client to interact with [dgit.sh](https://dgit.sh) or [permaweb-link](https://arweave.net/sCdfo1bUwbWZSffwxkhugbD3uRWBztdPwKFaM_2vmtQ
4-
)
3+
To use it as a global cli install using `npm install -g @thetechtrap/dgit`
54

6-
PST Fee of 0.01 AR is only applicable on dgit push
5+
This is the dgit cli client to interact with [dgit.sh](https://dgit.sh) or [permaweb-link](https://arweave.net/sCdfo1bUwbWZSffwxkhugbD3uRWBztdPwKFaM_2vmtQ)
76

7+
PST Fee of 0.01 AR is only applicable on dgit push
88

99
## Steps to Build
1010

@@ -27,4 +27,3 @@ PST Fee of 0.01 AR is only applicable on dgit push
2727
- `dgit log`
2828

2929
_Built using isomorphic-git_
30-

cli.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const http = require('./http/node')
99

1010
const Arweave = require('arweave/node')
1111
const { assert } = require('console')
12-
const { registerPrompt } = require('inquirer')
1312
const { readJsonConfigFile } = require('typescript')
1413
const arweave = Arweave.init({
1514
host: 'arweave.net',
@@ -18,6 +17,10 @@ const arweave = Arweave.init({
1817
})
1918

2019
const arweaveWalletPath = process.env.ARWEAVE_WALLET_PATH
20+
if (!arweaveWalletPath) {
21+
process.stderr.write('Missing ARWEAVE_WALLET_PATH env variable\n')
22+
process.exit(1)
23+
}
2124
const rawdata = fs.readFileSync(arweaveWalletPath)
2225
const wallet = JSON.parse(rawdata)
2326
const COMMAND_LIST = [
@@ -137,7 +140,6 @@ minimisted(async function({ _: [command, ...args], ...opts }) {
137140
}
138141
} catch (err) {
139142
process.stderr.write(err.message + '\n')
140-
console.log(err)
141143
process.exit(1)
142144
}
143145
} else {

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6694,9 +6694,9 @@ function filterCapabilities(server, client) {
66946694
}
66956695

66966696
const pkg = {
6697-
name: 'isomorphic-git',
6698-
version: '0.0.0-development',
6699-
agent: 'git/isomorphic-git@0.0.0-development',
6697+
name: '@thetechtrap/dgit',
6698+
version: '0.0.1',
6699+
agent: 'git/@thetechtrap/dgit@0.0.1',
67006700
};
67016701

67026702
class FIFO {

package-lock.json

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

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "isomorphic-git",
3-
"version": "0.0.0-development",
4-
"description": "A pure JavaScript reimplementation of git for node and browsers",
2+
"name": "@thetechtrap/dgit",
3+
"version": "0.0.1",
4+
"description": "dgit cli for permanent versioning",
55
"type": "module",
66
"typings": "./index.d.ts",
77
"main": "./index.cjs",
@@ -26,18 +26,18 @@
2626
},
2727
"repository": {
2828
"type": "git",
29-
"url": "https://github.com/isomorphic-git/isomorphic-git.git"
29+
"url": "https://github.com/TheTechTrap/dgit-cli.git"
3030
},
3131
"keywords": [
3232
"git",
3333
"isomorphic"
3434
],
35-
"author": "William Hilton <wmhilton@gmail.com>",
35+
"author": "T<wmhilton@gmail.com>",
3636
"license": "MIT",
3737
"bugs": {
38-
"url": "https://github.com/isomorphic-git/isomorphic-git/issues"
38+
"url": "https://github.com/TheTechTrap/dgit-cli/issues"
3939
},
40-
"homepage": "https://isomorphic-git.org/",
40+
"homepage": "https://dgit.sh/",
4141
"files": [
4242
"cli.cjs",
4343
"browser-tests.json",

src/utils/pkg.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const pkg = {
2-
name: 'isomorphic-git',
3-
version: '0.0.0-development',
4-
agent: 'git/isomorphic-git@0.0.0-development',
2+
name: '@thetechtrap/dgit',
3+
version: '0.0.1',
4+
agent: 'git/@thetechtrap/dgit@0.0.1',
55
}

0 commit comments

Comments
 (0)