Skip to content

Commit

Permalink
Alpha release and update (#467)
Browse files Browse the repository at this point in the history
* metadata written to a file and tests fixed
  • Loading branch information
vejrj committed Oct 30, 2024
1 parent c46a2f4 commit 03f525a
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 127 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "metadata written to a file and tests fixed",
"packageName": "@graphitation/cli",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "metadata written to a file and tests fixed",
"packageName": "@graphitation/ts-codegen",
"email": "[email protected]",
"dependentChangeType": "patch"
}
10 changes: 10 additions & 0 deletions packages/cli/src/supermassive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,16 @@ async function generateInterfaces(
),
);

if (result.contextMappingOutput) {
outputs.push(
fs.writeFile(
path.join(outputPath, "schema-context-mapping-metadata.json"),
JSON.stringify(result.contextMappingOutput, null, 2),
{ encoding: "utf-8" },
),
);
}

await Promise.all(outputs);
}
}
Expand Down
Loading

0 comments on commit 03f525a

Please sign in to comment.