Fix an issue causing wp-scripts commands to fail if the file path contained a space character #61748
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Bump the
lint-staged
npm package to the next patch version to fix an issue wherewp-scripts
commands would fail if the file path contained a space.Fixes #42588
Why?
Before this fix, some wp-scripts commands would fail if the file path to the Gutenberg plugin contained one or more space characters. This issue was fixed in lint-staged v10.0.2. By bumping Gutenberg to that version, that issue is resolved.
How?
The
lint-staged
npm package has been bumped from version 10.0.1 to 10.0.2.Testing Instructions
Steps to reproduce the issue
gutenberg
plugin into a directory with a space character in its name.trunk
branch is checked out.lint-staged
version 10.0.1 is installed.npm install
.touch test-file.js && git add test-file.js
to create and stage a new file via git.git commit -m “Add test file”
to try to commit the change.Steps to test the bug fix
npm install
.lint-staged
version 10.0.2 is installed.touch test-file.js && git add test-file.js
to create and stage a new file via git.git commit -m “Add test file”
to try to commit the change.Testing Instructions for Keyboard
n/a