Skip to content

Commit

Permalink
absolute path of emnapi js library
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Jan 27, 2024
1 parent b4e86cf commit ce24e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/emnapi/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'initial_memory%': 16777216,
'max_memory%': 2147483648,
# must be an absolute path
'emnapi_js_library%': '<!(node -p "(()=>{try{return require(\'emnapi\').js_library}catch(e){return \'\'}})()")'
'emnapi_js_library%': '<!(node -p "path.resolve(process.argv[1],\'dist/library_napi.js\').replace(\'\\\\\', \'/\')" <(node_root_dir))'
},

'target_defaults': {
Expand Down

0 comments on commit ce24e73

Please sign in to comment.