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