()
| 23 | ]; |
| 24 | |
| 25 | function freshObserver() { |
| 26 | for (const key of Object.keys(require.cache)) { |
| 27 | if (key.includes(`${path.sep}src${path.sep}webui${path.sep}`) || key.endsWith(`${path.sep}src${path.sep}gep${path.sep}paths.js`)) { |
| 28 | delete require.cache[key]; |
| 29 | } |
| 30 | } |
| 31 | return require('../src/webui/observer'); |
| 32 | } |
| 33 | |
| 34 | function writeJson(filePath, value) { |
| 35 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |