We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ba2feb commit 7ac7860Copy full SHA for 7ac7860
src/native-addons.ts
@@ -86,6 +86,11 @@ async function prepForUsageWithNode (
86
(config.includes = config.includes || []).push(
87
path.join(nodeGypDir, 'addon.gypi')
88
);
89
+ // Remove node-addon-api gyp dummy, which inserts nothing.c into
90
+ // the build tree, which can conflict with other target's nothing.c
91
+ // files.
92
+ config.dependencies = config.dependencies?.filter(
93
+ dep => !/require\s*\(.+node-addon-api.+\)\s*\.\s*gyp/.test(dep)) ?? [];
94
config.variables = {
95
...(config.variables || {}),
96
'node_root_dir%': nodeSourcePath,
0 commit comments