package.json 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "orion",
  3. "version": "2.1.0",
  4. "engines": {
  5. "node": ">=16"
  6. },
  7. "scripts": {
  8. "generate:schema": "./scripts/generate-schema-file.sh",
  9. "build": "npm run generate:schema; rm -rf lib && tsc",
  10. "lint": "eslint --ext .ts ./src",
  11. "format": "prettier --write .",
  12. "checks": "prettier --check . && npm run lint && make codegen && tsc --noEmit --pretty",
  13. "db:migrate": "npx squid-typeorm-migration apply",
  14. "processor-start": "node lib/processor.js",
  15. "query-node-start": "NODE_ENV=production patch-package --patch-dir assets/patches && squid-graphql-server --subscriptions --max-response-size 10000 --dumb-cache in-memory --dumb-cache-ttl 1000 --dumb-cache-size 100 --dumb-cache-max-age 1000",
  16. "postinstall": "patch-package --patch-dir assets/patches",
  17. "tests:codegen": "npx graphql-codegen -c ./src/tests/v1/codegen.yml && npx graphql-codegen -c ./src/tests/v2/codegen.yml",
  18. "tests:compareState": "npx ts-node ./src/tests/compareState.ts",
  19. "tests:benchmark": "npx ts-node ./src/tests/benchmarks/index.ts",
  20. "v1-migration:prepare": "./scripts/orion-v1-migration/export.sh && npx ts-node ./scripts/orion-v1-migration/prepareData.ts"
  21. },
  22. "overrides": {
  23. "@polkadot/api": "8.9.1",
  24. "@polkadot/keyring": "9.5.1",
  25. "@polkadot/types": "8.9.1",
  26. "@polkadot/util": "9.5.1",
  27. "@polkadot/util-crypto": "9.5.1",
  28. "@joystream/types": "0.20.5"
  29. },
  30. "dependencies": {
  31. "@joystream/js": "^1.4.0",
  32. "@polkadot/util-crypto": "9.5.1",
  33. "@subsquid/archive-registry": "^2.1.0",
  34. "@subsquid/graphql-server": "^3.3.2",
  35. "@subsquid/ss58": "^0.1.3",
  36. "@subsquid/substrate-processor": "^2.2.0",
  37. "@subsquid/typeorm-migration": "^0.1.4",
  38. "@subsquid/typeorm-store": "^0.2.0",
  39. "@types/lodash": "^4.14.189",
  40. "@typescript/analyze-trace": "^0.9.1",
  41. "ajv": "^6.11.0",
  42. "axios": "^1.2.1",
  43. "csv-stringify": "^6.3.0",
  44. "dotenv": "^16.0.3",
  45. "dotenv-expand": "^10.0.0",
  46. "graphql-tools": "^8.3.11",
  47. "haversine-distance": "^1.2.1",
  48. "lodash": "^4.17.21",
  49. "patch-package": "^6.5.0",
  50. "pg": "8.8.0",
  51. "type-graphql": "^1.2.0-rc.1",
  52. "typeorm": "^0.3.11",
  53. "url-join": "^4"
  54. },
  55. "devDependencies": {
  56. "@graphql-codegen/cli": "^3.0.0",
  57. "@graphql-codegen/import-types-preset": "^1.18.1",
  58. "@graphql-codegen/typescript": "^1.22.0",
  59. "@graphql-codegen/typescript-document-nodes": "^2.2.11",
  60. "@graphql-codegen/typescript-operations": "^1.17.16",
  61. "@subsquid/substrate-metadata-explorer": "^1.0.9",
  62. "@subsquid/substrate-typegen": "^2.1.0",
  63. "@subsquid/typeorm-codegen": "^0.3.1",
  64. "@types/node": "16.11.56",
  65. "@types/url-join": "^4",
  66. "@typescript-eslint/eslint-plugin": "^5.53.0",
  67. "@typescript-eslint/parser": "^5.43.0",
  68. "eslint": "^8.35.0",
  69. "eslint-config-prettier": "^8.5.0",
  70. "eslint-config-standard": "^17.0.0",
  71. "eslint-config-standard-with-typescript": "^34.0.0",
  72. "eslint-plugin-import": "^2.27.5",
  73. "eslint-plugin-n": "^15.6.1",
  74. "eslint-plugin-prettier": "^4.2.1",
  75. "eslint-plugin-promise": "^6.1.1",
  76. "eslint-plugin-standard": "^5.0.0",
  77. "prettier": "^2.7.1",
  78. "typescript": "^4.8.2"
  79. }
  80. }