package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. {
  2. "name": "hoppscotch-backend",
  3. "version": "2024.3.0",
  4. "description": "",
  5. "author": "",
  6. "private": true,
  7. "license": "UNLICENSED",
  8. "scripts": {
  9. "prebuild": "rimraf dist",
  10. "build": "nest build",
  11. "generate-gql-sdl": "cross-env GQL_SCHEMA_EMIT_LOCATION='../../../gql-gen/backend-schema.gql' GENERATE_GQL_SCHEMA=true WHITELISTED_ORIGINS='' nest start",
  12. "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
  13. "start": "nest start",
  14. "start:dev": "nest start --watch",
  15. "start:debug": "nest start --debug --watch",
  16. "start:prod": "node dist/main",
  17. "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
  18. "test": "jest",
  19. "postinstall": "prisma generate && pnpm run generate-gql-sdl",
  20. "test:watch": "jest --watch",
  21. "test:cov": "jest --coverage",
  22. "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
  23. "test:e2e": "jest --config ./test/jest-e2e.json",
  24. "do-test": "pnpm run test"
  25. },
  26. "dependencies": {
  27. "@apollo/server": "4.9.5",
  28. "@nestjs-modules/mailer": "1.9.1",
  29. "@nestjs/apollo": "12.0.9",
  30. "@nestjs/common": "10.2.7",
  31. "@nestjs/config": "3.1.1",
  32. "@nestjs/core": "10.2.7",
  33. "@nestjs/graphql": "12.0.9",
  34. "@nestjs/jwt": "10.1.1",
  35. "@nestjs/passport": "10.0.2",
  36. "@nestjs/platform-express": "10.2.7",
  37. "@nestjs/schedule": "4.0.1",
  38. "@nestjs/throttler": "5.0.1",
  39. "@prisma/client": "5.8.1",
  40. "argon2": "0.30.3",
  41. "bcrypt": "5.1.0",
  42. "cookie": "0.5.0",
  43. "cookie-parser": "1.4.6",
  44. "cron": "3.1.6",
  45. "express": "4.18.2",
  46. "express-session": "1.17.3",
  47. "fp-ts": "2.13.1",
  48. "graphql": "16.8.1",
  49. "graphql-query-complexity": "0.12.0",
  50. "graphql-redis-subscriptions": "2.6.0",
  51. "graphql-subscriptions": "2.0.0",
  52. "handlebars": "4.7.7",
  53. "io-ts": "2.2.16",
  54. "luxon": "3.2.1",
  55. "nodemailer": "6.9.1",
  56. "passport": "0.6.0",
  57. "passport-github2": "0.1.12",
  58. "passport-google-oauth20": "2.0.0",
  59. "passport-jwt": "4.0.1",
  60. "passport-local": "1.0.0",
  61. "passport-microsoft": "1.0.0",
  62. "posthog-node": "3.6.3",
  63. "prisma": "5.8.1",
  64. "reflect-metadata": "0.1.13",
  65. "rimraf": "3.0.2",
  66. "rxjs": "7.6.0"
  67. },
  68. "devDependencies": {
  69. "@nestjs/cli": "10.2.1",
  70. "@nestjs/schematics": "10.0.3",
  71. "@nestjs/testing": "10.2.7",
  72. "@relmify/jest-fp-ts": "2.0.2",
  73. "@types/argon2": "0.15.0",
  74. "@types/bcrypt": "5.0.0",
  75. "@types/cookie": "0.5.1",
  76. "@types/cookie-parser": "1.4.3",
  77. "@types/express": "4.17.14",
  78. "@types/jest": "29.4.0",
  79. "@types/luxon": "3.2.0",
  80. "@types/node": "18.11.10",
  81. "@types/nodemailer": "6.4.7",
  82. "@types/passport-github2": "1.2.5",
  83. "@types/passport-google-oauth20": "2.0.11",
  84. "@types/passport-jwt": "3.0.8",
  85. "@types/passport-microsoft": "0.0.0",
  86. "@types/supertest": "2.0.12",
  87. "@typescript-eslint/eslint-plugin": "5.45.0",
  88. "@typescript-eslint/parser": "5.45.0",
  89. "cross-env": "7.0.3",
  90. "eslint": "8.29.0",
  91. "eslint-config-prettier": "8.5.0",
  92. "eslint-plugin-prettier": "4.2.1",
  93. "jest": "29.4.1",
  94. "jest-mock-extended": "3.0.1",
  95. "jwt": "link:@types/nestjs/jwt",
  96. "prettier": "2.8.4",
  97. "source-map-support": "0.5.21",
  98. "supertest": "6.3.2",
  99. "ts-jest": "29.0.5",
  100. "ts-loader": "9.4.2",
  101. "ts-node": "10.9.1",
  102. "tsconfig-paths": "4.1.1",
  103. "typescript": "4.9.3"
  104. },
  105. "jest": {
  106. "moduleFileExtensions": [
  107. "js",
  108. "json",
  109. "ts"
  110. ],
  111. "setupFilesAfterEnv": [
  112. "../jest.setup.js"
  113. ],
  114. "preset": "ts-jest",
  115. "clearMocks": true,
  116. "collectCoverage": true,
  117. "coverageDirectory": "coverage",
  118. "coverageProvider": "v8",
  119. "rootDir": "src",
  120. "moduleNameMapper": {
  121. "^src/(.*)$": "<rootDir>/$1"
  122. }
  123. }
  124. }