package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "name": "bson",
  3. "description": "A bson parser for node.js and the browser",
  4. "keywords": [
  5. "mongodb",
  6. "bson",
  7. "parser"
  8. ],
  9. "files": [
  10. "lib",
  11. "src",
  12. "bson.d.ts",
  13. "etc/prepare.js",
  14. "vendor"
  15. ],
  16. "types": "bson.d.ts",
  17. "version": "7.0.0",
  18. "author": {
  19. "name": "The MongoDB NodeJS Team",
  20. "email": "dbx-node@mongodb.com"
  21. },
  22. "license": "Apache-2.0",
  23. "contributors": [],
  24. "repository": "mongodb/js-bson",
  25. "bugs": {
  26. "url": "https://jira.mongodb.org/projects/NODE/issues/"
  27. },
  28. "devDependencies": {
  29. "@istanbuljs/nyc-config-typescript": "^1.0.2",
  30. "@microsoft/api-extractor": "^7.52.5",
  31. "@rollup/plugin-node-resolve": "^16.0.1",
  32. "@rollup/plugin-typescript": "^12.1.2",
  33. "@types/chai": "^4.3.17",
  34. "@types/mocha": "^10.0.7",
  35. "@types/node": "^24.2.1",
  36. "@types/sinon": "^17.0.4",
  37. "@types/sinon-chai": "^3.2.12",
  38. "@typescript-eslint/eslint-plugin": "^8.31.1",
  39. "@typescript-eslint/parser": "^8.31.1",
  40. "benchmark": "^2.1.4",
  41. "chai": "^4.4.1",
  42. "chalk": "^5.3.0",
  43. "dbx-js-tools": "github:mongodb-js/dbx-js-tools#main",
  44. "eslint": "^9.33.0",
  45. "eslint-config-prettier": "^10.1.2",
  46. "eslint-plugin-prettier": "^5.2.6",
  47. "eslint-plugin-tsdoc": "^0.4.0",
  48. "magic-string": "^0.30.11",
  49. "mocha": "^11.7.1",
  50. "node-fetch": "^3.3.2",
  51. "nyc": "^15.1.0",
  52. "prettier": "^3.5.3",
  53. "rollup": "^4.40.1",
  54. "sinon": "^21.0.0",
  55. "sinon-chai": "^3.7.0",
  56. "source-map-support": "^0.5.21",
  57. "tar": "^7.4.3",
  58. "ts-node": "^10.9.2",
  59. "tsd": "^0.33.0",
  60. "typescript": "^5.8.3",
  61. "typescript-cached-transpile": "0.0.6",
  62. "uuid": "^11.1.0"
  63. },
  64. "tsd": {
  65. "directory": "test/types",
  66. "compilerOptions": {
  67. "strict": true,
  68. "target": "esnext",
  69. "module": "commonjs",
  70. "moduleResolution": "node"
  71. }
  72. },
  73. "config": {
  74. "native": false
  75. },
  76. "main": "./lib/bson.cjs",
  77. "module": "./lib/bson.node.mjs",
  78. "exports": {
  79. "browser": {
  80. "types": "./bson.d.ts",
  81. "default": "./lib/bson.mjs"
  82. },
  83. "react-native": "./lib/bson.rn.cjs",
  84. "default": {
  85. "types": "./bson.d.ts",
  86. "import": "./lib/bson.node.mjs",
  87. "require": "./lib/bson.cjs"
  88. }
  89. },
  90. "compass:exports": {
  91. "import": "./lib/bson.cjs",
  92. "require": "./lib/bson.cjs"
  93. },
  94. "engines": {
  95. "node": ">=20.19.0"
  96. },
  97. "scripts": {
  98. "pretest": "npm run build",
  99. "test": "npm run check:node && npm run check:web",
  100. "check:node": "WEB=false mocha test/node",
  101. "check:tsd": "npm run build:dts && tsd",
  102. "check:web": "WEB=true mocha test/node",
  103. "check:granular-bench": "npm run build:bench && npm run check:baseline-bench && node ./test/bench/etc/run_granular_benchmarks.js",
  104. "check:spec-bench": "npm run build:bench && npm run check:baseline-bench && node ./test/bench/lib/spec/bsonBench.js",
  105. "check:custom-bench": "npm run build && npm run check:baseline-bench && node ./test/bench/custom/main.mjs",
  106. "check:baseline-bench": "node ./test/bench/etc/cpuBaseline.js",
  107. "build:bench": "cd test/bench && npx tsc",
  108. "build:ts": "node ./node_modules/typescript/bin/tsc",
  109. "build:dts": "npm run build:ts && api-extractor run --typescript-compiler-folder node_modules/typescript --local && node etc/clean_definition_files.cjs",
  110. "build:bundle": "rollup -c rollup.config.mjs",
  111. "build": "npm run build:dts && npm run build:bundle",
  112. "check:lint": "ESLINT_USE_FLAT_CONFIG=false eslint -v && ESLINT_USE_FLAT_CONFIG=false eslint --ext '.js,.ts' --max-warnings=0 src test && npm run build:dts && npm run check:tsd",
  113. "format": "ESLINT_USE_FLAT_CONFIG=false eslint --ext '.js,.ts' src test --fix",
  114. "check:coverage": "nyc --check-coverage npm run check:node",
  115. "prepare": "node etc/prepare.js",
  116. "release": "standard-version -i HISTORY.md"
  117. }
  118. }