I would like to display a version that is declared in the package.json file in the footer of my site
How can I do this?
I found this FAQ explanation in their documentation, but unfortunately I don't know to access it from my component
// svelte.config.jsimport { readFileSync } from 'fs';import { fileURLToPath } from 'url';const file = fileURLToPath(new URL('package.json', import.meta.url));const json = readFileSync(file, 'utf8');const pkg = JSON.parse(json);