19 lines
518 B
JavaScript
19 lines
518 B
JavaScript
import fs from 'node:fs/promises';
|
|
import path from 'node:path';
|
|
|
|
const outPath = path.join(process.cwd(), 'artifacts', 'analysis', 'bare-pack-report.json');
|
|
await fs.mkdir(path.dirname(outPath), { recursive: true });
|
|
await fs.writeFile(
|
|
outPath,
|
|
JSON.stringify(
|
|
{
|
|
generatedAt: new Date().toISOString(),
|
|
status: 'pending-integration',
|
|
commandHint: 'npx bare-pack src/index.js --out dist/bare-discord-js.bundle'
|
|
},
|
|
null,
|
|
2
|
|
)
|
|
);
|
|
console.log('Bare pack report created:', outPath);
|