(
path: string,
operations: StateJsonUpdateOperation[]
)
| 141 | } |
| 142 | |
| 143 | async updateJson( |
| 144 | path: string, |
| 145 | operations: StateJsonUpdateOperation[] |
| 146 | ): Promise<StateJsonUpdateResult> { |
| 147 | const current = await this.readJson(path); |
| 148 | const updated = updateJsonValue(current, operations, path); |
| 149 | await this.writeFile(path, updated.content); |
| 150 | return updated; |
| 151 | } |
| 152 | |
| 153 | async exists(path: string): Promise<boolean> { |
| 154 | return this.fs.exists(path); |
nothing calls this directly
no test coverage detected