(path)
| 1128 | ): ThinkWorkspaceCompatibility { |
| 1129 | return { |
| 1130 | async readFile(path) { |
| 1131 | try { |
| 1132 | return await fs.readFile(path, "utf8"); |
| 1133 | } catch (err) { |
| 1134 | if (isEnoent(err)) return null; |
| 1135 | throw err; |
| 1136 | } |
| 1137 | }, |
| 1138 | async readFileBytes(path) { |
| 1139 | try { |
| 1140 | return await drainBytes(await fs.readFile(path)); |