feat(adapter resolver): resolve '~' to HOME directory#1008
Open
arthur-fontaine wants to merge 1 commit intocommitizen:masterfrom
Open
feat(adapter resolver): resolve '~' to HOME directory#1008arthur-fontaine wants to merge 1 commit intocommitizen:masterfrom
arthur-fontaine wants to merge 1 commit intocommitizen:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds the support for
~for the path property in the configuration file.Use case
I install all my global dependencies with Mise to have the same environment on my different computers. This causes
require("cz-emoji")to not work.So I have to specify the path of the dependency manually.
{ "path": "/Users/arthur-fontaine/.local/share/mise/installs/npm-cz-emoji/latest/lib/node_modules/cz-emoji" }This works, but as specified above, I want to have the same environment on my different computers, which have different usernames (on my computer 1, the home path is
/Users/arthur-fontaine, and on my computer 2, this is/Users/arthurfontaine). So I tried to replace the absolute home path with~as follows.{ "path": "~/.local/share/mise/installs/npm-cz-emoji/latest/lib/node_modules/cz-emoji" }But it didn't work. This PR makes it work!