-
Notifications
You must be signed in to change notification settings - Fork 18
Update fontsource integration according with the documentation #482
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,12 @@ | |
| }, | ||
| "license": "GPL-2.0", | ||
| "dependencies": { | ||
| "@fontsource-utils/scss": "^0.2.2", | ||
| "@fontsource/poppins": "^5.0.5", | ||
| "add": "^2.0.6", | ||
| "lazysizes": "^5.3.2", | ||
| "oneloop.js": "^5.2.1" | ||
| "oneloop.js": "^5.2.1", | ||
| "yarn": "^1.22.22" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚨 issue (security): Avoid listing Putting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Accidental
|
||
| }, | ||
| "devDependencies": { | ||
| "@wordpress/blocks": "^11.16.0", | ||
|
|
||


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.
🚨 suggestion (security): Reconsider introducing the generic
addpackage as a dependency unless it’s clearly needed.This package is very small and commonly used only in examples. Adding it as a runtime dependency increases your dependency surface (and potential vulnerability exposure) for limited gain. If it’s only needed for build tooling, consider moving it to
devDependencies, or omitting it entirely if it’s not essential.Suggested implementation:
addpackage is actually required for build tooling (e.g., used in scripts or config), reintroduce it under"devDependencies"instead of"dependencies".yarn installornpm installafter updatingpackage.jsonto sync the lockfile (yarn.lockorpackage-lock.json) and include that in the PR as well.