mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: update husky precommit hook to run init script if present
This commit is contained in:
		
							parent
							
								
									26e696a090
								
							
						
					
					
						commit
						3e56c2f10d
					
				| @ -1,8 +1,11 @@ | |||||||
| yarn lint-staged | #!/usr/bin/env sh | ||||||
|  | . "$(dirname -- "$0")/_/husky.sh" | ||||||
|  | 
 | ||||||
|  | npx lint-staged | ||||||
| 
 | 
 | ||||||
| node .husky/update-openapi-spec-list.js | node .husky/update-openapi-spec-list.js | ||||||
| 
 | 
 | ||||||
| # Check if the src/lib/openapi/spec/index.ts file was modified and if so, add it to the commit | # Check if the src/lib/openapi/spec/index.ts file was modified and if so, add it to the commit | ||||||
| if git ls-files -m | grep -q "src/lib/openapi/spec/index.ts"; then | if git ls-files -m | grep -q "src/lib/openapi/spec/index.ts"; then | ||||||
|   git add src/lib/openapi/spec/index.ts |   git add src/lib/openapi/spec/index.ts | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user