From 1dc123e1fe4a0c30a25c5a2a94e39ed9622f5348 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Wed, 4 Sep 2024 14:59:01 +0900 Subject: [PATCH] fix: override node-addon-api to support c++20 with gcc-11 Brings in https://github.com/nodejs/node-addon-api/commit/fed13534c595c52fdd2cbf64d7bffe83de74ef35 to support compilation with gcc>=11 --- extensions/package.json | 5 +++-- package.json | 3 ++- remote/package.json | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/extensions/package.json b/extensions/package.json index 5cd6099229c08..3cc111c94af59 100644 --- a/extensions/package.json +++ b/extensions/package.json @@ -14,7 +14,8 @@ "esbuild": "0.23.0", "vscode-grammar-updater": "^1.1.0" }, - "resolutions": { - "node-gyp-build": "4.8.1" + "overrides": { + "node-gyp-build": "4.8.1", + "node-addon-api": "8.1.0" } } diff --git a/package.json b/package.json index 6efe5edc76a8e..b2389040b4006 100644 --- a/package.json +++ b/package.json @@ -221,7 +221,8 @@ "yaserver": "^0.4.0" }, "overrides": { - "node-gyp-build": "4.8.1" + "node-gyp-build": "4.8.1", + "node-addon-api": "8.1.0" }, "repository": { "type": "git", diff --git a/remote/package.json b/remote/package.json index 1c0d780abd877..8eedf07d361eb 100644 --- a/remote/package.json +++ b/remote/package.json @@ -39,6 +39,7 @@ "yazl": "^2.4.3" }, "overrides": { - "node-gyp-build": "4.8.1" + "node-gyp-build": "4.8.1", + "node-addon-api": "8.1.0" } }