package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. "name": "hoppscotch-backend",
  3. "version": "2024.10.2",
  4. "description": "",
  5. "author": "",
  6. "private": true,
  7. "license": "UNLICENSED",
  8. "files": [
  9. "prisma",
  10. "dist"
  11. ],
  12. "scripts": {
  13. "prebuild": "rimraf dist",
  14. "build": "nest build",
  15. "generate-gql-sdl": "cross-env GQL_SCHEMA_EMIT_LOCATION='../../../gql-gen/backend-schema.gql' GENERATE_GQL_SCHEMA=true WHITELISTED_ORIGINS='' nest start",
  16. "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
  17. "start": "nest start",
  18. "start:dev": "nest start --watch",
  19. "start:debug": "nest start --debug --watch",
  20. "start:prod": "node dist/main",
  21. "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
  22. "test": "jest",
  23. "postinstall": "prisma generate && pnpm run generate-gql-sdl",
  24. "test:watch": "jest --watch",
  25. "test:cov": "jest --coverage",
  26. "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
  27. "test:e2e": "jest --config ./test/jest-e2e.json",
  28. "do-test": "pnpm run test"
  29. },
  30. "dependencies": {
  31. "@apollo/server": "4.11.0",
  32. "@nestjs-modules/mailer": "2.0.2",
  33. "@nestjs/apollo": "12.2.0",
  34. "@nestjs/common": "10.4.4",
  35. "@nestjs/config": "3.2.3",
  36. "@nestjs/core": "10.4.4",
  37. "@nestjs/graphql": "12.2.0",
  38. "@nestjs/jwt": "10.2.0",
  39. "@nestjs/passport": "10.0.3",
  40. "@nestjs/platform-express": "10.4.4",
  41. "@nestjs/schedule": "4.1.1",
  42. "@nestjs/swagger": "7.4.2",
  43. "@nestjs/terminus": "10.2.3",
  44. "@nestjs/throttler": "6.2.1",
  45. "@prisma/client": "5.20.0",
  46. "argon2": "0.41.1",
  47. "bcrypt": "5.1.1",
  48. "class-transformer": "0.5.1",
  49. "class-validator": "0.14.1",
  50. "cookie": "1.0.0",
  51. "cookie-parser": "1.4.7",
  52. "cron": "3.1.7",
  53. "express": "4.21.1",
  54. "express-session": "1.18.1",
  55. "fp-ts": "2.16.9",
  56. "graphql": "16.9.0",
  57. "graphql-query-complexity": "1.0.0",
  58. "graphql-redis-subscriptions": "2.6.1",
  59. "graphql-subscriptions": "2.0.0",
  60. "handlebars": "4.7.8",
  61. "io-ts": "2.2.21",
  62. "luxon": "3.5.0",
  63. "nodemailer": "6.9.15",
  64. "passport": "0.7.0",
  65. "passport-github2": "0.1.12",
  66. "passport-google-oauth20": "2.0.0",
  67. "passport-jwt": "4.0.1",
  68. "passport-local": "1.0.0",
  69. "passport-microsoft": "2.1.0",
  70. "posthog-node": "4.2.0",
  71. "prisma": "5.20.0",
  72. "reflect-metadata": "0.2.2",
  73. "rimraf": "6.0.1",
  74. "rxjs": "7.8.1"
  75. },
  76. "devDependencies": {
  77. "@nestjs/cli": "10.4.5",
  78. "@nestjs/schematics": "10.1.4",
  79. "@nestjs/testing": "10.4.4",
  80. "@relmify/jest-fp-ts": "2.1.1",
  81. "@types/bcrypt": "5.0.2",
  82. "@types/cookie": "0.6.0",
  83. "@types/cookie-parser": "1.4.7",
  84. "@types/express": "5.0.0",
  85. "@types/jest": "29.5.13",
  86. "@types/luxon": "3.4.2",
  87. "@types/node": "22.7.5",
  88. "@types/nodemailer": "6.4.16",
  89. "@types/passport-github2": "1.2.9",
  90. "@types/passport-google-oauth20": "2.0.16",
  91. "@types/passport-jwt": "4.0.1",
  92. "@types/passport-microsoft": "1.0.3",
  93. "@types/supertest": "6.0.2",
  94. "@typescript-eslint/eslint-plugin": "8.8.1",
  95. "@typescript-eslint/parser": "8.8.1",
  96. "cross-env": "7.0.3",
  97. "eslint": "8.57.0",
  98. "eslint-config-prettier": "9.1.0",
  99. "eslint-plugin-prettier": "5.2.1",
  100. "jest": "29.7.0",
  101. "jest-mock-extended": "4.0.0-beta1",
  102. "jwt": "link:@types/nestjs/jwt",
  103. "prettier": "3.3.3",
  104. "source-map-support": "0.5.21",
  105. "supertest": "7.0.0",
  106. "ts-jest": "29.2.5",
  107. "ts-loader": "9.5.1",
  108. "ts-node": "10.9.2",
  109. "tsconfig-paths": "4.2.0",
  110. "typescript": "5.5.4"
  111. },
  112. "jest": {
  113. "moduleFileExtensions": [
  114. "js",
  115. "json",
  116. "ts"
  117. ],
  118. "setupFilesAfterEnv": [
  119. "../jest.setup.js"
  120. ],
  121. "preset": "ts-jest",
  122. "clearMocks": true,
  123. "collectCoverage": true,
  124. "coverageDirectory": "coverage",
  125. "coverageProvider": "v8",
  126. "rootDir": "src",
  127. "moduleNameMapper": {
  128. "^src/(.*)$": "<rootDir>/$1"
  129. }
  130. }
  131. }