-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
30 lines (30 loc) · 973 Bytes
/
package.json
File metadata and controls
30 lines (30 loc) · 973 Bytes
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
{
"name": "@webhooksite/cli",
"description": "Client for Webhook.site",
"repository": "webhooksite/cli",
"version": "0.2.7",
"type": "module",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=16.0.0"
},
"dependencies": {
"colors": "^1.4.0",
"laravel-echo": "^1.16.1",
"minimist": "^1.2.8",
"node-fetch": "^3.3.2",
"pino": "^8.20.0",
"socket.io-client": "^2.5.0",
"ws": "^7.5.9"
},
"license": "MIT",
"bin": {
"whcli": "index.js"
},
"scripts": {
"start": "node index.js",
"build": "export VERSION=$(jq -r '.version' package.json) ; sed -i '' \"s/const version = '[0-9.]*';/const version = '$VERSION';/\" index.js ; npm install ; git tag $VERSION ; git push origin refs/tags/$VERSION ; docker buildx build --platform linux/arm/v7,linux/arm64/v8,linux/amd64,linux/arm64 --tag webhooksite/cli:latest --tag webhooksite/cli:$VERSION --push . ; npm publish"
}
}