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