* Detect build command
(scripts?: Record<string, string>)
| 129 | * Detect build command |
| 130 | */ |
| 131 | function detectBuildCommand(scripts?: Record<string, string>): string | undefined { |
| 132 | if (!scripts) { |
| 133 | return undefined; |
| 134 | } |
| 135 | |
| 136 | if (scripts.build) { |
| 137 | return 'build'; |
| 138 | } |
| 139 | |
| 140 | return undefined; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Auto-detect build configuration from package.json |