MCPcopy Create free account
hub / github.com/netlify/cli / writeFile

Function writeFile

src/recipes/ai-context/context.ts:208–213  ·  view source on GitHub ↗
(path: string, contents: string)

Source from the content-addressed store, hash-verified

206}
207
208export const writeFile = async (path: string, contents: string) => {
209 const directory = dirname(path)
210
211 await fs.mkdir(directory, { recursive: true })
212 await fs.writeFile(path, contents)
213}
214
215export const deleteFile = async (path: string) => {
216 try {

Callers 15

migrationNewFunction · 0.50
carefullyWriteFileFunction · 0.50
scaffoldStarterFunction · 0.50
migrationPullFunction · 0.50
buildFunctionFunction · 0.50
writeSettingsFunction · 0.50
preparePackageJSONFunction · 0.50
createMockFunction · 0.50
withNetlifyTomlMethod · 0.50
withStateFileMethod · 0.50

Calls

no outgoing calls

Tested by 1

onBuildFunction · 0.40