mirror of
				https://github.com/prometheus/prometheus.git
				synced 2025-11-04 10:21:02 +01:00 
			
		
		
		
	* fix the way to get the list of workspaces Signed-off-by: Augustin Husson <husson.augustin@gmail.com> * update UI dependencies Signed-off-by: Augustin Husson <husson.augustin@gmail.com> Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
		
			
				
	
	
		
			23 lines
		
	
	
		
			322 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			322 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
current=$(pwd)
 | 
						|
root_ui_folder=${current}/web/ui
 | 
						|
 | 
						|
function ncu() {
 | 
						|
    target=$1
 | 
						|
    npx npm-check-updates -u --target "${target}"
 | 
						|
}
 | 
						|
 | 
						|
cd "${root_ui_folder}"
 | 
						|
 | 
						|
for workspace in $(jq -r '.workspaces[]' < package.json); do
 | 
						|
  cd "${workspace}"
 | 
						|
  ncu "$1"
 | 
						|
  cd "${root_ui_folder}"
 | 
						|
done
 | 
						|
 | 
						|
ncu "$1"
 | 
						|
npm install
 |