Files
resend__react-email/packages/ui/index.mjs
2026-04-15 12:48:39 -03:00

18 lines
490 B
JavaScript

/**
* this file is required so that import.meta.resolve and require.resolve can properly can find the module for this package
*/
import fs from 'node:fs/promises';
import path from 'node:path';
import url from 'node:url';
const filename = url.fileURLToPath(import.meta.url);
const dirname = path.dirname(filename);
const packageJson = JSON.parse(
await fs.readFile(path.join(dirname, 'package.json'), 'utf-8'),
);
/**
* @type {string}
*/
export const version = packageJson.version;