Last active
November 18, 2021 14:31
-
-
Save pedro-mass/8493fc1d8ef2f4314010d53af12eac0d to your computer and use it in GitHub Desktop.
Allows you to have a default port set, but also override when calling
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
{ | |
"scripts": { | |
"pedro": "PORT=${PORT:-3001} && echo $PORT" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment