mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	feat(npm): add alias for npm update (#9442)
				
					
				
			This commit is contained in:
		@@ -18,6 +18,7 @@ plugins=(... npm)
 | 
				
			|||||||
| `npmF`  | `npm i -f`                   | Force install from remote registries ignoring local cache       |
 | 
					| `npmF`  | `npm i -f`                   | Force install from remote registries ignoring local cache       |
 | 
				
			||||||
| `npmE`  | `PATH="$(npm bin)":"$PATH"`  | Run command from node_modules folder based on current directory |
 | 
					| `npmE`  | `PATH="$(npm bin)":"$PATH"`  | Run command from node_modules folder based on current directory |
 | 
				
			||||||
| `npmO`  | `npm outdated`               | Check which npm modules are outdated                            |
 | 
					| `npmO`  | `npm outdated`               | Check which npm modules are outdated                            |
 | 
				
			||||||
 | 
					| `npmU`  | `npm update`                 | Update all the packages listed to the latest version            |
 | 
				
			||||||
| `npmV`  | `npm -v`                     | Check package versions                                          |
 | 
					| `npmV`  | `npm -v`                     | Check package versions                                          |
 | 
				
			||||||
| `npmL`  | `npm list`                   | List installed packages                                         |
 | 
					| `npmL`  | `npm list`                   | List installed packages                                         |
 | 
				
			||||||
| `npmL0` | `npm ls --depth=0`           | List top-level installed packages                               |
 | 
					| `npmL0` | `npm ls --depth=0`           | List top-level installed packages                               |
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -37,6 +37,9 @@ alias npmE='PATH="$(npm bin)":"$PATH"'
 | 
				
			|||||||
# Check which npm modules are outdated
 | 
					# Check which npm modules are outdated
 | 
				
			||||||
alias npmO="npm outdated"
 | 
					alias npmO="npm outdated"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Update all the packages listed to the latest version
 | 
				
			||||||
 | 
					alias npmU="npm update"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Check package versions
 | 
					# Check package versions
 | 
				
			||||||
alias npmV="npm -v"
 | 
					alias npmV="npm -v"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user