| 7867 | }); |
| 7868 | |
| 7869 | const writeFiles = (files: Record<string, string>, root = tempDir): void => { |
| 7870 | for (const [file, text] of Object.entries(files)) { |
| 7871 | fs.mkdirSync(path.dirname(path.join(root, file)), { recursive: true }); |
| 7872 | fs.writeFileSync(path.join(root, file), text); |
| 7873 | } |
| 7874 | }; |
| 7875 | // A theme at the project root, a theme in a folder marked only by its settings |
| 7876 | // schema, and one in a folder with no 404 section and no price snippet of its |
| 7877 | // own — the shape of panoply/syncify's example themes. |