generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
167 lines (167 loc) · 5.74 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"name": "drpm",
"version": "5.1.0",
"type": "module",
"description": "Decentralized Registry Package Manager (DRPM) helps developers publish, install, find and manage Decentralized Packages (DPKs) published to Decentralized Web Nodes (DWNs). DRPM does this by looking up a Decentralized Identifier (DID) to find its DID document and parse out the DWN service endpoints. DRPM uses the endpoints to query the DWN for any matching package and package/release records.",
"main": "./dist/cjs/index.js",
"module": "./dist/index.js",
"types": "./dist/types/index.d.ts",
"bin": {
"drpm": "dist/cli/drpm.js"
},
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/cjs/index.js",
"package.json": "./package.json"
}
},
"homepage": "https://drpm.tools",
"bugs": {
"url": "https://github.com/bnonni/drpm.tools/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/bnonni/drpm.tools.git"
},
"license": "Apache-2.0",
"contributors": [
{
"name": "Bryan Nonni",
"url": "https://github.com/bnonni"
},
{
"name": "Daniel Buchner",
"url": "https://github.com/csuwildcat"
},
{
"name": "Zach M",
"url": "https://github.com/phuncti0n"
},
{
"name": "w3irdrobot",
"url": "https://github.com/w3irdrobot"
}
],
"files": [
"dist",
"src"
],
"keywords": [
"decentralized registry package manager",
"decentralized registry",
"decentralized package manager",
"decentralized package registry",
"package registry",
"package manager",
"decentralized",
"decentralized applications",
"decentralized identity",
"decentralized web",
"web5",
"dpm",
"drpm",
"drg",
"dwn",
"dweb node",
"decentralized web node",
"dwn protocol",
"decentralized identifiers",
"dids",
"decentralized module imports",
"decentralized package imports",
"decentralized package",
"decentralized packages",
"dpks",
"drls",
"drl",
"decentralized resource locator",
"decentralized resource locators",
"tbd54566975",
"tbd",
"tbd-block"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"dev": "nodemon",
"start": "node ./dist/registry/server.js",
"prepack": "npm run build && npm run cli:version && chmod +x ./dist/cli/drpm.js",
"postinstall": "curl -fsSL https://raw.githubusercontent.com/bnonni/drpm.tools/refs/heads/main/setup.sh | sh",
"clean": "rimraf dist coverage tests/compiled",
"wipe": "rimraf node_modules package-lock.json DATA",
"tab:1-setup-npmrc": "[[ -f ~/.npmrc ]] && cp ~/.npmrc ~/.npmrc.drpm.bak || cp .npmrc ~/.npmrc",
"tab:2-start-dwn": "sh build/docker.sh",
"tab:3-create-did": "./dist/cli/drpm.js profile create -e http://localhost:3000",
"tab:4-configure-protocol": "./dist/cli/drpm.js protocol configure",
"tab:5-start-registry": "node ./dist/registry/server.js",
"tab:6-get-did": "./dist/cli/drpm.js profile get -d",
"test:register-hooks": "echo 'Unimplemented!' && exit 0 && npm run build:tests; node --import ./dist/src/register.js ./tests/compiled/tests/register-hooks.spec.js",
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "rimraf dist/cjs && tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > ./dist/cjs/package.json",
"build:esm": "rimraf dist dist/types && tsc -p tsconfig.json && chmod +x ./dist/cli/drpm.js",
"build:tests": "rimraf tests/compiled && tsc -p tests/tsconfig.json",
"cli:install-local": "rm -f /usr/local/bin/drpml && npm run build && ln -s $(pwd)/dist/cli/drpm.js /usr/local/bin/drpml",
"cli:version": "sh scripts/cli/version.sh",
"registryd:start": "sh scripts/registryd/start-restart.sh",
"registryd:stop": "sh scripts/registryd/stop.sh",
"registryd:restart": "npm run registryd:start -- -f",
"registryd:info": "sh scripts/registryd/info.sh",
"docker:push": "docker push registry.digitalocean.com/nonni/drpm-registry",
"docker:build": "docker build -f build/Dockerfile.registry -t registry.digitalocean.com/nonni/drpm-registry .",
"docker:run": "docker run -d --rm --network drpm-network -p 2092:2092 --name drpm-registry registry.digitalocean.com/nonni/drpm-registry"
},
"dependencies": {
"@bugsnag/cuid": "^3.1.1",
"@inquirer/prompts": "^7.0.1",
"@tbd54566975/dwn-sdk-js": "^0.5.1",
"@web5/agent": "^0.8.1",
"@web5/api": "^0.12.0",
"@web5/common": "^1.1.0",
"@web5/credentials": "^1.1.3",
"@web5/crypto": "^1.0.6",
"@web5/dids": "^1.2.0",
"@web5/user-agent": "^0.7.1",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"cors": "^2.8.5",
"did-btc-sdk": "^1.0.0",
"express": "^4.21.0",
"fs-extra": "^11.2.0",
"tar": "^7.4.3",
"tar-stream": "^3.1.7"
},
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/chai": "^5.0.1",
"@types/chai-as-promised": "^8.0.1",
"@types/cors": "^2.8.17",
"@types/debug": "^4.1.12",
"@types/eslint": "^9.6.1",
"@types/express": "^5.0.0",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.9",
"@types/node": "^22.5.4",
"@types/npm": "^7.19.3",
"@types/tar-stream": "^3.1.3",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"c8": "^10.1.2",
"chai": "^5.1.2",
"chai-as-promised": "^8.0.0",
"esbuild": "^0.24.0",
"eslint": "^9.14.0",
"eslint-plugin-mocha": "^10.5.0",
"globals": "^15.11.0",
"marked": "^14.1.2",
"mocha": "^10.8.2",
"mocha-junit-reporter": "^2.2.1",
"node-stdlib-browser": "^1.2.1",
"nodemon": "^3.1.7",
"rimraf": "^6.0.1",
"typescript": "^5.6.2",
"typescript-eslint": "^8.5.0"
}
}