mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 07:05:44 +01:00
Answer prose round 1: 0 🔴, 4 🟡; say what each package was given, drop our row's version, state the pin invariant
This commit is contained in:
@@ -75,7 +75,7 @@ const show = (label, call) => {
|
||||
for (const [name, { toAdf, toMarkdown }] of Object.entries(converters)) {
|
||||
const manifest = JSON.parse(readFileSync(`node_modules/${name}/package.json`, "utf8"));
|
||||
console.log(`\n## ${name} ${manifest.version}`);
|
||||
console.log("runtime dependencies:", Object.keys(manifest.dependencies ?? {}).length);
|
||||
console.log("direct runtime dependencies:", Object.keys(manifest.dependencies ?? {}).length);
|
||||
const written = toMarkdown && show("ADF to markdown", () => toMarkdown(roundTripDoc));
|
||||
if (written !== undefined) {
|
||||
const readBack = toAdf && show("read back", () => toAdf(written));
|
||||
|
||||
Reference in New Issue
Block a user