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(web-components): specify files/dirs to include in package #6688

Conversation

matthewgallo
Copy link
Member

@matthewgallo matthewgallo commented Jan 13, 2025

Closes #6674

Found another problem in the web component build setup, the icons directory was not being included in the build output which again resulted in the same bug originally described in #6674. Including the files property in the package.json should fix this since the icons directory will be included inside of es and lib.

Update
Changing the icon imports to @carbon/web-components/es/icons/**/* fixes the issue and allows us to remove the build plugins for transforming the icons since we really should just import them directly from the @carbon/web-components package. Thanks @sangeethababu9223 for the suggestion! 💡

What did you change?

packages/ibm-products-web-components/package.json
packages/ibm-products-web-components/.storybook/main.ts
packages/ibm-products-web-components/src/components/side-panel/side-panel.ts
packages/ibm-products-web-components/tasks/build.js

@matthewgallo matthewgallo requested a review from a team as a code owner January 13, 2025 15:57
@matthewgallo matthewgallo requested review from devadula-nandan and amal-k-joy and removed request for a team January 13, 2025 15:57
Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit de641ab
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/6786b235d65346000842c2c6
😎 Deploy Preview https://deploy-preview-6688--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit de641ab
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6786b2359f13090008a703f5
😎 Deploy Preview https://deploy-preview-6688--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.71%. Comparing base (82ce15c) to head (de641ab).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6688      +/-   ##
==========================================
+ Coverage   80.68%   80.71%   +0.03%     
==========================================
  Files         397      397              
  Lines       12923    12940      +17     
  Branches     4286     4291       +5     
==========================================
+ Hits        10427    10445      +18     
+ Misses       2496     2495       -1     
Components Coverage Δ
ibm-products ∅ <ø> (∅)
ibm-products-web-components ∅ <ø> (∅)

Copy link
Member

@sangeethababu9223 sangeethababu9223 left a comment

Choose a reason for hiding this comment

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

LGTM!

@matthewgallo matthewgallo added this pull request to the merge queue Jan 16, 2025
Merged via the queue into carbon-design-system:main with commit be14cc3 Jan 16, 2025
34 checks passed
@matthewgallo matthewgallo deleted the 6674-include-files-in-package-json branch January 16, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ibm-products-web-components components not working
3 participants