-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
73 lines (73 loc) · 4.47 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
{
"name": "root",
"bugs": "https://github.com/sora-xor/sora2-substrate-js-library/issues",
"engines": {
"yarn": "^1.10.1"
},
"homepage": "https://github.com/sora-xor/sora2-substrate-js-library#readme",
"license": "Apache-2.0",
"lint-staged": {
"!(packages/types/**/*)*.{js,ts,json,md}": [
"prettier --write",
"git add"
]
},
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/sora-xor/sora2-substrate-js-library.git"
},
"sideEffects": false,
"workspaces": [
"packages/*"
],
"scripts": {
"build": "yarn build:interfaces:test && polkadot-dev-build-ts",
"build:interfaces:test": "yarn generate:defs:test && yarn generate:meta:test",
"build:interfaces:stage": "yarn generate:defs:stage && yarn generate:meta:stage",
"build:interfaces:prod": "yarn generate:defs:prod && yarn generate:meta:prod",
"bump-version": "lerna version patch --no-push --no-git-tag-version",
"check-deps": "./node_modules/@open-web3/util/scripts/check-deps.js yarn.lock @polkadot/ @open-web3/",
"clean": "polkadot-dev-clean-build",
"demo": "node -r ts-node/register -r tsconfig-paths/register demo.ts",
"example": "wrap () { node -r ts-node/register -r tsconfig-paths/register scripts/examples/\"$*\".ts; }; wrap",
"export-types:all": "yarn export-types:prod && yarn export-types:stage && yarn export-types:test",
"export-types:test": "yarn build:interfaces:test && ts-node --project ./tsconfig.json packages/types/scripts/exportTypesJson.ts test",
"export-types:stage": "yarn build:interfaces:stage && ts-node --project ./tsconfig.json packages/types/scripts/exportTypesJson.ts stage",
"export-types:prod": "yarn build:interfaces:prod && ts-node --project ./tsconfig.json packages/types/scripts/exportTypesJson.ts prod",
"generate:docs": "node -r ts-node/register -r tsconfig-paths/register packages/types/scripts/exportApi.ts",
"generate:defs:test": "node -r ts-node/register -r tsconfig-paths/register node_modules/.bin/polkadot-types-from-defs --package @sora-substrate/types/interfaces --input ./packages/types/src/interfaces --endpoint wss://ws.framenode-2.r0.tst.sora2.soramitsu.co.jp",
"generate:meta:test": "node -r ts-node/register -r tsconfig-paths/register node_modules/.bin/polkadot-types-from-chain --package @sora-substrate/types/interfaces --endpoint wss://ws.framenode-2.r0.tst.sora2.soramitsu.co.jp --output ./packages/types/src/interfaces --strict",
"generate:defs:stage": "node -r ts-node/register -r tsconfig-paths/register node_modules/.bin/polkadot-types-from-defs --package @sora-substrate/types/interfaces --input ./packages/types/src/interfaces --endpoint wss://ws.framenode-8.s5.stg1.sora2.soramitsu.co.jp",
"generate:meta:stage": "node -r ts-node/register -r tsconfig-paths/register node_modules/.bin/polkadot-types-from-chain --package @sora-substrate/types/interfaces --endpoint wss://ws.framenode-8.s5.stg1.sora2.soramitsu.co.jp --output ./packages/types/src/interfaces --strict",
"generate:defs:prod": "node -r ts-node/register -r tsconfig-paths/register node_modules/.bin/polkadot-types-from-defs --package @sora-substrate/types/interfaces --input ./packages/types/src/interfaces --endpoint wss://sora.api.onfinality.io/public-ws",
"generate:meta:prod": "node -r ts-node/register -r tsconfig-paths/register node_modules/.bin/polkadot-types-from-chain --package @sora-substrate/types/interfaces --endpoint wss://sora.api.onfinality.io/public-ws --output ./packages/types/src/interfaces --strict",
"lint": "prettier --write .",
"postinstall": "polkadot-dev-yarn-only",
"prepare": "husky",
"publish-workspaces": "lerna publish from-package",
"set-version": "lerna version --no-push --no-git-tag-version",
"test": "jest --testPathIgnorePatterns",
"test:all": "yarn build && yarn test --coverage",
"transfers": "node -r ts-node/register -r tsconfig-paths/register scripts/transfers.ts",
"verify-pool-account-gen": "node -r ts-node/register -r tsconfig-paths/register scripts/verifyPoolAccountGeneration.ts"
},
"devDependencies": {
"@lerna/publish": "^6.6.2",
"@open-web3/util": "^0.8.2-11",
"@polkadot/dev": "^0.32.17",
"@types/jest": "^29.5.12",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0"
},
"resolutions": {
"typescript": "4.7.3"
}
}