This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpackage.json
70 lines (70 loc) · 2.25 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
{
"name": "@phala/sdk",
"version": "0.3.9",
"description": "Phala Phat Contract JS SDK",
"homepage": "https://github.com/Phala-Network/js-sdk/tree/main/packages/sdk#readme",
"repository": {
"type": "git",
"url": "https://github.com/Phala-Network/js-sdk.git",
"directory": "packages/sdk"
},
"main": "dist/node/index",
"browser": "dist/browser/index",
"exports": {
".": {
"import": {
"node": "./dist/node/index.mjs",
"default": "./dist/browser/index.mjs"
},
"require": {
"node": "./dist/node/index.js",
"default": "./dist/browser/index.js"
}
}
},
"files": [
"dist/*"
],
"scripts": {
"build": "npm run build:node && npm run build:browser",
"build:node": "tsup --config tsup.node.ts",
"build:browser": "tsup --config tsup.browser.ts",
"generate:defs": "ts-node --skip-project ../../node_modules/.bin/polkadot-types-from-defs --package @phala/sdk --input ./src/interfaces --endpoint ./edgeware.json",
"generate:meta": "ts-node --skip-project ../../node_modules/.bin/polkadot-types-from-chain --package @phala/sdk --endpoint ./edgeware.json --output ./src/interfaces",
"build:proto": "scripts/build_proto.sh",
"dev": "tsup --watch",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache --fix .",
"auto-publish": "npm publish --access public"
},
"dependencies": {
"@esbuild-plugins/node-modules-polyfill": "^0.1.4",
"@phala/typedefs": "^0.2.32",
"@polkadot/api": "9.8.1",
"@polkadot/api-contract": "9.8.1",
"@polkadot/keyring": "^10.1.12",
"@polkadot/util": "^10.1.12",
"@polkadot/util-crypto": "^10.1.12",
"@polkadot/wasm-crypto": "^6.3.1",
"axios": "^0.27.2",
"crypto-browserify": "^3.12.0",
"protobufjs": "^6.11.3",
"rxjs": "^7.5.7"
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@polkadot/typegen": "^9.11.1",
"@types/node": "^16.11.59",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"ts-node": "^10.9.1",
"tsup": "^6.4.0",
"typescript": "^4.8.4"
},
"engines": {
"node": ">=16"
}
}