nx/docs/generated/devkit/OverwriteStrategy.md
Craigory Coppola dd6eda84b0
feat(devkit): allow to customize overwrite mode in generateFiles (#26354)
Adds a new capability to choose how to handle already existing target
files when using a generator.

See #17925

Co-authored-by: Michael Monerau <micmo@qontrol.io>
2024-06-04 16:12:15 -04:00

30 lines
595 B
Markdown

# Enumeration: OverwriteStrategy
Specify what should be done when a file is generated but already exists on the system
## Table of contents
### Enumeration Members
- [KeepExisting](../../devkit/documents/OverwriteStrategy#keepexisting)
- [Overwrite](../../devkit/documents/OverwriteStrategy#overwrite)
- [ThrowIfExisting](../../devkit/documents/OverwriteStrategy#throwifexisting)
## Enumeration Members
### KeepExisting
**KeepExisting** = `"keepExisting"`
---
### Overwrite
**Overwrite** = `"overwrite"`
---
### ThrowIfExisting
**ThrowIfExisting** = `"throwIfExisting"`