WritableFileConfig: [destination: string, content:
    | string
    | ReadableStream<string>
    | Uint8Array
    | ReadableStream<Uint8Array>, options?: Deno.WriteFileOptions]

a description of a writable (or appendable) file.

  • the first entry of the array must describe the destination path of the file, relative to whichever build process's dir that you are using (typically defined in the config's dir field).
  • the second entry should be the file's contents, which can either be a string text, a ReadableStream, or a Uint8Array binary.
  • the third and optional entry lets you specify additional Deno.WriteFileOptions | deno specific file writing options, such as "append" the new text, or permit the creation ("create") of new file if it doesn't exist, etc...