mirror of
				https://github.com/actions/setup-dotnet.git
				synced 2025-10-31 19:43:46 +00:00 
			
		
		
		
	chore(deps-dev): migrate husky config to v8
Follow: https://github.com/typicode/husky-4-to-8 - npm install husky --save-dev - npx husky-init - npm exec -- github:typicode/husky-4-to-8 --remove-v4-config
This commit is contained in:
		
							parent
							
								
									e81cd4d454
								
							
						
					
					
						commit
						d26ead4cf0
					
				
							
								
								
									
										4
									
								
								.husky/pre-commit
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								.husky/pre-commit
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,4 @@ | ||||
| #!/usr/bin/env sh | ||||
| . "$(dirname -- "$0")/_/husky.sh" | ||||
| 
 | ||||
| npm run format | ||||
							
								
								
									
										5
									
								
								.husky/pre-push
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										5
									
								
								.husky/pre-push
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,5 @@ | ||||
| #!/usr/bin/env sh | ||||
| . "$(dirname -- "$0")/_/husky.sh" | ||||
| 
 | ||||
| # Tests are not run at push time since they can take 2-4 minutes to complete | ||||
| npm run format-check | ||||
							
								
								
									
										16
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										16
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							| @ -23,7 +23,7 @@ | ||||
|         "@types/node": "^16.11.25", | ||||
|         "@types/semver": "^6.2.2", | ||||
|         "@vercel/ncc": "^0.33.4", | ||||
|         "husky": "^7.0.2", | ||||
|         "husky": "^8.0.1", | ||||
|         "jest": "^27.2.5", | ||||
|         "jest-circus": "^27.2.5", | ||||
|         "prettier": "^1.19.1", | ||||
| @ -2305,15 +2305,15 @@ | ||||
|       } | ||||
|     }, | ||||
|     "node_modules/husky": { | ||||
|       "version": "7.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz", | ||||
|       "integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==", | ||||
|       "version": "8.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.1.tgz", | ||||
|       "integrity": "sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==", | ||||
|       "dev": true, | ||||
|       "bin": { | ||||
|         "husky": "lib/bin.js" | ||||
|       }, | ||||
|       "engines": { | ||||
|         "node": ">=12" | ||||
|         "node": ">=14" | ||||
|       }, | ||||
|       "funding": { | ||||
|         "url": "https://github.com/sponsors/typicode" | ||||
| @ -6645,9 +6645,9 @@ | ||||
|       "dev": true | ||||
|     }, | ||||
|     "husky": { | ||||
|       "version": "7.0.2", | ||||
|       "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz", | ||||
|       "integrity": "sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==", | ||||
|       "version": "8.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.1.tgz", | ||||
|       "integrity": "sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==", | ||||
|       "dev": true | ||||
|     }, | ||||
|     "iconv-lite": { | ||||
|  | ||||
							
								
								
									
										10
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								package.json
									
									
									
									
									
								
							| @ -8,16 +8,10 @@ | ||||
|     "build": "tsc && ncc build", | ||||
|     "format": "prettier --write **/*.ts", | ||||
|     "format-check": "prettier --check **/*.ts", | ||||
|     "prepare": "husky install", | ||||
|     "test": "jest", | ||||
|     "update-installers": "nwget https://dot.net/v1/dotnet-install.ps1 -O externals/install-dotnet.ps1 && nwget https://dot.net/v1/dotnet-install.sh -O externals/install-dotnet.sh" | ||||
|   }, | ||||
|   "husky": { | ||||
|     "hooks": { | ||||
|       "//": "Tests are not run at push time since they can take 2-4 minutes to complete", | ||||
|       "pre-commit": "npm run format", | ||||
|       "pre-push": "npm run format-check" | ||||
|     } | ||||
|   }, | ||||
|   "repository": { | ||||
|     "type": "git", | ||||
|     "url": "git+https://github.com/actions/setup-dotnet.git" | ||||
| @ -44,7 +38,7 @@ | ||||
|     "@types/node": "^16.11.25", | ||||
|     "@types/semver": "^6.2.2", | ||||
|     "@vercel/ncc": "^0.33.4", | ||||
|     "husky": "^7.0.2", | ||||
|     "husky": "^8.0.1", | ||||
|     "jest": "^27.2.5", | ||||
|     "jest-circus": "^27.2.5", | ||||
|     "prettier": "^1.19.1", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user