-
Notifications
You must be signed in to change notification settings - Fork 1
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
Issue-182: Trim down @wordpress dependencies to those only used in code #223
base: develop
Are you sure you want to change the base?
Issue-182: Trim down @wordpress dependencies to those only used in code #223
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
blocks/email-settings/edit.tsx
Outdated
@@ -92,6 +92,7 @@ export default function Edit() { | |||
newBlocks = [...parsedContentFromTemplate]; | |||
} | |||
|
|||
// @ts-ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment applies throughout: it's better to use @ts-expect-error
, so if somehow this line ever stops throwing an error, we'll know about it and can remove the directive
Summary
Fixes #182
Fixes #183
This Pull Request addresses the issue titled "Trim down @WordPress dependencies to those only used in code" by removing and upgrading the NPM
@wordpress
related dependencies as needed. This ensures that only the dependencies that are actively used in the codebase are included, streamlining the development process and minimizing unnecessary bloat.Use Case
Ensures that when a developer runs
npm install
, only the@wordpress
dependencies that are used in code are installed. This change not only removes unused dependencies but also upgrades existing ones to their latest versions, enhancing the application's security and performance.Changes
@wordpress
dependencies frompackage.json
.@wordpress
dependencies to their latest.Test Instructions
npm install
.@wordpress
dependencies are installed and that the application builds correctly. Also, ensure that the upgraded dependencies do not introduce any breaking changes.Additional Information
For more details, see the original issue here: #182