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

feat: export main as tsm #162

Merged
merged 1 commit into from
Apr 27, 2022
Merged

Conversation

therealparmesh
Copy link
Contributor

@therealparmesh therealparmesh commented Apr 25, 2022

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 from typed-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';

@therealparmesh therealparmesh changed the title Export main function as tsm Export main as tsm Apr 25, 2022
@therealparmesh therealparmesh changed the title Export main as tsm feat: export main as tsm Apr 25, 2022
@therealparmesh
Copy link
Contributor Author

@skovy Please let me know if exposing this function is something you'd like.

@therealparmesh therealparmesh force-pushed the export-main-function branch 2 times, most recently from 653c560 to 1f30ba4 Compare April 26, 2022 00:59
@skovy
Copy link
Owner

skovy commented Apr 26, 2022

@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 👍

@therealparmesh therealparmesh force-pushed the export-main-function branch 2 times, most recently from ee6a564 to 0346aa7 Compare April 26, 2022 01:06
@therealparmesh
Copy link
Contributor Author

@skovy Awesome! This PR should be good to go (pending CI).

@skovy
Copy link
Owner

skovy commented Apr 26, 2022

@therealparmesh looks great! can you remove the .DS_Store file and maybe add it to the .gitignore?

@therealparmesh
Copy link
Contributor Author

@skovy Good catch! Done.

@skovy skovy merged commit 30569df into skovy:master Apr 27, 2022
@therealparmesh therealparmesh deleted the export-main-function branch April 27, 2022 15:05
@skovy
Copy link
Owner

skovy commented Apr 27, 2022

🎉 This PR is included in version 6.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@skovy skovy added the released label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants