-
Notifications
You must be signed in to change notification settings - Fork 66
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
feat: export main as tsm #162
Conversation
dde46ab
to
8924cb8
Compare
8924cb8
to
d9f85b8
Compare
@skovy Please let me know if exposing this function is something you'd like. |
653c560
to
1f30ba4
Compare
@therealparmesh yes, this makes sense to me. I intended for it to be used programmatically but didn't want to export it until someone had a use case for it 👍 |
ee6a564
to
0346aa7
Compare
@skovy Awesome! This PR should be good to go (pending CI). |
@therealparmesh looks great! can you remove the |
0346aa7
to
5e3f1a6
Compare
@skovy Good catch! Done. |
🎉 This PR is included in version 6.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It would be really useful to be able to programmatically invoke
tsm
as opposed to running it via a CLI command.People can currently do this in a hacky way by importing the
main
function fromtyped-scss-modules/dist/lib/main.js
.This PR adds a real entry point and adds the exporting of type declarations.
Example usage:
import tsm from 'typed-scss-modules';