[ CLI ] Rename CLI binaries in @php-wasm/cli
and @wp-playground/cli
#2441
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.
Motivation for the change, related issues
Currently, when NPM installs
@php-wasm/cli
, it creates a binary namedcli
in thenode_modules/.bin
. However, if there is an already existingcli
binary in thenode_modules/.bin
directory, the action is ignored.That is what is happening when trying to install both
@php-wasm/cli
and@wp-playground/cli
in the same project.This pull request aims to rename these generic binaries into :
cli
>php-wasm-cli
cli
>wp-playground-cli
Implementation details
@php-wasm/cli/package.json
@wp-playground-cli/package.json
Testing Instructions (or ideally a Blueprint)
Run
npm install
in a empty directory :Before
After