package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "@serialport/bindings-cpp",
  3. "description": "SerialPort Hardware bindings for node serialport written in c++",
  4. "version": "13.0.0",
  5. "main": "./dist/index.js",
  6. "types": "./dist/index.d.ts",
  7. "keywords": [
  8. "serialport-binding",
  9. "COM",
  10. "com port",
  11. "hardware",
  12. "iot",
  13. "modem",
  14. "serial port",
  15. "serial",
  16. "serialport",
  17. "tty",
  18. "UART"
  19. ],
  20. "dependencies": {
  21. "@serialport/bindings-interface": "1.2.2",
  22. "@serialport/parser-readline": "12.0.0",
  23. "debug": "4.4.0",
  24. "node-addon-api": "8.3.0",
  25. "node-gyp-build": "4.8.4"
  26. },
  27. "devDependencies": {
  28. "@semantic-release/exec": "6.0.3",
  29. "@serialport/binding-mock": "10.2.2",
  30. "@types/chai": "5.0.1",
  31. "@types/chai-subset": "1.3.5",
  32. "@types/debug": "4.1.12",
  33. "@types/mocha": "10.0.10",
  34. "@types/node": "22.8.2",
  35. "@typescript-eslint/eslint-plugin": "6.21.0",
  36. "@typescript-eslint/parser": "6.21.0",
  37. "cc": "3.0.1",
  38. "chai": "5.1.2",
  39. "chai-subset": "1.6.0",
  40. "esbuild": "0.24.2",
  41. "esbuild-register": "3.6.0",
  42. "eslint": "8.57.1",
  43. "mocha": "11.0.1",
  44. "node-abi": "3.71.0",
  45. "node-gyp": "11.0.0",
  46. "nyc": "17.1.0",
  47. "prebuildify": "6.0.1",
  48. "prebuildify-cross": "5.1.1",
  49. "semantic-release": "24.2.0",
  50. "shx": "0.3.4",
  51. "sinon": "19.0.2",
  52. "typescript": "5.7.2"
  53. },
  54. "engines": {
  55. "node": ">=18.0.0"
  56. },
  57. "scripts": {
  58. "build": "rm -rf dist && tsc -p tsconfig-build.json",
  59. "install": "node-gyp-build",
  60. "prebuildify": "prebuildify --napi --target 20.0.0 --force --strip --verbose",
  61. "prebuildify-cross": "prebuildify-cross --napi --target 20.0.0 --force --strip --verbose",
  62. "rebuild": "node-gyp rebuild",
  63. "format": "eslint lib test bin --fix",
  64. "lint": "eslint lib test bin && cc --verbose",
  65. "test": "nyc --reporter lcov --reporter text mocha",
  66. "test:arduino": "TEST_PORT=$(./bin/find-arduino.ts) npm test",
  67. "test:watch": "mocha -w",
  68. "semantic-release": "semantic-release",
  69. "typecheck": "tsc"
  70. },
  71. "publishConfig": {
  72. "access": "public"
  73. },
  74. "license": "MIT",
  75. "gypfile": true,
  76. "cc": {
  77. "filter": [
  78. "legal/copyright",
  79. "build/include"
  80. ],
  81. "files": [
  82. "src/*.cpp",
  83. "src/*.h"
  84. ],
  85. "linelength": "120"
  86. },
  87. "binary": {
  88. "napi_versions": [
  89. 8
  90. ]
  91. },
  92. "repository": {
  93. "type": "git",
  94. "url": "https://github.com/serialport/bindings-cpp.git"
  95. },
  96. "funding": "https://opencollective.com/serialport/donate",
  97. "changelog": {
  98. "labels": {
  99. "breaking": ":boom: BREAKING CHANGES :boom:",
  100. "feature-request": "Features",
  101. "bug": "Bug Fixes",
  102. "docs": "Documentation",
  103. "internal": "Chores"
  104. }
  105. },
  106. "mocha": {
  107. "bail": true,
  108. "require": [
  109. "esbuild-register"
  110. ],
  111. "spec": "lib/**/*.test.*"
  112. }
  113. }