package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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": "6.2.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.36.4",
  31. "@octokit/core": "^4.2.4",
  32. "@rollup/plugin-node-resolve": "^15.1.0",
  33. "@rollup/plugin-typescript": "^11.1.2",
  34. "@types/chai": "^4.3.5",
  35. "@types/mocha": "^10.0.1",
  36. "@types/node": "^18.17.3",
  37. "@types/sinon": "^10.0.16",
  38. "@types/sinon-chai": "^3.2.9",
  39. "@typescript-eslint/eslint-plugin": "^5.62.0",
  40. "@typescript-eslint/parser": "^5.62.0",
  41. "benchmark": "^2.1.4",
  42. "chai": "^4.3.7",
  43. "chalk": "^5.3.0",
  44. "eslint": "^8.46.0",
  45. "eslint-config-prettier": "^8.10.0",
  46. "eslint-plugin-no-bigint-usage": "file:etc/eslint/no-bigint-usage",
  47. "eslint-plugin-prettier": "^4.2.1",
  48. "eslint-plugin-tsdoc": "^0.2.17",
  49. "magic-string": "^0.30.2",
  50. "mocha": "10.2.0",
  51. "node-fetch": "^3.3.2",
  52. "nyc": "^15.1.0",
  53. "prettier": "^2.8.8",
  54. "rollup": "^3.27.2",
  55. "sinon": "^15.2.0",
  56. "sinon-chai": "^3.7.0",
  57. "source-map-support": "^0.5.21",
  58. "standard-version": "^9.5.0",
  59. "tar": "^6.1.15",
  60. "ts-node": "^10.9.1",
  61. "tsd": "^0.28.1",
  62. "typescript": "^5.0.4",
  63. "typescript-cached-transpile": "0.0.6",
  64. "uuid": "^9.0.0"
  65. },
  66. "tsd": {
  67. "directory": "test/types",
  68. "compilerOptions": {
  69. "strict": true,
  70. "target": "esnext",
  71. "module": "commonjs",
  72. "moduleResolution": "node"
  73. }
  74. },
  75. "config": {
  76. "native": false
  77. },
  78. "main": "./lib/bson.cjs",
  79. "module": "./lib/bson.mjs",
  80. "exports": {
  81. "import": {
  82. "types": "./bson.d.ts",
  83. "default": "./lib/bson.mjs"
  84. },
  85. "require": {
  86. "types": "./bson.d.ts",
  87. "default": "./lib/bson.cjs"
  88. },
  89. "react-native": "./lib/bson.rn.cjs",
  90. "browser": "./lib/bson.mjs"
  91. },
  92. "compass:exports": {
  93. "import": "./lib/bson.cjs",
  94. "require": "./lib/bson.cjs"
  95. },
  96. "engines": {
  97. "node": ">=16.20.1"
  98. },
  99. "scripts": {
  100. "pretest": "npm run build",
  101. "test": "npm run check:node && npm run check:web && npm run check:web-no-bigint",
  102. "check:node": "WEB=false mocha test/node",
  103. "check:tsd": "npm run build:dts && tsd",
  104. "check:web": "WEB=true mocha test/node",
  105. "check:web-no-bigint": "WEB=true NO_BIGINT=true mocha test/node",
  106. "check:bench": "cd test/bench && npx tsc && node ./lib/index.js && mv benchmarks.json ../../.",
  107. "build:ts": "node ./node_modules/typescript/bin/tsc",
  108. "build:dts": "npm run build:ts && api-extractor run --typescript-compiler-folder node_modules/typescript --local && node etc/clean_definition_files.cjs",
  109. "build:bundle": "rollup -c rollup.config.mjs",
  110. "build": "npm run build:dts && npm run build:bundle",
  111. "check:lint": "eslint -v && eslint --ext '.js,.ts' --max-warnings=0 src test && npm run build:dts && npm run check:tsd",
  112. "format": "eslint --ext '.js,.ts' src test --fix",
  113. "check:coverage": "nyc --check-coverage npm run check:node",
  114. "prepare": "node etc/prepare.js",
  115. "release": "standard-version -i HISTORY.md"
  116. }
  117. }