skovy/typed-scss-modules

Does this package only support scss files or also css files?

kintz09 opened this issue · 2 comments

Does this package offer support for both scss and css files? If not, would you expect one to use typed-css-modules package in addition to typed-scss-modules package to get declaration files created for all css modules regardless of extension type?

skovy commented

@kintz09 I'm not positive. The intention for this package was only to support scss and none of the tests/existing functionality are tested on only css files. However, it might work so you could give it a quick try?

If you run into issues, using both packages like you proposed would probably be the easiest. It's possible this package makes some assumptions that wouldn't work with css, but given the css should be valid scss it could work.

@skovy I used a glob pattern that included both css and scss files and the type declarations did get created as expected.

I'm not sure how I'd actually go about testing to ensure the css files specifically are working properly, but seems sufficient for my needs.