(pathsWithErrors)
| 154 | } |
| 155 | |
| 156 | function printFailureMessage(pathsWithErrors) { |
| 157 | // eslint-disable-next-line no-console |
| 158 | console.error(`\ |
| 159 | ${colors.red('Copying the worker script failed at following paths:')} |
| 160 | ${pathsWithErrors |
| 161 | .map(([path, error]) => colors.gray(` - ${path}`) + '\n' + ` ${error}`) |
| 162 | .join('\n\n')} |
| 163 | `) |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * @param {string} packageJsonPath |