package.json 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. "name": "hoppscotch-backend",
  3. "version": "2023.12.2",
  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.4",
  28. "@nestjs-modules/mailer": "^1.9.1",
  29. "@nestjs/apollo": "^12.0.9",
  30. "@nestjs/common": "^10.2.6",
  31. "@nestjs/config": "^3.1.1",
  32. "@nestjs/core": "^10.2.6",
  33. "@nestjs/graphql": "^12.0.9",
  34. "@nestjs/jwt": "^10.1.1",
  35. "@nestjs/passport": "^10.0.2",
  36. "@nestjs/platform-express": "^10.2.6",
  37. "@nestjs/throttler": "^5.0.0",
  38. "@prisma/client": "^4.16.2",
  39. "argon2": "^0.30.3",
  40. "bcrypt": "^5.1.0",
  41. "cookie": "^0.5.0",
  42. "cookie-parser": "^1.4.6",
  43. "express": "^4.17.1",
  44. "express-session": "^1.17.3",
  45. "fp-ts": "^2.13.1",
  46. "graphql": "^16.8.1",
  47. "graphql-query-complexity": "^0.12.0",
  48. "graphql-redis-subscriptions": "^2.6.0",
  49. "graphql-subscriptions": "^2.0.0",
  50. "handlebars": "^4.7.7",
  51. "io-ts": "^2.2.16",
  52. "luxon": "^3.2.1",
  53. "nodemailer": "^6.9.1",
  54. "passport": "^0.6.0",
  55. "passport-github2": "^0.1.12",
  56. "passport-google-oauth20": "^2.0.0",
  57. "passport-jwt": "^4.0.1",
  58. "passport-local": "^1.0.0",
  59. "passport-microsoft": "^1.0.0",
  60. "prisma": "^4.16.2",
  61. "reflect-metadata": "^0.1.13",
  62. "rimraf": "^3.0.2",
  63. "rxjs": "^7.6.0"
  64. },
  65. "devDependencies": {
  66. "@nestjs/cli": "^10.1.18",
  67. "@nestjs/schematics": "^10.0.2",
  68. "@nestjs/testing": "^10.2.6",
  69. "@relmify/jest-fp-ts": "^2.0.2",
  70. "@types/argon2": "^0.15.0",
  71. "@types/bcrypt": "^5.0.0",
  72. "@types/cookie": "^0.5.1",
  73. "@types/cookie-parser": "^1.4.3",
  74. "@types/express": "^4.17.14",
  75. "@types/jest": "^29.4.0",
  76. "@types/luxon": "^3.2.0",
  77. "@types/node": "^18.11.10",
  78. "@types/nodemailer": "^6.4.7",
  79. "@types/passport-github2": "^1.2.5",
  80. "@types/passport-google-oauth20": "^2.0.11",
  81. "@types/passport-jwt": "^3.0.8",
  82. "@types/passport-microsoft": "^0.0.0",
  83. "@types/supertest": "^2.0.12",
  84. "@typescript-eslint/eslint-plugin": "^5.45.0",
  85. "@typescript-eslint/parser": "^5.45.0",
  86. "cross-env": "^7.0.3",
  87. "eslint": "^8.29.0",
  88. "eslint-config-prettier": "^8.5.0",
  89. "eslint-plugin-prettier": "^4.2.1",
  90. "jest": "^29.4.1",
  91. "jest-mock-extended": "^3.0.1",
  92. "jwt": "link:@types/nestjs/jwt",
  93. "prettier": "^2.8.4",
  94. "source-map-support": "^0.5.21",
  95. "supertest": "^6.3.2",
  96. "ts-jest": "29.0.5",
  97. "ts-loader": "^9.4.2",
  98. "ts-node": "^10.9.1",
  99. "tsconfig-paths": "4.1.1",
  100. "typescript": "^4.9.3"
  101. },
  102. "jest": {
  103. "moduleFileExtensions": [
  104. "js",
  105. "json",
  106. "ts"
  107. ],
  108. "setupFilesAfterEnv": [
  109. "../jest.setup.js"
  110. ],
  111. "preset": "ts-jest",
  112. "clearMocks": true,
  113. "collectCoverage": true,
  114. "coverageDirectory": "coverage",
  115. "coverageProvider": "v8",
  116. "rootDir": "src",
  117. "moduleNameMapper": {
  118. "^src/(.*)$": "<rootDir>/$1"
  119. }
  120. }
  121. }