* Ensure the given path exists, creating it recursively if it doesn't. * @param path The path to ensure. * @returns The same path, for chaining.
(path: string)
| 92 | * @returns The same path, for chaining. |
| 93 | */ |
| 94 | function ensurePathExists(path: string): string { |
| 95 | if (!existsSync(path)) { |
| 96 | mkdirSync(path, { recursive: true }); |
| 97 | } |
| 98 | return path; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Gets the path to the directory where Wave configurations are stored. Creates the directory if it does not exist. |
no outgoing calls
no test coverage detected