19 lines
469 B
JavaScript
19 lines
469 B
JavaScript
import fs from 'node:fs/promises';
|
|
import path from 'node:path';
|
|
|
|
const outPath = path.join(process.cwd(), 'artifacts', 'analysis', 'build-report.json');
|
|
await fs.mkdir(path.dirname(outPath), { recursive: true });
|
|
await fs.writeFile(
|
|
outPath,
|
|
JSON.stringify(
|
|
{
|
|
generatedAt: new Date().toISOString(),
|
|
status: 'ok',
|
|
outputs: ['src/index.js', 'src/index.mjs']
|
|
},
|
|
null,
|
|
2
|
|
)
|
|
);
|
|
console.log('Build pipeline report created:', outPath);
|