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

fix(tailwind): include colorMap.json in tailwind folder #71

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

bnjm
Copy link
Contributor

@bnjm bnjm commented Aug 11, 2023

This is a quick fix for the broken v2.5.0 build, which has issues due to the tailwind-preset.cjs file needing to be resolved at build-time. The issue only surfaces when installing via npm, because in that case the src folder is excluded.

@bnjm bnjm requested a review from a team August 11, 2023 16:51
CHANGELOG.md Outdated
### Bug Fixes

* **tailwind:** include colorMap.json in tailwind folder ([3589503](https://github.com/archilogic-com/honeycomb/commit/3589503b00bd3775ff1161de60469f00ec86dbc1))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changelog is here because this is the test-preset-fix version?

"version": "2.5.1-test-preset-fix.1",

this format of versioning is new to me 🙂

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I follow... The file is now in 2 places?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, unfortunately. I'm looking for a better way but I wanted to fix the broken package in the meantime. Summary:

  • the types have been broken for some time (I think since v2.2.0) as we are emitting the folder structure including src. See the dist folder here
  • my fix in v2.5.0 was to use the rootDir option. The restriction is that all compiled files must be inside rootDir, hence moving colorMap.json into src.
  • moving the colorMap worked locally but caused an issue with the npm package, because the tailwind files are not compiled, and the src directory is not included in the distributed package 🤦‍♂️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created al-4728 to follow up

@bnjm bnjm merged commit 6e23ea1 into main Aug 14, 2023
2 checks passed
archilogic-ci pushed a commit that referenced this pull request Aug 14, 2023
## [2.5.1](v2.5.0...v2.5.1) (2023-08-14)

### Bug Fixes

* **tailwind:** include colorMap.json in tailwind folder ([#71](#71)) ([6e23ea1](6e23ea1))
@github-actions
Copy link

🎉 This PR is included in version 2.5.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ianaa ianaa deleted the test-preset-fix branch October 4, 2023 12:50
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.

4 participants