diff --git a/package.json b/package.json index 4ba16dec065ff..7c1933130cc52 100644 --- a/package.json +++ b/package.json @@ -309,7 +309,7 @@ "native": "npm run --prefix packages/react-native-editor", "other:changelog": "node ./bin/plugin/cli.js changelog", "other:check-licenses": "concurrently \"wp-scripts check-licenses --prod --gpl2 --ignore=@react-native-community/cli,@react-native-community/cli-platform-ios,@ampproject/remapping,human-signals,fb-watchman,walker,chrome-launcher,lighthouse-logger,chromium-edge-launcher\" \"wp-scripts check-licenses --dev\"", - "preother:check-local-changes": "npm run docs:build", + "preother:check-local-changes": "npm run docs:build && wp-scripts format $(git diff --name-only)", "other:check-local-changes": "node ./bin/check-local-changes.js", "other:cherry-pick": "node ./bin/cherry-pick.mjs", "other:generate-php-sync-issue": "node ./bin/generate-php-sync-issue.mjs",