-
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
Tooling: Fix commands containing dot-slashes in npm scripts #39739
Conversation
Size Change: 0 B Total Size: 1.22 MB ℹ️ View Unchanged
|
Hello @t-hamano, can you rebase this branch with the latest changes from |
ac2b810
to
a5f4a40
Compare
@gziolo |
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.
I tested everything with macOS and it works correctly 💯
Thank you so much for working on it.
Part of #39388
What?
In this pull PR, I explicitly add
node
andbash
commands in the execution of npm scripts.Why?
As mentioned in the npm repository issue, commands containing dot-slashes cannot be executed by default, so it seems necessary to specify explicitly what command to use in Windows.
Testing Instructions
The following four scripts were fixed in this PR.
Although there may be some differences depending on the OS and environment, the following logs should be displayed correctly.
✅ build:plugin-zip
"bash ./bin/build-plugin-zip.sh"
⚠ Note: It may take a considerable amount of time, because this script delete files outside of git control ( such as node_modules ) and reinstall npm packages.
✅ changelog
"node ./bin/plugin/cli.js changelog"
Change logs should be output:
✅ test-unit:date
"bash ./bin/unit-test-date.sh"
Should pass all tests:
( It may take several minutes for the log to appear depending on your environment and computer specs. )
✅ test:create-block
"bash ./bin/test-create-block.sh"
Block generation, build, linting, and zip file generation should complete successfully: