package.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. {
  2. "name": "protobufjs",
  3. "version": "7.4.0",
  4. "versionScheme": "~",
  5. "description": "Protocol Buffers for JavaScript (& TypeScript).",
  6. "author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
  7. "license": "BSD-3-Clause",
  8. "repository": "protobufjs/protobuf.js",
  9. "bugs": "https://github.com/protobufjs/protobuf.js/issues",
  10. "homepage": "https://protobufjs.github.io/protobuf.js/",
  11. "engines": {
  12. "node": ">=12.0.0"
  13. },
  14. "eslintConfig": {
  15. "env": {
  16. "es6": true
  17. },
  18. "parserOptions": {
  19. "ecmaVersion": 6
  20. }
  21. },
  22. "keywords": [
  23. "protobuf",
  24. "protocol-buffers",
  25. "serialization",
  26. "typescript"
  27. ],
  28. "main": "index.js",
  29. "types": "index.d.ts",
  30. "scripts": {
  31. "bench": "node bench",
  32. "build": "npm run build:bundle && npm run build:types",
  33. "build:bundle": "gulp --gulpfile scripts/gulpfile.js",
  34. "build:types": "node cli/bin/pbts --main --global protobuf --out index.d.ts src/ lib/aspromise/index.js lib/base64/index.js lib/codegen/index.js lib/eventemitter/index.js lib/float/index.js lib/fetch/index.js lib/inquire/index.js lib/path/index.js lib/pool/index.js lib/utf8/index.js",
  35. "changelog": "node scripts/changelog -w",
  36. "coverage": "nyc tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
  37. "docs": "jsdoc -c config/jsdoc.json -R README.md --verbose --pedantic",
  38. "lint": "npm run lint:sources && npm run lint:types",
  39. "lint:sources": "eslint \"**/*.js\" -c config/eslint.json",
  40. "lint:types": "tslint \"**/*.d.ts\" -e \"**/node_modules/**\" -t stylish -c config/tslint.json",
  41. "pages": "node scripts/pages",
  42. "prepublish": "cd cli && npm install && cd .. && npm run build",
  43. "prepublishOnly": "cd cli && npm install && cd .. && npm run build",
  44. "postinstall": "node scripts/postinstall",
  45. "prof": "node bench/prof",
  46. "test": "npm run test:sources && npm run test:types",
  47. "test:sources": "tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
  48. "test:types": "tsc tests/comp_typescript.ts --lib es2015 --esModuleInterop --strictNullChecks --experimentalDecorators --emitDecoratorMetadata && tsc tests/data/test.js.ts --lib es2015 --esModuleInterop --noEmit --strictNullChecks && tsc tests/data/*.ts --lib es2015 --esModuleInterop --noEmit --strictNullChecks",
  49. "make": "npm run lint:sources && npm run build && npm run lint:types && node ./scripts/gentests.js && npm test"
  50. },
  51. "dependencies": {
  52. "@protobufjs/aspromise": "^1.1.2",
  53. "@protobufjs/base64": "^1.1.2",
  54. "@protobufjs/codegen": "^2.0.4",
  55. "@protobufjs/eventemitter": "^1.1.0",
  56. "@protobufjs/fetch": "^1.1.0",
  57. "@protobufjs/float": "^1.0.2",
  58. "@protobufjs/inquire": "^1.1.0",
  59. "@protobufjs/path": "^1.1.2",
  60. "@protobufjs/pool": "^1.1.0",
  61. "@protobufjs/utf8": "^1.1.0",
  62. "@types/node": ">=13.7.0",
  63. "long": "^5.0.0"
  64. },
  65. "devDependencies": {
  66. "benchmark": "^2.1.4",
  67. "browserify": "^17.0.0",
  68. "browserify-wrap": "^1.0.2",
  69. "bundle-collapser": "^1.3.0",
  70. "chalk": "^4.0.0",
  71. "escodegen": "^1.13.0",
  72. "eslint": "^8.15.0",
  73. "espree": "^9.0.0",
  74. "estraverse": "^5.1.0",
  75. "gh-pages": "^4.0.0",
  76. "git-raw-commits": "^2.0.3",
  77. "git-semver-tags": "^4.0.0",
  78. "google-protobuf": "^3.11.3",
  79. "gulp": "^4.0.2",
  80. "gulp-header": "^2.0.9",
  81. "gulp-if": "^3.0.0",
  82. "gulp-sourcemaps": "^3.0.0",
  83. "gulp-uglify": "^3.0.2",
  84. "jaguarjs-jsdoc": "github:dcodeIO/jaguarjs-jsdoc",
  85. "jsdoc": "^4.0.0",
  86. "minimist": "^1.2.0",
  87. "nyc": "^15.0.0",
  88. "reflect-metadata": "^0.1.13",
  89. "tape": "^5.0.0",
  90. "tslint": "^6.0.0",
  91. "typescript": "^3.7.5",
  92. "uglify-js": "^3.7.7",
  93. "vinyl-buffer": "^1.0.1",
  94. "vinyl-fs": "^3.0.3",
  95. "vinyl-source-stream": "^2.0.0"
  96. },
  97. "files": [
  98. "index.js",
  99. "index.d.ts",
  100. "light.d.ts",
  101. "light.js",
  102. "minimal.d.ts",
  103. "minimal.js",
  104. "package-lock.json",
  105. "tsconfig.json",
  106. "scripts/postinstall.js",
  107. "dist/**",
  108. "ext/**",
  109. "google/**",
  110. "src/**"
  111. ]
  112. }