Open GeorgeTaveras1231 opened 11 months ago
@skovy I've fixed the lint check. Let me know if I should fix anything else.
should this be considered a breaking change? if some peoples builds are technically passing today, this could cause them to start failing?
@skovy that's a good question - I would leave it up to you to decide ultimately. In the past I've chosen both of the options you have (push as a breaking change, or push as a patch).
Its totally reasonable to push this as a breaking change and it is the safer path. But also totally justifiable to push this as a patch -- suggesting that these issues weren't intended to be in the current major.
I'm fine with either approach 😌
My concern with merging this right now is that it sounds like without first finding a solution in https://github.com/skovy/typed-scss-modules/pull/220, this will start to error for people without a fix?
I think it makes most sense if we first merge a solution to the other problem, then this PR?
@skovy that's totally reasonable. Feel free to respond here or on the other PR but remind me what is left for the #220 to be considered mergeable? I still owe you some test cases 😌. And I responded to your last comment about the approach.
Details
I decided to open this PR after noticing some subtle issues in my build pipeline. I noticed that the typed-scss-modules build was silently failing - it couldn't load the config file because I had a broken import inside of it. Additionally, it continue trying to generate types after not being able to load the config, and it encountered another issue - it wasn't able to generate the types because it could not properly parse the sass files (because the configs were broken).
Example error:
TODO
sass.renderSync
Additional changes
cause
option is supported in Node 16, but the TS types are a bit delayed (https://github.com/microsoft/TypeScript/issues/49535)