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

Method withCopiedFile

tests/integration/utils/site-builder.ts:203–211  ·  view source on GitHub ↗
({ path: filePath, src }: { path: string; src: string })

Source from the content-addressed store, hash-verified

201 }
202
203 withCopiedFile({ path: filePath, src }: { path: string; src: string }) {
204 const dest = path.join(this.directory, filePath)
205 this.tasks.push(async () => {
206 await ensureDir(path.dirname(dest))
207 await copyFile(src, dest)
208 })
209
210 return this
211 }
212
213 withContentFiles(files: { content: string; path: string }[]) {
214 files.forEach((file) => {

Callers 1

deploy.test.tsFile · 0.80

Calls 1

ensureDirFunction · 0.85

Tested by

no test coverage detected