-
Notifications
You must be signed in to change notification settings - Fork 99
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
Feature/issues 18 typescript support #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The overall PR looks good, I just pointed some issues for further improvements.
Also, the JSdoc comments are useful but, to me, out of the scope for this PR.
Next steps could possibly be:
- Move all of the source code to TS
- Generate a real JSdoc out of those comments
"build": "microbundle src/index.js && npm run copy", | ||
"build": "microbundle src/index.js", | ||
"dev": "microbundle watch", | ||
"copy": "cp package.json dist/ && cp README.md dist/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would restore this and make two changes:
- Use a cross platform copy command (this won't work on Windows) like cpx
- Copy the
index.d.ts
file too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but would that be redundant? I already keep these files inside the root
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds ok for the index.d.ts
file. What about the cpx
package?
Todo