Skip to content

Commit

Permalink
chore: update prebuilds and patch-package nan until nodejs/nan#979 is…
Browse files Browse the repository at this point in the history
… merged
  • Loading branch information
IsaacAderogba committed Nov 20, 2024
1 parent 0b344d5 commit 4ecdfb9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 60 deletions.
4 changes: 2 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"<!(node -e \"require('nan')\")",
],
'cflags_cc': [
'-std=c++17',
'-std=c++20',
'-fno-rtti',
'-fno-exceptions',
],
Expand All @@ -23,7 +23,7 @@
'conditions': [
['OS == "mac"', {
'xcode_settings': {
'CLANG_CXX_LANGUAGE_STANDARD': 'c++17'
'CLANG_CXX_LANGUAGE_STANDARD': 'c++20'
},
'include_dirs': [
'System/Library/Frameworks/CoreFoundation.Framework/Headers',
Expand Down
77 changes: 26 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@todesktop/robotjs-prebuild",
"version": "0.6.19",
"version": "0.6.20",
"description": "Node.js Desktop Automation.",
"main": "index.js",
"typings": "index.d.ts",
Expand All @@ -11,10 +11,11 @@
"test:win32": "jasmine test/**/*.js",
"install": "node-gyp-build",
"install-debug": "prebuild-install --verbose || node-gyp rebuild --debug",
"prebuild": "prebuildify --target -t node@15.0.0 -t node@16.0.0 -t node@18.0.0 -t [email protected] -t electron@26.0.0 -t electron@27.0.0 -t [email protected]",
"prebuild": "prebuildify --target -t node@14.0.0 -t node@18.0.0 -t node@19.0.0 -t [email protected] -t node@21.0.0 -t node@22.0.0 -t [email protected] -t electron@30.0.0 -t electron@33.0.0",
"release:minor": "npm version minor && npm publish",
"release:major": "npm version major && npm publish",
"publish": "npm publish"
"publish": "npm publish",
"postinstall": "patch-package"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -45,16 +46,16 @@
},
"homepage": "https://github.com/ToDesktop/robotjs-prebuild",
"dependencies": {
"nan": "^2.19.0",
"cross-zip": "^4.0.0",
"nan": "^2.22.0",
"node-addon-api": "^5.0.0",
"node-gyp-build": "^4.5.0",
"node-gyp-build": "^4.8.4",
"patch-package": "^6.4.7",
"prebuildify": "^5.0.1"
"prebuildify": "^6.0.1"
},
"devDependencies": {
"electron": "^30.0.0",
"@electron/rebuild": "^3.6.0",
"electron": "^30.0.0",
"node-abi": "^3.62.0",
"node-gyp": "^10.1.0"
},
Expand Down
13 changes: 13 additions & 0 deletions patches/nan+2.22.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/nan/nan.h b/node_modules/nan/nan.h
index 1ac7f74..c2bf9d8 100644
--- a/node_modules/nan/nan.h
+++ b/node_modules/nan/nan.h
@@ -3042,7 +3042,7 @@ MakeMaybe(MaybeMaybe<T> v) {

//=== ScriptOrigin =============================================================

-#include "nan_scriptorigin.h" // NOLINT(build/include)
+// #include "nan_scriptorigin.h" // NOLINT(build/include)

} // end of namespace Nan

0 comments on commit 4ecdfb9

Please sign in to comment.