[core] fix: remove implicit dependency on colors package Sass #4891
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of change
#4858 introduced a bug involving an implicit Sass dependency on
@blueprintjs/colors
for users of the core package. This meant that any one importing files like this (which, turns out, does happen, since we keep some sort-of useful variables there):would experience errors in their Sass build, especially with package managers like PNPM which do not allow such implicit dependencies. Blueprint users should not have to consume the
@blueprints/colors
directly unless they need the colors in JS.I think we should have only moved the color hex strings in
colors.ts
in #4858, not alsocolors.scss
. We don't have any consumers of@blueprintjs/colors/lib/colors
... so it's not necessary at the moment. But now that I've released v1.0.0, there's not much I can do without a breaking change...Reviewers should focus on:
Should I just bite the bullet and remove the duplicated
colors.scss
in@blueprintjs/colors
, and release a major version bump (we could go to v2.0 or v3.0, the latter makes it match current BP version better)?Screenshot
N/A