* @param {string} message * @param {string} packageJsonPath * @param {string} publicDir * @returns {void}
(message, packageJsonPath, publicDir)
| 203 | * @returns {void} |
| 204 | */ |
| 205 | function promptWorkerDirectoryUpdate(message, packageJsonPath, publicDir) { |
| 206 | return confirm({ |
| 207 | theme: { |
| 208 | prefix: colors.yellowBright('?'), |
| 209 | }, |
| 210 | message, |
| 211 | }).then((answer) => { |
| 212 | if (answer) { |
| 213 | saveWorkerDirectory(packageJsonPath, publicDir) |
| 214 | } |
| 215 | }) |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Normalizes the given path, replacing ambiguous path separators |
no test coverage detected
searching dependent graphs…