mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-04-30 20:51:51 +08:00
75 lines
3.1 KiB
JSON
75 lines
3.1 KiB
JSON
{
|
|
"name": "ordinals-api",
|
|
"description": "REST API that exposes indexed ordinals data",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"author": "Hiro Systems PBC <engineering@hiro.so> (https://hiro.so)",
|
|
"license": "Apache 2.0",
|
|
"scripts": {
|
|
"build": "rimraf ./dist && tsc --project tsconfig.build.json",
|
|
"start": "node dist/src/index.js",
|
|
"start-ts": "ts-node ./src/index.ts",
|
|
"test": "jest --runInBand",
|
|
"test:brc-20": "npm run test -- ./tests/brc-20/",
|
|
"test:api": "npm run test -- ./tests/api/",
|
|
"lint:eslint": "eslint . --ext .js,.jsx,.ts,.tsx -f unix",
|
|
"lint:prettier": "prettier --check src/**/*.ts tests/**/*.ts",
|
|
"lint:unused-exports": "ts-unused-exports tsconfig.json --showLineNumber --excludePathsFromReport=util/*",
|
|
"generate:openapi": "rimraf ./tmp && node -r ts-node/register ./util/openapi-generator.ts",
|
|
"generate:docs": "redoc-cli build --output ./tmp/index.html ./tmp/openapi.yaml",
|
|
"generate:git-info": "rimraf .git-info && node_modules/.bin/api-toolkit-git-info",
|
|
"generate:vercel": "npm run generate:git-info && npm run generate:openapi && npm run generate:docs",
|
|
"testenv:run": "docker compose -f ../../dockerfiles/docker-compose.dev.postgres.yml up",
|
|
"testenv:stop": "docker compose -f ../../dockerfiles/docker-compose.dev.postgres.yml down -v -t 0",
|
|
"testenv:logs": "docker compose -f ../../dockerfiles/docker-compose.dev.postgres.yml logs -t -f",
|
|
"generate:client:typescript": "swagger-codegen generate -i ./tmp/openapi.yaml -l typescript-fetch -o ./client/typescript -c ./client/typescript.json"
|
|
},
|
|
"prettier": "@stacks/prettier-config",
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^17.4.3",
|
|
"@commitlint/config-conventional": "^17.4.3",
|
|
"@stacks/eslint-config": "^1.2.0",
|
|
"@types/jest": "^29.2.4",
|
|
"@types/supertest": "^2.0.12",
|
|
"@typescript-eslint/eslint-plugin": "^5.46.1",
|
|
"@typescript-eslint/parser": "^5.51.0",
|
|
"@semantic-release/changelog": "^6.0.3",
|
|
"@semantic-release/commit-analyzer": "^10.0.4",
|
|
"@semantic-release/git": "^10.0.1",
|
|
"babel-jest": "^29.3.1",
|
|
"conventional-changelog-conventionalcommits": "^6.1.0",
|
|
"eslint": "^8.29.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
"husky": "^8.0.3",
|
|
"jest": "^29.3.1",
|
|
"prettier": "^2.8.1",
|
|
"redoc-cli": "^0.13.21",
|
|
"rimraf": "^3.0.2",
|
|
"semantic-release": "^24.2.1",
|
|
"semantic-release-monorepo": "^8.0.2",
|
|
"ts-jest": "^29.0.3",
|
|
"ts-node": "^10.8.2",
|
|
"ts-unused-exports": "^10.0.1",
|
|
"typescript": "^4.7.4"
|
|
},
|
|
"dependencies": {
|
|
"@fastify/cors": "^8.0.0",
|
|
"@fastify/formbody": "^7.0.1",
|
|
"@fastify/multipart": "^8.3.1",
|
|
"@fastify/swagger": "^8.3.1",
|
|
"@fastify/type-provider-typebox": "^3.2.0",
|
|
"@hirosystems/api-toolkit": "^1.7.2",
|
|
"@hirosystems/chainhook-client": "^1.12.0",
|
|
"@types/node": "^18.13.0",
|
|
"bignumber.js": "^9.1.1",
|
|
"bitcoinjs-lib": "^6.1.0",
|
|
"env-schema": "^5.2.0",
|
|
"fastify": "^4.3.0",
|
|
"fastify-metrics": "^10.2.0",
|
|
"pino": "^8.10.0",
|
|
"postgres": "^3.3.4",
|
|
"undici": "^5.28.5"
|
|
}
|
|
}
|