package.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {
  2. "name": "mongoose",
  3. "description": "Mongoose MongoDB ODM",
  4. "version": "6.4.2",
  5. "author": "Guillermo Rauch <guillermo@learnboost.com>",
  6. "keywords": [
  7. "mongodb",
  8. "document",
  9. "model",
  10. "schema",
  11. "database",
  12. "odm",
  13. "data",
  14. "datastore",
  15. "query",
  16. "nosql",
  17. "orm",
  18. "db"
  19. ],
  20. "license": "MIT",
  21. "dependencies": {
  22. "bson": "^4.6.2",
  23. "kareem": "2.4.1",
  24. "mongodb": "4.7.0",
  25. "mpath": "0.9.0",
  26. "mquery": "4.0.3",
  27. "ms": "2.1.3",
  28. "sift": "16.0.0"
  29. },
  30. "devDependencies": {
  31. "@babel/core": "7.18.2",
  32. "@typescript-eslint/eslint-plugin": "5.27.0",
  33. "@typescript-eslint/parser": "5.27.0",
  34. "acquit": "1.2.1",
  35. "acquit-ignore": "0.2.0",
  36. "acquit-require": "0.1.1",
  37. "assert-browserify": "2.0.0",
  38. "axios": "0.27.2",
  39. "babel-loader": "8.2.5",
  40. "benchmark": "2.1.4",
  41. "bluebird": "3.7.2",
  42. "buffer": "^5.6.0",
  43. "cheerio": "1.0.0-rc.11",
  44. "crypto-browserify": "3.12.0",
  45. "dox": "0.3.1",
  46. "eslint": "8.16.0",
  47. "eslint-plugin-mocha-no-only": "1.1.1",
  48. "highlight.js": "11.5.1",
  49. "lodash.isequal": "4.5.0",
  50. "lodash.isequalwith": "4.4.0",
  51. "marked": "4.0.16",
  52. "mkdirp": "^1.0.4",
  53. "mocha": "10.0.0",
  54. "moment": "2.x",
  55. "mongodb-memory-server": "8.6.0",
  56. "ncp": "^2.0.0",
  57. "nyc": "15.1.0",
  58. "pug": "3.0.2",
  59. "q": "1.5.1",
  60. "serve-handler": "6.1.3",
  61. "sinon": "14.0.0",
  62. "stream-browserify": "3.0.0",
  63. "ts-benchmark": "^1.0.2",
  64. "tsd": "0.20.0",
  65. "typescript": "4.7.2",
  66. "uuid": "8.3.2",
  67. "webpack": "5.72.1"
  68. },
  69. "directories": {
  70. "lib": "./lib/mongoose"
  71. },
  72. "scripts": {
  73. "docs:clean": "npm run docs:clean:stable",
  74. "docs:clean:stable": "rimraf index.html && rimraf -rf ./docs/*.html && rimraf -rf ./docs/api && rimraf -rf ./docs/tutorials/*.html && rimraf -rf ./docs/typescript/*.html && rimraf -rf ./docs/*.html && rimraf -rf ./docs/source/_docs && rimraf -rf ./tmp",
  75. "docs:clean:legacy": "rimraf index.html && rimraf -rf ./docs/5.x && rimraf -rf ./docs/source/_docs && rimraf -rf ./tmp",
  76. "docs:copy:tmp": "mkdirp ./tmp/docs/css && mkdirp ./tmp/docs/js && mkdirp ./tmp/docs/images && mkdirp ./tmp/docs/tutorials && mkdirp ./tmp/docs/typescript && ncp ./docs/css ./tmp/docs/css --filter=.css$ && ncp ./docs/js ./tmp/docs/js --filter=.js$ && ncp ./docs/images ./tmp/docs/images && ncp ./docs/tutorials ./tmp/docs/tutorials && ncp ./docs/typescript ./tmp/docs/typescript && cp index.html ./tmp",
  77. "docs:copy:tmp:legacy": "rimraf ./docs/5.x && ncp ./tmp ./docs/5.x",
  78. "docs:checkout:gh-pages": "git checkout gh-pages",
  79. "docs:checkout:legacy": "git checkout 5.x",
  80. "docs:generate": "node website.js",
  81. "docs:generate:search": "node docs/search.js",
  82. "docs:merge:stable": "git merge master",
  83. "docs:merge:legacy": "git merge 5.x",
  84. "docs:test": "npm run docs:generate && npm run docs:generate:search",
  85. "docs:view": "node website.js && node static.js",
  86. "docs:prepare:publish:stable": "npm run docs:checkout:gh-pages && npm run docs:merge:stable && npm run docs:clean:stable && npm run docs:generate && npm run docs:generate:search",
  87. "docs:prepare:publish:legacy": "npm run docs:checkout:legacy && npm run docs:merge:legacy && npm run docs:clean:stable && npm run docs:generate && npm run docs:copy:tmp && docs:checkout:gh-pages && docs:copy:tmp:legacy",
  88. "lint": "eslint .",
  89. "lint-js": "eslint . --ext .js",
  90. "lint-ts": "eslint . --ext .ts",
  91. "build-browser": "node build-browser.js",
  92. "prepublishOnly": "npm run build-browser",
  93. "release": "git pull && git push origin master --tags && npm publish",
  94. "release-legacy": "git pull origin 5.x && git push origin 5.x --tags && npm publish --tag legacy",
  95. "mongo": "node ./tools/repl.js",
  96. "test": "mocha --exit ./test/*.test.js",
  97. "test-rs": "START_REPLICA_SET=1 mocha --timeout 30000 --exit ./test/*.test.js",
  98. "test-tsd": "node ./test/types/check-types-filename && tsd",
  99. "tdd": "mocha ./test/*.test.js --inspect --watch --recursive --watch-files ./**/*.{js,ts}",
  100. "test-coverage": "nyc --reporter=html --reporter=text npm test",
  101. "ts-benchmark": "ts-benchmark -p ./benchmarks/typescript/simple -f 17 18 29 32",
  102. "ts-benchmark-watch": "ts-benchmark -p ./benchmarks/typescript/simple -w ./types -i -s -f 17 18 29 32 -b master"
  103. },
  104. "main": "./index.js",
  105. "types": "./types/index.d.ts",
  106. "engines": {
  107. "node": ">=12.0.0"
  108. },
  109. "bugs": {
  110. "url": "https://github.com/Automattic/mongoose/issues/new"
  111. },
  112. "repository": {
  113. "type": "git",
  114. "url": "git://github.com/Automattic/mongoose.git"
  115. },
  116. "homepage": "https://mongoosejs.com",
  117. "browser": "./dist/browser.umd.js",
  118. "mocha": {
  119. "extension": [
  120. "test.js"
  121. ],
  122. "watch-files": [
  123. "test/**/*.js"
  124. ]
  125. },
  126. "config": {
  127. "mongodbMemoryServer": {
  128. "disablePostinstall": true
  129. }
  130. },
  131. "funding": {
  132. "type": "opencollective",
  133. "url": "https://opencollective.com/mongoose"
  134. },
  135. "tsd": {
  136. "directory": "test/types",
  137. "compilerOptions": {
  138. "esModuleInterop": false,
  139. "strict": true,
  140. "allowSyntheticDefaultImports": true,
  141. "strictPropertyInitialization": false,
  142. "noImplicitAny": false,
  143. "strictNullChecks": true,
  144. "module": "commonjs",
  145. "target": "ES2017"
  146. }
  147. }
  148. }