From 397eecc1daa07046145f09f6153850bc193e8785 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sun, 21 Feb 2021 22:32:11 -0500 Subject: [PATCH] chore: cleanup package.json's (#2223) - Remove the post install in serialport and switch to the funding property - Update the engines field as we don't support node 8 anymore, only node >= 10.0.0 --- .generators/package.json | 5 +++-- package-lock.json | 5 ++++- package.json | 12 +++--------- packages/binding-abstract/package.json | 5 +++-- packages/binding-mock/package.json | 5 +++-- packages/bindings/package.json | 5 +++-- packages/list/package.json | 5 +++-- packages/parser-byte-length/package.json | 5 +++-- packages/parser-cctalk/package.json | 5 +++-- packages/parser-delimiter/package.json | 5 +++-- packages/parser-inter-byte-timeout/package.json | 5 +++-- packages/parser-readline/package.json | 5 +++-- packages/parser-ready/package.json | 5 +++-- packages/parser-regex/package.json | 5 +++-- packages/parser-slip-encoder/package.json | 5 +++-- packages/parser-spacepacket/package.json | 5 +++-- packages/repl/package.json | 5 +++-- packages/serialport/package.json | 6 ++---- packages/serialport/thank-you.js | 3 --- packages/stream/package.json | 5 +++-- packages/terminal/package.json | 5 +++-- 21 files changed, 60 insertions(+), 51 deletions(-) delete mode 100644 packages/serialport/thank-you.js diff --git a/.generators/package.json b/.generators/package.json index ff4b9d900..1eefc3608 100644 --- a/.generators/package.json +++ b/.generators/package.json @@ -6,7 +6,7 @@ "debug": "^4.3.1" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -15,5 +15,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/package-lock.json b/package-lock.json index 9ba2c67ca..3ace01b90 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,10 @@ "sinon": "^9.2.4" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" + }, + "funding": { + "url": "https://opencollective.com/serialport/donate" } }, "node_modules/@babel/code-frame": { diff --git a/package.json b/package.json index 21bc82d84..ea5659efc 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "description": "Node.js packages to access serial ports, process data from them and speak many protocols", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "license": "MIT", "scripts": { @@ -25,13 +25,6 @@ "type": "git", "url": "git://github.com/node-serialport/node-serialport.git" }, - "maintainers": [ - { - "name": "Francis Gulotta", - "email": "wizard@roborooter.com", - "url": "https://www.roborooter.com" - } - ], "devDependencies": { "cc": "^3.0.1", "chai": "^4.3.0", @@ -53,5 +46,6 @@ "prettier": "^2.2.1", "proxyquire": "^2.1.3", "sinon": "^9.2.4" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/binding-abstract/package.json b/packages/binding-abstract/package.json index c15d1a6a0..4d7b610cd 100644 --- a/packages/binding-abstract/package.json +++ b/packages/binding-abstract/package.json @@ -9,7 +9,7 @@ "debug": "^4.3.1" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -18,5 +18,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/binding-mock/package.json b/packages/binding-mock/package.json index f73cb65a5..466562e12 100644 --- a/packages/binding-mock/package.json +++ b/packages/binding-mock/package.json @@ -10,7 +10,7 @@ "debug": "^4.3.1" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -19,5 +19,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/bindings/package.json b/packages/bindings/package.json index ea6765cfa..70ace5ee7 100644 --- a/packages/bindings/package.json +++ b/packages/bindings/package.json @@ -18,7 +18,7 @@ "node-abi": "^2.19.3" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "scripts": { "install": "prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild", @@ -45,5 +45,6 @@ "src/*.h" ], "linelength": "120" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/list/package.json b/packages/list/package.json index f62c41dec..940cb50f9 100644 --- a/packages/list/package.json +++ b/packages/list/package.json @@ -10,7 +10,7 @@ "commander": "^7.1.0" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -19,5 +19,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-byte-length/package.json b/packages/parser-byte-length/package.json index 1f6e481bf..595785f73 100644 --- a/packages/parser-byte-length/package.json +++ b/packages/parser-byte-length/package.json @@ -3,7 +3,7 @@ "version": "9.0.1", "main": "lib", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-cctalk/package.json b/packages/parser-cctalk/package.json index 00eb77316..879dbac35 100644 --- a/packages/parser-cctalk/package.json +++ b/packages/parser-cctalk/package.json @@ -3,7 +3,7 @@ "version": "9.0.1", "main": "lib", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-delimiter/package.json b/packages/parser-delimiter/package.json index 894f54f60..239f3cd36 100644 --- a/packages/parser-delimiter/package.json +++ b/packages/parser-delimiter/package.json @@ -3,7 +3,7 @@ "main": "lib", "version": "9.0.1", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-inter-byte-timeout/package.json b/packages/parser-inter-byte-timeout/package.json index 8949660d0..b376fbba4 100644 --- a/packages/parser-inter-byte-timeout/package.json +++ b/packages/parser-inter-byte-timeout/package.json @@ -3,7 +3,7 @@ "version": "9.0.1", "main": "lib", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-readline/package.json b/packages/parser-readline/package.json index eb425a40a..d3ce2ff9b 100644 --- a/packages/parser-readline/package.json +++ b/packages/parser-readline/package.json @@ -6,7 +6,7 @@ "@serialport/parser-delimiter": "^9.0.1" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -15,5 +15,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-ready/package.json b/packages/parser-ready/package.json index d7e4a7033..4cde3e67e 100644 --- a/packages/parser-ready/package.json +++ b/packages/parser-ready/package.json @@ -3,7 +3,7 @@ "main": "lib", "version": "9.0.1", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-regex/package.json b/packages/parser-regex/package.json index 98276789f..c86afe702 100644 --- a/packages/parser-regex/package.json +++ b/packages/parser-regex/package.json @@ -3,7 +3,7 @@ "main": "lib", "version": "9.0.1", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-slip-encoder/package.json b/packages/parser-slip-encoder/package.json index 8b9fd084f..08cfbe63f 100644 --- a/packages/parser-slip-encoder/package.json +++ b/packages/parser-slip-encoder/package.json @@ -3,7 +3,7 @@ "main": "lib", "version": "9.0.1", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/parser-spacepacket/package.json b/packages/parser-spacepacket/package.json index dfd1106c5..4c14974be 100644 --- a/packages/parser-spacepacket/package.json +++ b/packages/parser-spacepacket/package.json @@ -3,7 +3,7 @@ "main": "lib", "version": "9.0.5", "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -12,5 +12,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/repl/package.json b/packages/repl/package.json index d767d0fce..ba094e5a0 100644 --- a/packages/repl/package.json +++ b/packages/repl/package.json @@ -10,7 +10,7 @@ "serialport": "^9.0.6" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -19,5 +19,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/serialport/package.json b/packages/serialport/package.json index 9b62e6df9..d3005d5e4 100644 --- a/packages/serialport/package.json +++ b/packages/serialport/package.json @@ -58,11 +58,9 @@ "debug": "^4.3.1" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "license": "MIT", - "scripts": { - "postinstall": "node thank-you.js" - }, + "funding": "https://opencollective.com/serialport/donate", "preferUnplugged": false } diff --git a/packages/serialport/thank-you.js b/packages/serialport/thank-you.js deleted file mode 100644 index efd512a6d..000000000 --- a/packages/serialport/thank-you.js +++ /dev/null @@ -1,3 +0,0 @@ -const message = - '\u001b[96m\u001b[1mThank you for using serialport!\u001b[96m\u001b[1m\n\u001b[0m\u001b[96mIf you rely on this package, please consider supporting our open collective:\u001b[22m\u001b[39m\n> \u001b[94mhttps://opencollective.com/serialport/donate\u001b[0m\n\n' -console.log(message) diff --git a/packages/stream/package.json b/packages/stream/package.json index a46119ac2..3093bbbab 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -9,7 +9,7 @@ "@serialport/binding-mock": "^9.0.2" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -18,5 +18,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" } diff --git a/packages/terminal/package.json b/packages/terminal/package.json index 9742d0629..ddb44aae5 100644 --- a/packages/terminal/package.json +++ b/packages/terminal/package.json @@ -12,7 +12,7 @@ "enquirer": "^2.3.5" }, "engines": { - "node": ">=8.6.0" + "node": ">=10.0.0" }, "publishConfig": { "access": "public" @@ -21,5 +21,6 @@ "repository": { "type": "git", "url": "git://github.com/serialport/node-serialport.git" - } + }, + "funding": "https://opencollective.com/serialport/donate" }