package.json 3.7 KB

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