refine
                                
                                 refine copied to clipboard
                                
                                    refine copied to clipboard
                            
                            
                            
                        feat: add lint-staged script to sort package json
PR Checklist
Please check if your PR fulfills the following requirements:
- [x] The commit message follows our guidelines: https://refine.dev/docs/guides-concepts/contributing/#commit-convention
What is the current behavior?
Currently our package.json files aren't sorted correctly, since some dependencies are added manually.
When the user uses create-refine-app to copy one of our examples and do npm install xxx or npm uninstall xxx, npm CLI is automatically sorting the package.json. It's distractive and causing unnecessary diff.
See the screenshot below for example redundant diff after running npm create refine-app@latest -- --example template-antd and npm install xxx
What is the new behavior?
- Added sort-package-jsonas devDependency.
- Added lint-stagedscript to automatically fix package.json sorting if it's changed.
- Moved pidtreeandwait-onpackages to devDependencies in root package.json
- Ran npx sort-package-jsonscript for all package.json's.
- Updated versionfield in package.json to1.0.0for all examples.
Notes for reviewers
⚠️ No Changeset found
Latest commit: d9d1f2ed2c7ee78f9fd991da57200a7711c0be80
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
☁️ Nx Cloud Report
CI is running/has finished running commands for commit d9d1f2ed2c7ee78f9fd991da57200a7711c0be80. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 73 targets
- lerna run cypress:run --scope with-remix-material-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group with-remix-material-ui
- lerna run cypress:run --scope with-remix-headless -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group with-remix-headless
- lerna run cypress:run --scope with-remix-antd -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group with-remix-antd
- lerna run cypress:run --scope with-nextjs-next-auth -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group with-nextjs-next-auth
- lerna run cypress:run --scope form-mantine-use-modal-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-mantine-use-modal-form
- lerna run cypress:run --scope with-nextjs -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group with-nextjs
- lerna run cypress:run --scope auth-mantine -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-mantine
- lerna run cypress:run --scope table-react-table-basic -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-react-table-basic
- lerna run cypress:run --scope form-mantine-use-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-mantine-use-form
- lerna run cypress:run --scope table-react-table-advanced -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-react-table-advanced
- lerna run cypress:run --scope auth-keycloak -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-keycloak
- lerna run cypress:run --scope table-material-ui-use-update-many -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-use-update-many
- lerna run cypress:run --scope data-provider-supabase -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group data-provider-supabase
- lerna run cypress:run --scope form-react-hook-form-use-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-react-hook-form-use-form
- lerna run cypress:run --scope table-material-ui-use-delete-many -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-use-delete-many
- lerna run cypress:run --scope auth-headless -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-headless
- lerna run cypress:run --scope form-mantine-use-drawer-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-mantine-use-drawer-form
- lerna run cypress:run --scope table-material-ui-use-data-grid -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-use-data-grid
- lerna run cypress:run --scope form-material-ui-use-steps-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-material-ui-use-steps-form
- lerna run cypress:run --scope auth-google-login -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-google-login
- lerna run cypress:run --scope data-provider-strapi-v4 -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group data-provider-strapi-v4
- lerna run cypress:run --scope auth-chakra-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-chakra-ui
- lerna run cypress:run --scope table-material-ui-table-filter -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-table-filter
- lerna run cypress:run --scope inferencer-headless -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group inferencer-headless
- lerna run cypress:run --scope form-material-ui-use-modal-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-material-ui-use-modal-form
- lerna run cypress:run --scope table-material-ui-data-grid-pro -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-data-grid-pro
- lerna run cypress:run --scope auth-auth0 -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-auth0
- lerna run cypress:run --scope inferencer-graphql-hasura -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group inferencer-graphql-hasura
- lerna run cypress:run --scope table-material-ui-cursor-pagination -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-cursor-pagination
- lerna run cypress:run --scope form-material-ui-use-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-material-ui-use-form
- lerna run cypress:run --scope table-antd-advanced -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-antd-advanced
- lerna run cypress:run --scope auth-antd -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-antd
- lerna run cypress:run --scope form-chakra-ui-mutation-mode -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-chakra-ui-mutation-mode
- lerna run cypress:run --scope table-material-ui-advanced -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-material-ui-advanced
- lerna run cypress:run --scope form-mantine-mutation-mode -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-mantine-mutation-mode
- lerna run cypress:run --scope inferencer-chakra-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group inferencer-chakra-ui
- lerna run cypress:run --scope server-side-form-validation-material-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group server-side-form-validation-material-ui
- lerna run cypress:run --scope form-material-ui-use-drawer-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-material-ui-use-drawer-form
- lerna run cypress:run --scope table-mantine-basic -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-mantine-basic
- lerna run cypress:run --scope base-material-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group base-material-ui
- lerna run cypress:run --scope server-side-form-validation-mantine -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group server-side-form-validation-mantine
- lerna run cypress:run --scope form-antd-use-steps-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-antd-use-steps-form
- lerna run cypress:run --scope table-mantine-advanced -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-mantine-advanced
- lerna run cypress:run --scope base-mantine -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group base-mantine
- lerna run cypress:run --scope inferencer-antd -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group inferencer-antd
- lerna run cypress:run --scope server-side-form-validation-chakra-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group server-side-form-validation-chakra-ui
- lerna run cypress:run --scope form-material-ui-mutation-mode -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-material-ui-mutation-mode
- lerna run cypress:run --scope form-antd-use-modal-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-antd-use-modal-form
- lerna run cypress:run --scope server-side-form-validation-antd -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group server-side-form-validation-antd
- lerna run cypress:run --scope table-handson -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-handson
- lerna run cypress:run --scope form-chakra-use-modal-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-chakra-use-modal-form
- lerna run cypress:run --scope table-chakra-ui-basic -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-chakra-ui-basic
- lerna run cypress:run --scope inferencer-material-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group inferencer-material-ui
- lerna run cypress:run --scope form-antd-use-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-antd-use-form
- lerna run cypress:run --scope form-chakra-ui-use-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-chakra-ui-use-form
- lerna run cypress:run --scope form-mantine-use-steps-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-mantine-use-steps-form
- lerna run cypress:run --scope form-save-and-continue -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-save-and-continue
- lerna run cypress:run --scope base-chakra-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group base-chakra-ui
- lerna run cypress:run --scope table-chakra-ui-advanced -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-chakra-ui-advanced
- lerna run cypress:run --scope form-antd-use-drawer-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-antd-use-drawer-form
- lerna run cypress:run --scope form-chakra-ui-use-drawer-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-chakra-ui-use-drawer-form
- lerna run cypress:run --scope table-antd-use-update-many -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-antd-use-update-many
- lerna run cypress:run --scope base-antd -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group base-antd
- lerna run cypress:run --scope form-react-hook-form-use-steps-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-react-hook-form-use-steps-form
- lerna run cypress:run --scope inferencer-mantine -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group inferencer-mantine
- lerna run cypress:run --scope table-antd-use-table -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-antd-use-table
- lerna run cypress:run --scope auth-material-ui -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group auth-material-ui
- lerna run cypress:run --scope form-antd-mutation-mode -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-antd-mutation-mode
- lerna run cypress:run --scope form-react-hook-form-use-modal-form -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-react-hook-form-use-modal-form
- lerna run cypress:run --scope table-antd-use-editable-table -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-antd-use-editable-table
- lerna run cypress:run --scope table-antd-use-delete-many -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-antd-use-delete-many
- lerna run cypress:run --scope table-antd-table-filter -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group table-antd-table-filter
- lerna run cypress:run --scope form-antd-custom-validation -- --record --key 6c99cf93-adbe-41aa-8d91-f50a76b8bbc8 --group form-antd-custom-validation
Sent with 💌 from NxCloud.
Passing run #10693 ↗︎
|  0 |  374 |  33 |  0 |  0 | 
Details:
| Merge d9d1f2ed2c7ee78f9fd991da57200a7711c0be80 into 642ad86b8dfcae049ab641f8a3ea... | |||
| Project: refine | Commit: a3b52f07a9 ℹ️ | ||
| Status: Passed | Duration: 20:59 💡 | ||
| Started: Feb 8, 2024 1:41 PM | Ended: Feb 8, 2024 2:02 PM | ||