mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-31 07:47:14 +00:00 
			
		
		
		
	chore: run build
This commit is contained in:
		
							
								
								
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -71768,7 +71768,7 @@ function translateArchToDistUrl(arch) { | |||||||
|     } |     } | ||||||
| } | } | ||||||
| function parseNodeVersionFile(contents) { | function parseNodeVersionFile(contents) { | ||||||
|     var _a, _b; |     var _a, _b, _c; | ||||||
|     let nodeVersion; |     let nodeVersion; | ||||||
|     const found = contents.match(/^(?:nodejs\s+)?v?(?<version>[^\s]+)$/m); |     const found = contents.match(/^(?:nodejs\s+)?v?(?<version>[^\s]+)$/m); | ||||||
|     nodeVersion = (_a = found === null || found === void 0 ? void 0 : found.groups) === null || _a === void 0 ? void 0 : _a.version; |     nodeVersion = (_a = found === null || found === void 0 ? void 0 : found.groups) === null || _a === void 0 ? void 0 : _a.version; | ||||||
| @@ -71777,6 +71777,8 @@ function parseNodeVersionFile(contents) { | |||||||
|             // Try parsing the file as an NPM `package.json`
 |             // Try parsing the file as an NPM `package.json`
 | ||||||
|             // file.
 |             // file.
 | ||||||
|             nodeVersion = (_b = JSON.parse(contents).engines) === null || _b === void 0 ? void 0 : _b.node; |             nodeVersion = (_b = JSON.parse(contents).engines) === null || _b === void 0 ? void 0 : _b.node; | ||||||
|  |             if (!nodeVersion) | ||||||
|  |                 (_c = JSON.parse(contents).volta) === null || _c === void 0 ? void 0 : _c.node; | ||||||
|             if (!nodeVersion) |             if (!nodeVersion) | ||||||
|                 throw new Error(); |                 throw new Error(); | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jef LeCompte
					Jef LeCompte