mirror of
https://github.com/pezkuwichain/pezkuwi-api.git
synced 2026-10-22 11:46:17 +00:00
The pezkuwi-dev build treats any package with a src/ directory as its own: it requires our license header on every file and builds it. These are upstream files that must stay byte-identical to the source embedded in dist/, so they live in upstream-src/ instead, which neither the build nor the root tsconfig picks up.
12 lines
261 B
TypeScript
12 lines
261 B
TypeScript
export const jsonPrint = (value: any, indent = 2) =>
|
|
JSON.stringify(
|
|
value,
|
|
(_, v) =>
|
|
typeof v === "bigint"
|
|
? `${v}n`
|
|
: typeof v === "object" && typeof v?.asHex === "function"
|
|
? v.asHex()
|
|
: v,
|
|
indent,
|
|
)
|