activeguild / vite-plugin-sass-dts

This is a plugin that automatically creates a type file when using the CSS module type-safely.
MIT License
120 stars 18 forks source link

feat: emit to directory other than source root #77

Closed lbennett-stacki closed 1 year ago

lbennett-stacki commented 1 year ago

I wanted to emit straight to my dist dir, otherwise, I get a bunch of source declarations that I don't need to track in my project, as I only want to publish the types for consumers.

Without this, I would need a second step in my build to move all source declarations, and even that is a little janky.

With this change, we can set the source and output directories as simple absolute paths and be done with it 👍

lbennett-stacki commented 1 year ago

Ready for review @activeguild :)

activeguild commented 1 year ago

@lbennett-stacki Thank you. I'll review it tonight.

activeguild commented 1 year ago

@lbennett-stacki Can you add new options to the README?

lbennett-stacki commented 1 year ago

@activeguild ahh yep, will do, thanks!

lbennett-stacki commented 1 year ago

@activeguild ready to go! Also updated the examples, thanks again

activeguild commented 1 year ago

Thank you!!