Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renamed module_name and target_name #59

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

farfromrefug
Copy link

The idea is to make sure you don't use common names that could be used by other modules.
This becomes important when you use "host override" feature of node-pre-gyp

@@ -1,7 +1,7 @@
{
'targets': [
{
'target_name': 'binding',
'target_name': 'bluetooth_hci_socket',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use dashes in place of underscores here?

Copy link
Contributor

@DomiR DomiR Apr 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. We can use "<(module_name)" here but in the package file it needs to be a valid C variable name, so no dashes.
See https://github.com/mapbox/node-pre-gyp#module_name

@ghost ghost mentioned this pull request Jun 18, 2018
@rzr
Copy link

rzr commented Dec 18, 2018

Is this still relevant ?

@rzr
Copy link

rzr commented Mar 5, 2020

Please can you forward this change to:

https://github.com/abandonware/node-bluetooth-hci-socket/

FYI an updated version has been released:

https://www.npmjs.com/package/@abandonware/bluetooth-hci-socket/v/0.5.3-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants