UNPKG

@compas/store

Version:

Postgres & S3-compatible wrappers for common things

20 lines (18 loc) 400 B
import { readFileSync } from "node:fs"; import { dirnameForModule, pathJoin } from "@compas/stdlib"; /** * Get the code-gen structure provided by @compas/store * * @returns {any} */ export function storeGetStructure() { return JSON.parse( readFileSync( pathJoin( dirnameForModule(import.meta), "generated/common/structure.json", ), "utf-8", ), ); }