Fix lint-staged API docs path#77203
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: 7.74 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 811132e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24205634744
|

What?
Follow-up to #77019.
Updates the
lint-stagedAPI docs check in the rootpackage.jsonto use the current script location intools/api-docs.Why?
The pre-commit hook still points to
./bin/api-docs/are-api-docs-unstaged.js, which no longer exists after the script move. That causes commits to fail withMODULE_NOT_FOUNDwhen the matchinglint-stagedtask runs.How?
Replaces the stale
lint-stagedpath with./tools/api-docs/are-api-docs-unstaged.js.Testing Instructions
packages/**/*.{js,ts,tsx,json}lint-stagedglob.lint-stagedtask, or attempt a commit.Cannot find module '/.../bin/api-docs/are-api-docs-unstaged.js'.Use of AI Tools
Drafted with AI assistance and reviewed before submission.