Files
Kmake/test/addons/esm/binding.gyp
2026-05-26 23:36:42 -07:00

31 lines
772 B
Python

{
'variables': {
'source_dir': '<!("<(python)" -c "import os; print(os.getcwd())")',
},
'targets': [
{
'target_name': 'binding',
'sources': [ 'binding.cc' ],
'includes': ['../common.gypi'],
},
{
'target_name': 'node_modules',
'type': 'none',
'dependencies': [
'binding',
],
# The `exports` in package.json can not reference files outside the package
# directory. Copy the `binding.node` into the package directory so that
# it can be exported with the conditional exports.
'copies': [
{
'files': [
'<(PRODUCT_DIR)/binding.node'
],
'destination': '<(source_dir)/node_modules/esm-package/build',
},
],
}
]
}