forked from kklas/anchor-client-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
61 lines (61 loc) · 3.21 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
{
"name": "anchor-client-gen",
"description": "A tool for generating solana web3 clients from anchor IDLs.",
"version": "0.28.1",
"bin": "dist/main.js",
"license": "MIT",
"homepage": "https://github.com/kklas/anchor-client-gen",
"type": "module",
"scripts": {
"watch": "tsc --project tsconfig.build.json --watch",
"build": "yarn build:cli && yarn build:test-fixture && yarn generate-examples",
"build:cli": "rimraf ./dist && tsup src/main.ts --format esm",
"build:test-fixture": "yarn build:example-program && yarn build:test-fixture:copy-idl && yarn build:test-fixture:generate-exp",
"build:test-fixture:copy-idl": "cp tests/example-program/target/idl/example_program.json tests/example-program-gen/idl.json",
"build:test-fixture:generate-exp": "rimraf tests/example-program-gen/exp && node ./dist/main.js tests/example-program-gen/idl.json tests/example-program-gen/exp --program-id 3rTQ3R4B2PxZrAyx7EUefySPgZY8RhJf16cZajbmrzp8",
"build:example-program": "cd tests/example-program && npx anchor build",
"generate-examples": "rimraf ./examples/**/generated-client && yarn generate-examples:basic-2 && yarn generate-examples:tic-tac-toe",
"generate-examples:basic-2": "node ./dist/main.js examples/basic-2/idl.json examples/basic-2/generated-client --program-id Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS",
"generate-examples:tic-tac-toe": "node ./dist/main.js examples/tic-tac-toe/idl.json examples/tic-tac-toe/generated-client --program-id Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS",
"test": "yarn test:prepare && start-server-and-test test:start-validator http://127.0.0.1:8899/health 'vitest --watch'",
"test:no-watch": "yarn test:prepare && start-server-and-test test:start-validator http://127.0.0.1:8899/health 'vitest'",
"test:prepare": "yarn build:example-program && yarn test:generate-test-client",
"test:generate-test-client": "rimraf tests/example-program-gen/act && node dist/main.js tests/example-program/target/idl/example_program.json tests/example-program-gen/act --program-id 3rTQ3R4B2PxZrAyx7EUefySPgZY8RhJf16cZajbmrzp8",
"test:start-validator": "solana-test-validator --ledger tests/.test-ledger --bpf-program 3rTQ3R4B2PxZrAyx7EUefySPgZY8RhJf16cZajbmrzp8 tests/example-program/target/deploy/example_program.so --quiet --reset",
"lint": "eslint . ",
"lint:fix": "eslint . --fix",
"check": "tsc --noEmit"
},
"devDependencies": {
"@coral-xyz/anchor-cli": "0.28.0",
"@types/bn.js": "^5.1.1",
"@types/eslint": "^8.40.1",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"dir-compare": "^4.0.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"rimraf": "^5.0.1",
"start-server-and-test": "^2.0.0",
"ts-jest": "^29.1.0",
"tsup": "^6.7.0",
"typescript": "^5.1.3",
"vitest": "^0.32.0"
},
"dependencies": {
"@coral-xyz/anchor": "0.28.0",
"@coral-xyz/borsh": "^0.28.0",
"@solana/web3.js": "^1.77.3",
"bn.js": "^5.2.1",
"camelcase": "^7.0.1",
"commander": "^10.0.1",
"js-sha256": "^0.9.0",
"prettier": "^2.8.8",
"snake-case": "^3.0.4",
"ts-morph": "^18.0.0"
},
"files": [
"dist"
]
}