package.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. "dist",
  13. "bson.d.ts",
  14. "bson-ts34.d.ts",
  15. "etc/prepare.js",
  16. "bower.json"
  17. ],
  18. "types": "bson.d.ts",
  19. "typesVersions": {
  20. "<=4.0.2": {
  21. "bson.d.ts": [
  22. "bson.ts34.d.ts"
  23. ]
  24. }
  25. },
  26. "version": "4.6.4",
  27. "author": {
  28. "name": "The MongoDB NodeJS Team",
  29. "email": "dbx-node@mongodb.com"
  30. },
  31. "license": "Apache-2.0",
  32. "contributors": [],
  33. "repository": "mongodb/js-bson",
  34. "bugs": {
  35. "url": "https://jira.mongodb.org/projects/NODE/issues/"
  36. },
  37. "devDependencies": {
  38. "@babel/plugin-external-helpers": "^7.10.4",
  39. "@babel/preset-env": "^7.11.0",
  40. "@istanbuljs/nyc-config-typescript": "^1.0.1",
  41. "@microsoft/api-extractor": "^7.11.2",
  42. "@rollup/plugin-babel": "^5.2.0",
  43. "@rollup/plugin-commonjs": "^15.0.0",
  44. "@rollup/plugin-json": "^4.1.0",
  45. "@rollup/plugin-node-resolve": "^9.0.0",
  46. "@rollup/plugin-typescript": "^6.0.0",
  47. "@typescript-eslint/eslint-plugin": "^3.10.1",
  48. "@typescript-eslint/parser": "^3.10.1",
  49. "array-includes": "^3.1.3",
  50. "benchmark": "^2.1.4",
  51. "chai": "^4.2.0",
  52. "downlevel-dts": "^0.9.0",
  53. "eslint": "^7.7.0",
  54. "eslint-config-prettier": "^6.11.0",
  55. "eslint-plugin-prettier": "^3.1.4",
  56. "eslint-plugin-tsdoc": "^0.2.6",
  57. "karma": "^6.3.4",
  58. "karma-chai": "^0.1.0",
  59. "karma-chrome-launcher": "^3.1.0",
  60. "karma-mocha": "^2.0.1",
  61. "karma-mocha-reporter": "^2.2.5",
  62. "karma-rollup-preprocessor": "^7.0.5",
  63. "mocha": "5.2.0",
  64. "node-fetch": "^2.6.1",
  65. "nyc": "^15.1.0",
  66. "object.entries": "^1.1.4",
  67. "prettier": "^2.1.1",
  68. "rimraf": "^3.0.2",
  69. "rollup": "^2.26.5",
  70. "rollup-plugin-commonjs": "^10.1.0",
  71. "rollup-plugin-node-globals": "^1.4.0",
  72. "rollup-plugin-node-polyfills": "^0.2.1",
  73. "rollup-plugin-polyfill-node": "^0.7.0",
  74. "standard-version": "^9.3.0",
  75. "ts-node": "^9.0.0",
  76. "tsd": "^0.17.0",
  77. "typedoc": "^0.21.2",
  78. "typescript": "^4.0.2",
  79. "typescript-cached-transpile": "0.0.6",
  80. "uuid": "^8.3.2"
  81. },
  82. "tsd": {
  83. "directory": "test/types",
  84. "compilerOptions": {
  85. "strict": true,
  86. "target": "esnext",
  87. "module": "commonjs",
  88. "moduleResolution": "node"
  89. }
  90. },
  91. "config": {
  92. "native": false
  93. },
  94. "main": "lib/bson.js",
  95. "module": "dist/bson.esm.js",
  96. "browser": {
  97. "./lib/bson.js": "./dist/bson.browser.umd.js",
  98. "./dist/bson.esm.js": "./dist/bson.browser.esm.js"
  99. },
  100. "engines": {
  101. "node": ">=6.9.0"
  102. },
  103. "scripts": {
  104. "docs": "typedoc",
  105. "test": "npm run build && npm run test-node && npm run test-browser",
  106. "test-node": "mocha test/node test/*_tests.js",
  107. "test-tsd": "npm run build:dts && tsd",
  108. "test-browser": "node --max-old-space-size=4096 ./node_modules/.bin/karma start karma.conf.js",
  109. "build:ts": "tsc",
  110. "build:dts": "npm run build:ts && api-extractor run --typescript-compiler-folder node_modules/typescript --local && rimraf 'lib/**/*.d.ts*' && downlevel-dts bson.d.ts bson-ts34.d.ts",
  111. "build:bundle": "rollup -c rollup.config.js",
  112. "build": "npm run build:dts && npm run build:bundle",
  113. "lint": "eslint -v && eslint --ext '.js,.ts' --max-warnings=0 src test && tsc -v && tsc --noEmit && npm run test-tsd",
  114. "format": "eslint --ext '.js,.ts' src test --fix",
  115. "coverage": "nyc npm run test-node",
  116. "coverage:html": "npm run coverage && open ./coverage/index.html",
  117. "prepare": "node etc/prepare.js",
  118. "release": "standard-version -i HISTORY.md"
  119. },
  120. "dependencies": {
  121. "buffer": "^5.6.0"
  122. }
  123. }