Skip to content

Commit

Permalink
add patch-package + nan fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexus committed Dec 11, 2024
1 parent b7f5c2b commit 2ac4a3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"main": "main.js",
"license": "MIT",
"scripts": {
"postinstall": "patch-package",
"start": "electron .",
"configure": "node-gyp configure --release",
"build-all": "node-gyp rebuild && mkdir minkowski >nul 2>&1|echo . >nul && npm run build",
Expand Down Expand Up @@ -37,6 +38,7 @@
"dependencies": {
"@electron/remote": "^2.1.2",
"graceful-fs": "^4.2.11",
"patch-package": "^8.0.0",
"request": "^2.88.2"
},
"build": {
Expand All @@ -52,4 +54,4 @@
"icon": "icon.ico"
}
}
}
}
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..70a0f1a 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 2ac4a3b

Please sign in to comment.