-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
69 lines (69 loc) · 2.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
{
"name": "@0glabs/0g-ts-sdk",
"version": "0.2.0",
"description": "JS SDK for 0G Storage",
"main": "./lib.commonjs/index.js",
"exports": {
"require": "./lib.commonjs/index.js",
"import": "./lib.esm/index.js"
},
"module": "./lib.esm/index.js",
"packageManager": "[email protected]",
"browser": {},
"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",
"open-jsonrpc-provider": "^0.2.1"
},
"peerDependencies": {
"ethers": "6.13.1"
},
"types": "./lib.commonjs/index.d.ts",
"directories": {
"example": "examples",
"test": "tests"
},
"repository": {
"type": "git",
"url": "git+https://github.com/0glabs/0g-ts-sdk.git"
},
"bugs": {
"url": "https://github.com/0glabs/0g-ts-sdk/issues"
},
"homepage": "https://github.com/0glabs/0g-ts-sdk#readme"
}