Files
ritmex-bot/package.json
T
discountry 0a757985b8 feat(npm): enhance .npmignore and add prepublish check script
Updated .npmignore to include sensitive files such as .env and key files, ensuring they are excluded from npm packages. Introduced a new script, check-pack.ts, to validate that no sensitive files are included in the npm tarball before publishing. Updated package.json to include the new script in the prepublish process and expanded the files whitelist for packaging.
2026-08-20 21:46:50 +08:00

72 lines
2.3 KiB
JSON

{
"name": "ritmex-bot",
"version": "0.1.0",
"module": "index.ts",
"type": "module",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/discountry/ritmex-bot.git"
},
"bin": {
"ritmex-bot": "./bin/ritmex-bot"
},
"files": [
"bin",
"src",
"scripts",
"index.ts",
"tsconfig.json",
"setup.sh",
".env.example",
"README_en.md",
"cli-guide.md",
"cli-guide.en.md",
"grid-trading.md"
],
"scripts": {
"dev": "bun run index.ts",
"start": "bun run index.ts",
"lint": "oxlint",
"lint:fix": "oxlint --fix",
"typecheck": "tsc --noEmit",
"test": "bun x vitest run",
"test:exchange-contract": "bun x vitest run tests/exchange-contract-suite.test.ts tests/exchange-factory.test.ts tests/config.test.ts",
"test:watch": "bun x vitest",
"check:pack": "bun run scripts/check-pack.ts",
"prepublishOnly": "bun run scripts/check-pack.ts",
"start:trend:silent": "bun run index.ts --strategy trend --silent",
"start:maker:silent": "bun run index.ts --strategy maker --silent",
"start:offset:silent": "bun run index.ts --strategy offset-maker --silent",
"pm2:start:trend": "pm2 start bun --name ritmex-trend --cwd . --restart-delay 5000 -- run index.ts --strategy trend --silent",
"pm2:start:maker": "pm2 start bun --name ritmex-maker --cwd . --restart-delay 5000 -- run index.ts --strategy maker --silent",
"pm2:start:offset": "pm2 start bun --name ritmex-offset --cwd . --restart-delay 5000 -- run index.ts --strategy offset-maker --silent",
"pm2:start:maker-points": "pm2 start bun --name ritmex-maker-points --cwd . --restart-delay 5000 -- run index.ts --strategy maker-points --exchange standx --silent"
},
"devDependencies": {
"@types/bun": "^1.3.9",
"@types/react": "^19",
"@types/ws": "^8.18.1",
"oxlint": "^1.54.0",
"vitest": "^4.0.18"
},
"peerDependencies": {
"typescript": "^5.9.3"
},
"dependencies": {
"@grvt/client": "^1.6.27",
"@nadohq/client": "^0.1.0-alpha.51",
"@noble/ed25519": "^3.0.0",
"axios": "^1.13.6",
"bignumber.js": "^10.0.2",
"ccxt": "^4.5.40",
"dotenv": "^17.3.1",
"ethereum-cryptography": "^3.2.0",
"ink": "^6.8.0",
"react": "^19.2.4",
"trading-signals": "^7.4.3",
"viem": "^2.46.3",
"ws": "^8.19.0"
}
}