node-serialport-bindings-cpp/package.json
Nerivec 5d157b180e
Bring everything up-to-date (#194)
Ended up refactoring quite a bit while investigating a bug (_seems
prebuilds are failing on more and more setups_), figured a recap PR
might help...

- Fix outdated packages (that don't require more refactoring)
- Update node version in `test` to match that of `prebuild` action
- Update napi_versions to 8
- Update prebuildify target to 20
- Update (split) matrix
  - force tags where missing
  - add `win32-arm64`
- fix outdated image for linux-x64 (`centos7-devtoolset7` =>
`almalinux-devtoolset11`)
  - switch `linux-arm64-lts` to `linux-arm64`
- Update artifact names with `matrix.name` to avoid conflicts (merged on
download)
- Fix lint in tests

TODO:

- **Currently, this removes the `semantic-release` step in favor of a
`tree prebuilds` to finish debugging ([naming seems to have
changed](https://www.npmjs.com/package/@serialport/bindings-cpp?activeTab=code):
impact?), see action run:**
  - https://github.com/Nerivec/bindings-cpp/actions/runs/12331013585
- Can probably also add `dockcross/linux-riscv64`, which is becoming
more requested? (although not yet in `prebuild/docker-images`)

_Feel free to update/split as desired._

---------

Co-authored-by: Francis Gulotta <wizard@roborooter.com>
2024-12-23 14:38:28 -05:00

113 lines
2.8 KiB
JSON

{
"name": "@serialport/bindings-cpp",
"description": "SerialPort Hardware bindings for node serialport written in c++",
"version": "0.0.0-development",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"keywords": [
"serialport-binding",
"COM",
"com port",
"hardware",
"iot",
"modem",
"serial port",
"serial",
"serialport",
"tty",
"UART"
],
"dependencies": {
"@serialport/bindings-interface": "1.2.2",
"@serialport/parser-readline": "12.0.0",
"debug": "4.4.0",
"node-addon-api": "8.3.0",
"node-gyp-build": "4.8.4"
},
"devDependencies": {
"@semantic-release/exec": "6.0.3",
"@serialport/binding-mock": "10.2.2",
"@types/chai": "5.0.1",
"@types/chai-subset": "1.3.5",
"@types/debug": "4.1.12",
"@types/mocha": "10.0.10",
"@types/node": "22.8.2",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"cc": "3.0.1",
"chai": "5.1.2",
"chai-subset": "1.6.0",
"esbuild": "0.24.2",
"esbuild-register": "3.6.0",
"eslint": "8.57.1",
"mocha": "11.0.1",
"node-abi": "3.71.0",
"node-gyp": "11.0.0",
"nyc": "17.1.0",
"prebuildify": "6.0.1",
"prebuildify-cross": "5.1.1",
"semantic-release": "24.2.0",
"shx": "0.3.4",
"sinon": "19.0.2",
"typescript": "5.7.2"
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "rm -rf dist && tsc -p tsconfig-build.json",
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --target 20.0.0 --force --strip --verbose",
"prebuildify-cross": "prebuildify-cross --napi --target 20.0.0 --force --strip --verbose",
"rebuild": "node-gyp rebuild",
"format": "eslint lib test bin --fix",
"lint": "eslint lib test bin && cc --verbose",
"test": "nyc --reporter lcov --reporter text mocha",
"test:arduino": "TEST_PORT=$(./bin/find-arduino.ts) npm test",
"test:watch": "mocha -w",
"semantic-release": "semantic-release",
"typecheck": "tsc"
},
"publishConfig": {
"access": "public"
},
"license": "MIT",
"gypfile": true,
"cc": {
"filter": [
"legal/copyright",
"build/include"
],
"files": [
"src/*.cpp",
"src/*.h"
],
"linelength": "120"
},
"binary": {
"napi_versions": [
8
]
},
"repository": {
"type": "git",
"url": "https://github.com/serialport/bindings-cpp.git"
},
"funding": "https://opencollective.com/serialport/donate",
"changelog": {
"labels": {
"breaking": ":boom: BREAKING CHANGES :boom:",
"feature-request": "Features",
"bug": "Bug Fixes",
"docs": "Documentation",
"internal": "Chores"
}
},
"mocha": {
"bail": true,
"require": [
"esbuild-register"
],
"spec": "lib/**/*.test.*"
}
}