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

Manage npm dependencies #2582

Merged
merged 2 commits into from
May 6, 2024
Merged

Manage npm dependencies #2582

merged 2 commits into from
May 6, 2024

Conversation

janvhs
Copy link
Member

@janvhs janvhs commented May 3, 2024

Description

These patches removes canvas as direct dependency, as it is only used indirectly by jsdom. Furthermore, it moves postcss-import and @storybook/client-api to the development dependency section, as they are used in testing and compilation.

Eventually, as part of a npm audit warning, it increments the patch version of eslint-config-airbnb-base from 6.3.0 to 6.3.1.

More information are available in the commit history.

How was this tested?

To verify that nothing broke, I ran the jest test suite and ensured that storyblock is still working as expected.

janvhs added 2 commits May 3, 2024 14:35
Canvas is used as an indirect dependency of jsdom and should not be
listed in the npm dependency section.
This commit moves "@storybook/client-api" and "postcss-import" to the
devDependencies section of the package file. These dependencies are not
referenced in runtime source code and only used in the test and build
process.
@janvhs janvhs added chore dependencies Pull requests that update a dependency file labels May 3, 2024
@janvhs janvhs requested a review from dottorblaster May 3, 2024 13:09
Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

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

I don't remember actually why postcss-import ended up in the dependencies array instead of just devdeps.

Thank you!

@janvhs janvhs merged commit 46e17e2 into main May 6, 2024
75 of 76 checks passed
@janvhs janvhs deleted the manage-dependencies branch May 6, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore dependencies Pull requests that update a dependency file
Development

Successfully merging this pull request may close these issues.

None yet

2 participants