8 lines
360 B
JavaScript
8 lines
360 B
JavaScript
import { buildTaskContext, contextSizeReport } from "./task-context-lib.mjs";
|
|
|
|
const index = process.argv.indexOf("--task");
|
|
const task = index >= 0 ? process.argv[index + 1] : undefined;
|
|
const bundle = buildTaskContext(task);
|
|
const report = contextSizeReport(bundle);
|
|
process.stdout.write(`${JSON.stringify({ ...bundle.context, size: report }, null, 2)}\n`);
|