Formatting
This commit is contained in:
@@ -5,7 +5,7 @@ import { pathToFileURL } from "node:url";
|
||||
/**
|
||||
* This just convers the <template>.ts file to a <template>.json file.
|
||||
* Im fairly sure there is a util in the engine or engine-packages for this, but I decided to just keep it as simple as possible because I didn't feel like digging around for it.
|
||||
*
|
||||
*
|
||||
* Usage:
|
||||
* tsx scripts/template-to-json.ts ../templates/source/p2pkh.ts ./p2pkh.json p2pkhTemplate
|
||||
*/
|
||||
@@ -69,7 +69,9 @@ function resolveExportedValue(
|
||||
}
|
||||
|
||||
if (keys.length === 0) {
|
||||
console.error("No suitable exports found (need default or a non-function export).");
|
||||
console.error(
|
||||
"No suitable exports found (need default or a non-function export).",
|
||||
);
|
||||
} else {
|
||||
console.error(
|
||||
`Multiple data exports found; pass exportName. Candidates: ${keys.join(", ")}`,
|
||||
|
||||
Reference in New Issue
Block a user