14 lines
340 B
TypeScript
14 lines
340 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
|
|
const raw = JSON.parse(
|
|
readFileSync(resolve(process.cwd(), '../shared/product.json'), 'utf-8')
|
|
);
|
|
|
|
export const PRODUCT_ID: string = raw.productId;
|
|
export const productConfig = raw as {
|
|
productId: string;
|
|
displayName: string;
|
|
[key: string]: unknown;
|
|
};
|