MCPcopy
hub / github.com/prisma/prisma / writeConfig

Function writeConfig

packages/cli/src/utils/nps/survey.ts:184–188  ·  view source on GitHub ↗
(config: NpsConfig)

Source from the content-addressed store, hash-verified

182}
183
184async function writeConfig(config: NpsConfig) {
185 const configPath = getConfigPath()
186 await fs.promises.mkdir(path.dirname(configPath), { recursive: true })
187 await fs.promises.writeFile(configPath, JSON.stringify(config))
188}
189
190async function submitSurveyEvent(event: NpsSurveyEvent, eventCapture: EventCapture) {
191 const signature = await checkpoint.getSignature()

Callers 1

handleNpsSurveyImplFunction · 0.85

Calls 1

getConfigPathFunction · 0.85

Tested by

no test coverage detected