MCPcopy
hub / github.com/mswjs/msw / promptWorkerDirectoryUpdate

Function promptWorkerDirectoryUpdate

cli/init.js:205–216  ·  view source on GitHub ↗

* @param {string} message * @param {string} packageJsonPath * @param {string} publicDir * @returns {void}

(message, packageJsonPath, publicDir)

Source from the content-addressed store, hash-verified

203 * @returns {void}
204 */
205function 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

Callers 1

initFunction · 0.85

Calls 1

saveWorkerDirectoryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…