- Implemented in-house, zero-dependency utility modules in `pi-utils` covering DOM manipulation, markdown parsing, templating, browser automation helpers, and terminal buffers. - Migrated packages across the repository to consume the new internal utilities and `omptype` schema validators instead of external dependencies. - Removed multiple external runtime and development dependencies including Zod, Marked, LRU cache, Turndown, and Puppeteer browser packages.
10 lines
353 B
TypeScript
10 lines
353 B
TypeScript
import * as fs from "node:fs";
|
|
import { RotatingFileSink } from "../../src/logger/rotating-file";
|
|
import { snapshotLoggerRuntime } from "./logger-cache-snapshot";
|
|
|
|
const outputPath = process.argv[2];
|
|
if (!outputPath) throw new Error("expected output path");
|
|
|
|
void RotatingFileSink;
|
|
fs.writeFileSync(outputPath, JSON.stringify(snapshotLoggerRuntime()));
|