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

Fix package entrypoint #12

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

Conversation

crazyquark
Copy link

This allows the package to be used using require() and npm.

This will allow the package to be used with npm install. It will also need to be republished to the npm registry.

This allows it to be used using require() and npm.
@@ -28,12 +28,12 @@ class Ykush {
}

async powerAllOn() {
const args = [...this._prefix, '-s', this._serialNumber, '-u', 'a'];
const args = [...this._prefix, '-s', this._serialNumber.id, '-u', 'a'];
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be fixed in otherway and separate PR. list() function should return list of serialnumber instead of list of objects with id field.

Copy link
Author

Choose a reason for hiding this comment

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

Agreed

@@ -12,6 +12,7 @@
"type": "git",
"url": "git+https://github.com/opentmi/ykushjs.git"
},
Copy link
Contributor

Choose a reason for hiding this comment

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

this is good addition 👍

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.

2 participants