forked from dfinity/agent-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
165 lines (165 loc) · 4.78 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
{
"name": "@dfinity/agent-monorepo",
"version": "2.1.1",
"private": true,
"description": "Use an Agent to interact with the Internet Computer from your JavaScript program.",
"workspaces": {
"packages": [
"packages/principal",
"packages/candid",
"packages/agent",
"packages/identity",
"packages/auth-client",
"packages/assets",
"packages/identity-secp256k1",
"packages/use-auth-client",
"e2e/node"
]
},
"devDependencies": {
"@jest/types": "^29.6.3",
"@rollup/wasm-node": "^4.20.0",
"@size-limit/esbuild": "^11.0.2",
"@size-limit/preset-small-lib": "^9.0.0",
"@types/jest": "^29.5.5",
"@types/node": "^20.8.6",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"eslint": "^9.8.0",
"eslint-plugin-cypress": "^3.4.0",
"eslint-plugin-jsdoc": "^48.11.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^8.0.3",
"jest": "^29.7.0",
"jest-cli": "^29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-environment-node": "^29.7.0",
"markdown-to-html-cli": "^4.1.0",
"os": "^0.1.2",
"path": "^0.12.7",
"prettier": "^3.3.3",
"prettier-plugin-motoko": "^0.8.4",
"pretty-quick": "^4.0.0",
"release-it": "^16.2.1",
"size-limit": "^11.0.2",
"size-limit-node-esbuild": "^0.3.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.26.5",
"typescript": "^5.5.4",
"url": "^0.11.3",
"webcrypto-core": "^1.7.7",
"yargs": "^17.7.2",
"zx": "^8.1.2"
},
"engines": {
"node": "^12 || ^14 || ^16 || >=17",
"npm": "^7.17 || >=8"
},
"scripts": {
"lint:e2e": "eslint --cache --cache-location node_modules/.cache/eslint 'e2e/*/**/*.ts*'",
"convert:changelog": "markdown-to-html --source docs/CHANGELOG.md --output docs/changelog.html",
"build": "npm run build --workspaces --if-present; npm run bundle --workspaces --if-present",
"lint:fix": "",
"make:docs": "npm run make:docs/reference --workspaces --if-present; npm run convert:changelog",
"release": "release-it",
"size": "size-limit --json",
"test:coverage": "",
"test": "jest",
"test-size": "esbuild",
"prepare": "husky install",
"prettier:check": "npx -p prettier -p pretty-quick pretty-quick --check",
"prettier:format": "npx -p prettier -p pretty-quick pretty-quick",
"postversion": "npm run prettier:format",
"update-management-idl": "ts-node bin/update-management-idl.ts"
},
"repository": {
"type": "git",
"url": "https://github.com/dfinity/agent-js"
},
"author": "DFINITY Stiftung <[email protected]>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/dfinity/agent-js/issues"
},
"homepage": "https://github.com/dfinity-lab/agent-js#readme",
"size-limit": [
{
"name": "@dfinity/agent",
"path": "./packages/agent/dist/index.js",
"limit": "105 kB"
},
{
"name": "@dfinity/candid",
"path": "./packages/candid/dist/index.js",
"limit": "20 kb"
},
{
"name": "@dfinity/principal",
"path": "./packages/principal/dist/index.js",
"limit": "10 kB"
},
{
"name": "@dfinity/auth-client",
"path": "./packages/auth-client/dist/index.js",
"limit": "320 kB"
},
{
"name": "@dfinity/assets",
"path": "./packages/assets/dist/index.js",
"limit": "100 kB"
},
{
"name": "@dfinity/identity",
"path": "./packages/identity/dist/index.js",
"limit": "100 kB"
},
{
"name": "@dfinity/identity-secp256k1",
"path": "./packages/identity-secp256k1/dist/index.js",
"limit": "300 kB"
}
],
"release-it": {
"hooks": {
"after:bump": [
"ts-node bin/version.ts ${version}",
"ts-node bin/roll-changelog.ts ${version}"
],
"before:release": [
"git pull",
"git checkout release/${version} 2>/dev/null || git checkout -b release/${version}",
"git merge main",
"npm run build",
"npm install",
"npm audit fix",
"git add .",
"git commit -m 'chore: release ${version}'",
"git push --set-upstream origin release/${version}"
],
"after:release": [
"gh pr create --base main --title 'chore: release ${version}' --body 'GitHub Release: ${releaseUrl}\nNPM release: https://www.npmjs.com/package/@dfinity/agent/v/${version}\n- [ ] Check this box to trigger CI'"
]
},
"git": {
"requireBranch": "main",
"tagName": "v${version}",
"pushArgs": [
"--force-with-lease"
]
},
"npm": {
"publish": false
},
"github": {
"release": true,
"draft": true,
"autoGenerate": true
}
},
"overrides": {
"vite": {
"rollup": "npm:@rollup/wasm-node"
}
}
}