-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 3.17 KB
/
package.json
File metadata and controls
83 lines (83 loc) · 3.17 KB
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
{
"name": "@0gfoundation/0g-ts-sdk",
"version": "1.2.4",
"description": "JS/TS SDK for 0G Storage",
"main": "./lib.commonjs/index.js",
"module": "./lib.esm/index.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
"require": "./lib.commonjs/index.js",
"import": "./lib.esm/index.js",
"default": "./lib.esm/index.js"
},
"./browser": {
"types": "./lib.esm/index.d.ts",
"require": "./dist/zgstorage.umd.min.js",
"import": "./dist/zgstorage.esm.js",
"default": "./dist/zgstorage.esm.min.js"
}
},
"packageManager": "pnpm@8.7.1",
"scripts": {
"format": "prettier --write src.ts/**/*.ts src.ts/*.ts",
"test": "jest",
"_build-dist": "rollup -c && uglifyjs ./dist/zgstorage.esm.js -o ./dist/zgstorage.esm.min.js && uglifyjs ./dist/zgstorage.umd.js -o ./dist/zgstorage.umd.min.js",
"_dist-stats": "gzip -k9f -S '.gz' ./dist/zgstorage.esm.min.js && gzip -k9f -S '.gz' ./dist/zgstorage.umd.min.js && du -hs ./dist/*.gz && echo '' && du -hs ./dist/*.js",
"clean": "rm -rf dist lib.esm lib.commonjs types",
"build-dist": "npm run build-esm && npm run _build-dist && npm run _dist-stats",
"build-esm": "tsc --project tsconfig.esm.json",
"build-cjs": "tsc --project tsconfig.commonjs.json",
"build-all": "npm run clean && tsc -b tsconfig.esm.json tsconfig.commonjs.json tsconfig.types.json",
"gen-type-package-json": "echo '{\"type\": \"commonjs\"}' > ./lib.commonjs/package.json && echo '{\"type\": \"module\"}' > ./lib.esm/package.json",
"gen-contract-type-market": "typechain --target ethers-v6 --node16-modules --out-dir src.ts/contracts/market '../0g-storage-contracts/artifacts/contracts/market/FixedPrice.sol/FixedPrice.json'",
"gen-contract-type-flow": "typechain --target ethers-v6 --node16-modules --out-dir src.ts/contracts/flow '../0g-storage-contracts/artifacts/contracts/dataFlow/FixedPriceFlow.sol/FixedPriceFlow.json'",
"release": "npm run build-all && npm run gen-type-package-json && npm run build-dist"
},
"keywords": [],
"author": "0G Labs",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-node-resolve": "^15.2.1",
"@typechain/ethers-v6": "^0.5.0",
"@types/jest": "^29.5.4",
"@types/node": "^20.5.9",
"jest": "^29.6.4",
"js-sha3": "^0.9.1",
"rollup": "^3.28.1",
"rollup-plugin-polyfill-node": "^0.12.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"typechain": "^8.3.1",
"typescript": "^5.2.2",
"uglify-js": "^3.17.4"
},
"dependencies": {
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/keccak256": "^5.7.0",
"@noble/ciphers": "^1.3.0",
"@noble/curves": "^1.9.7",
"@noble/hashes": "^1.8.0",
"open-jsonrpc-provider": "^0.2.1"
},
"peerDependencies": {
"ethers": "6.13.1"
},
"files": [
"dist",
"lib.commonjs",
"lib.esm",
"types"
],
"repository": {
"type": "git",
"url": "git+https://github.com/0gfoundation/0g-ts-sdk.git"
},
"bugs": {
"url": "https://github.com/0gfoundation/0g-ts-sdk/issues"
},
"homepage": "https://github.com/0gfoundation/0g-ts-sdk#readme"
}