63 lines
2.0 KiB
JSON
63 lines
2.0 KiB
JSON
{
|
|
"name": "@solana/spl-token-swap",
|
|
"version": "0.1.3",
|
|
"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.mjs",
|
|
"sideEffects": false,
|
|
"exports": {
|
|
"import": "./dist/esm/index.mjs",
|
|
"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 SwaPpA9LAaLfeLi3a68M4DjnLqgtticKg6CnyNwgAC8 ../../target/deploy/spl_token_swap.so --reset --quiet' http://localhost:8899/health test",
|
|
"lint": "npm run pretty && eslint .",
|
|
"lint:fix": "npm run pretty:fix && eslint . --fix",
|
|
"build:program": "cargo build-bpf --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.10.0",
|
|
"@solana/buffer-layout": "^3.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"
|
|
},
|
|
"engines": {
|
|
"node": ">= 10"
|
|
}
|
|
}
|