forked from solana-labs/solana-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
59 lines (59 loc) · 1.96 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
{
"name": "@solana/spl-token-swap",
"version": "0.2.1",
"description": "SPL Token Swap JavaScript API",
"license": "MIT",
"author": "Solana Maintainers <maintainers@solana.foundation>",
"homepage": "https://solana.com/",
"repository": {
"type": "git",
"url": "https://github.com/solana-labs/solana-program-library"
},
"bugs": {
"url": "https://github.com/solana-labs/solana-program-library/issues"
},
"publishConfig": {
"access": "public"
},
"main": "dist/cjs/index.js",
"types": "dist/types/index.d.ts",
"module": "dist/esm/index.js",
"sideEffects": false,
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"files": [
"dist",
"src",
"README.md"
],
"scripts": {
"build": "tsc -p tsconfig.json && tsc-esm -p tsconfig.json && tsc -p tsconfig.cjs.json",
"postbuild": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json && echo '{\"type\":\"module\"}' > dist/esm/package.json",
"test": "ts-node test/main.ts",
"start-with-test-validator": "start-server-and-test 'solana-test-validator --bpf-program SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw ../../target/deploy/spl_token_swap.so --reset --quiet' http://localhost:8899/health test",
"lint": "npm run pretty && eslint --max-warnings 0 .",
"lint:fix": "npm run pretty:fix && eslint . --fix",
"build:program": "cargo build-sbf --manifest-path ../program/Cargo.toml",
"pretty": "prettier --check '{,???/**/}*.ts'",
"pretty:fix": "prettier --write '{,???/**/}*.ts'"
},
"keywords": [],
"dependencies": {
"bn.js": "^5.1.3",
"@solana/web3.js": "^1.42.0",
"@solana/buffer-layout": "^4.0.0"
},
"devDependencies": {
"@solana/spl-token": "0.1.8",
"@types/bn.js": "^5.1.0",
"eslint": "^7.9.0",
"eslint-plugin-import": "^2.22.0",
"prettier": "^2.1.2",
"start-server-and-test": "^1.11.6",
"ts-node": "^10.0.0",
"typescript": "^4.2.4",
"typescript-esm": "^2.0.0"
}
}