(filePath, content)
| 16 | } = require('./next-action'); |
| 17 | |
| 18 | function write(filePath, content) { |
| 19 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |
| 20 | fs.writeFileSync(filePath, content, 'utf8'); |
| 21 | } |
| 22 | |
| 23 | function withTempProject(run) { |
| 24 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-next-action-')); |