Since there are numerous package managers for node now. And if you work with multiple projects on daily basis with various package managers for each of the projects, this short bash script might just help you.
Replaces yarn
/ npm
/ pnpm
command with just
cd && git clone https://github.com/kunalpanchal/just.git .just && chmod +x ~/.just/just
# Preferably add this alias to your .bashrc/.zshrc
alias just="~/.just/just"
just setup
orjust install-node-modules
just run <any-custom-scripts-in-package-json>
just add <package-name(s)>
just remove/rm/uninstall/un <package-name(s)>
just update/upgrade/up <package-name(s)>
just outdated <package-name(s)>
just list/ls
just init/new
just list-scripts
alias alexa="~/.just/just"
alias please="~/.just/just"
- The command only works from the root of the project but not within sub-directories.