60 lines
2.7 KiB
JSON
60 lines
2.7 KiB
JSON
{
|
|
"name": "@switchboard-xyz/switchboard-v2-monorepo",
|
|
"description": "switchboard v2 repo containing type definitions, libraries, and examples",
|
|
"private": true,
|
|
"workspaces": [
|
|
"tools/eslint",
|
|
"libraries/sbv2-lite",
|
|
"libraries/ts",
|
|
"libraries/sbv2-utils",
|
|
"cli",
|
|
"packages/*",
|
|
"programs/*",
|
|
"website"
|
|
],
|
|
"scripts": {
|
|
"watch": "yarn workspaces run watch",
|
|
"build": "yarn workspaces run build",
|
|
"build:ts": "yarn workspace @switchboard-xyz/switchboard-v2 build",
|
|
"build:cli": "yarn workspace @switchboard-xyz/switchboardv2-cli build",
|
|
"start": "echo \"Error: no start script specified\" && exit 1",
|
|
"anchor:setup": "anchor build && node ./tools/scripts/setup-example-programs.js",
|
|
"test:anchor": "yarn workspace anchor-feed-parser anchor:test && yarn workspace spl-feed-parser anchor:test && yarn workspace anchor-vrf-parser anchor:test",
|
|
"test:libraries:ts": "yarn workspace @switchboard-xyz/sbv2-lite test && yarn workspace @switchboard-xyz/switchboard-v2 test",
|
|
"test:libraries:py": "cd libraries/py && poetry run pytest",
|
|
"test:libraries:rs": "cd libraries/rs && cargo test",
|
|
"test:libraries": "yarn test:libraries:ts & yarn test:libraries:rs",
|
|
"docs": "yarn workspace website start",
|
|
"docs:build:py": "pip install poetry && cd libraries/py && poetry install && poetry run python -m pdoc switchboardpy -o ../../website/static/api/py",
|
|
"docs:build:ts": "yarn workspace @switchboard-xyz/switchboard-v2 docgen",
|
|
"docs:build:sbv2-lite": "yarn workspace @switchboard-xyz/sbv2-lite docgen",
|
|
"docs:build:sbv2-utils": "yarn workspace @switchboard-xyz/sbv2-utils docgen",
|
|
"docs:build:cli": "node ./tools/scripts/generate-cli-docs.js",
|
|
"docs:build:site": "yarn workspace website build:site",
|
|
"docs:build": "run-s docs:build:ts docs:build:sbv2-lite docs:build:sbv2-utils docs:build:site",
|
|
"docs:deploy": "yarn workspace website deploy",
|
|
"gen:idl": "rawrtools gen:anchor SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f -o website/idl -p /idl",
|
|
"gen:idl:devnet": "rawrtools gen:anchor --devnet 2TfB33aLaneQb5TNVwyDz3jSZXS6jdW2ARw1Dgf84XCG -o website/idl -p /idl",
|
|
"nuke": "shx rm -rf {./programs/*,./packages/*,./website,./libraries/*,.}/{node_modules,yarn*.log,build,dist,lib,.anchor,Cargo.lock,.docusaurus}"
|
|
},
|
|
"devDependencies": {
|
|
"@gallynaut/rawrtools": "^0.0.1",
|
|
"@types/node": "^17.0.35",
|
|
"anchor-client-gen": "^0.24.0",
|
|
"lerna": "^4.0.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"shelljs": "^0.8.5",
|
|
"shx": "^0.3.4",
|
|
"ts-node": "^10.8.0",
|
|
"typedoc": "^0.22.15",
|
|
"typescript": "^4.7.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=16",
|
|
"npm": ">=8"
|
|
},
|
|
"dependencies": {
|
|
"dotenv": "^16.0.1"
|
|
}
|
|
}
|