-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Tools: Enforce the same order of fields in package.json
files
#66239
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: 0 B Total Size: 1.82 MB ℹ️ View Unchanged
|
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.
Nice, this looks good. Let's land against trunk
after #65681 lands.
d10c7d6
to
770ab08
Compare
442fea4
to
e5eab2e
Compare
this should be done another way
Co-authored-by: Jon Surrell <[email protected]>
e5eab2e
to
1fa15cc
Compare
…Press#66239) * Update package managing flow * Adapt packages webpack config for workspaces * Ignore "dev" scripts this should be done another way * Annotate packages included as WordPress scripts * Do not annotate react-native packages * Update packages webpack to use wpScript package.json * Implement Gutenberg specific check-licenses script * Remove redundant entries from the ignore list * Update some docs langauge about lerna and npm workspaces * Tools: Enforce the same order of fields in `package.json` files * Update the PR number in the changelog entry * Update packages/npm-package-json-lint-config/index.js Co-authored-by: Jon Surrell <[email protected]> * Update CHANGELOG.md * Update the order of properties added recently --------- Co-authored-by: Aki Hamano <[email protected]> Co-authored-by: Jon Surrell <[email protected]> Co-authored-by: t-hamano <[email protected]> Co-authored-by: sirreal <[email protected]> Co-authored-by: gziolo <[email protected]>
What?
Depends on:
There were new properties introduced in
package.json
files that are located in random order inpackage.json
files:exports
wpScript
wpScriptModuleExports
sideEffects
Why?
It's easier to have consitent order of fields when maintaining nearly 100 npm packages.
How?
Extend the config for
prefer-property-order
rule in@wordpress/npm-package-json-lint-config
.